# Generated by go2rpm 1.10.0 %bcond_without check # https://github.com/mytechnotalent/turbo-attack %global goipath github.com/mytechnotalent/turbo-attack Version: 0.1.0 %global tag 0.1.0 %gometa -L -f %global common_description %{expand: A turbo traffic generator pentesting tool to generate random traffic with random mac and ip addresses in addition to random sequence numbers to a particular ip and port.} %global golicenses LICENSE %global godocs README.md Name: turbo-attack Release: %autorelease Summary: A turbo traffic generator pentesting tool License: Apache-2.0 URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %autopatch -p1 # Fix wrong executable name in usage message sed -i "s|turbo-attack_010_linux_arm64|turbo-attack|" $(find . -name "*.go") %generate_buildrequires %go_generate_buildrequires %build %gobuild -o %{gobuilddir}/bin/turbo-attack %{goipath} %install install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check # routine check requires present network interface # sudo check requires elevated rights %gocheck -d routine -d sudo %endif %files %license LICENSE %doc README.md %{_bindir}/turbo-attack %changelog %autochangelog