# Generated by go2rpm 1.17.1 %bcond check 1 # scancode has a lot of dependencies, so it can be disabled for a faster build # or when its deps are unavailable. %if %{defined rhel} || "%{_arch}" == "i386" %global go_vendor_license_check_disable 1 %endif # https://github.com/bettercap/bettercap %global goipath github.com/bettercap/bettercap/v2 Version: 2.41.4 %gometa -L -f Name: bettercap Release: %autorelease Summary: The Swiss Army knife for 802.11, BLE, HID, CAN-bus, IPv4 and IPv6 networks reconnaissance and MITM attacks # Generated by go-vendor-tools License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-3.0-only AND MIT AND MPL-2.0 AND OFL-1.1 URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: pkgconfig(libpcap) BuildRequires: pkgconfig(libusb-1.0) BuildRequires: go-vendor-tools %description The Swiss Army knife for 802.11, BLE, HID, CAN-bus, IPv4 and IPv6 networks reconnaissance and MITM attacks. %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %autopatch -p1 %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on %gobuild -o %{gobuilddir}/bin/bettercap %{goipath} %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ install -m 0755 -vd %{buildroot}%{_datadir}/bettercap/caplets %check %go_vendor_license_check -c %{S:2} %if %{with check} %gotest ./... %endif %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc README.md SECURITY.md %doc modules/ui/ui/assets/fontawesome/svgs/brands/readme.svg %{_bindir}/bettercap %{_datadir}/bettercap/caplets %changelog %autochangelog