# Generated by go2rpm 1 %bcond_without check # Bug with package note on aarch64/arm? %ifarch aarch64 %{arm} %undefine _package_note_file %endif # Avoid noarch package built differently on different architectures %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(github.com/chifflier/nfqueue-go/nfqueue\\)$ # https://github.com/bettercap/bettercap %global goipath github.com/bettercap/bettercap Version: 2.32.0 %gometa %global godevelheader %{expand: Requires: pkgconfig(libnetfilter_queue) Requires: golang(github.com/chifflier/nfqueue-go/nfqueue) } %global common_description %{expand: The Swiss Army knife for 802.11, BLE and Ethernet networks reconnaissance and MITM attacks.} %global golicenses LICENSE.md %global godocs README.md Name: bettercap Release: %autorelease Summary: Tool for 802.11, BLE and Ethernet reconnaissance and MITM attacks License: GPLv3 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/acarl005/stripansi) BuildRequires: golang(github.com/adrianmo/go-nmea) BuildRequires: golang(github.com/antchfx/jsonquery) BuildRequires: golang(github.com/bettercap/gatt) BuildRequires: golang(github.com/bettercap/nrf24) BuildRequires: golang(github.com/bettercap/readline) BuildRequires: golang(github.com/bettercap/recording) BuildRequires: golang(github.com/chifflier/nfqueue-go/nfqueue) BuildRequires: golang(github.com/dustin/go-humanize) BuildRequires: golang(github.com/elazarl/goproxy) BuildRequires: golang(github.com/evilsocket/islazy/async) BuildRequires: golang(github.com/evilsocket/islazy/data) BuildRequires: golang(github.com/evilsocket/islazy/fs) BuildRequires: golang(github.com/evilsocket/islazy/log) BuildRequires: golang(github.com/evilsocket/islazy/ops) BuildRequires: golang(github.com/evilsocket/islazy/plugin) BuildRequires: golang(github.com/evilsocket/islazy/str) BuildRequires: golang(github.com/evilsocket/islazy/tui) BuildRequires: golang(github.com/evilsocket/islazy/zip) BuildRequires: golang(github.com/gobwas/glob) BuildRequires: golang(github.com/google/go-github/github) BuildRequires: golang(github.com/google/gopacket) BuildRequires: golang(github.com/google/gopacket/layers) BuildRequires: golang(github.com/google/gopacket/pcap) BuildRequires: golang(github.com/google/gopacket/pcapgo) BuildRequires: golang(github.com/google/gousb) BuildRequires: golang(github.com/gorilla/mux) BuildRequires: golang(github.com/gorilla/websocket) BuildRequires: golang(github.com/hashicorp/mdns) BuildRequires: golang(github.com/inconshreveable/go-vhost) BuildRequires: golang(github.com/jpillora/go-tld) BuildRequires: golang(github.com/koppacetic/go-gpsd) BuildRequires: golang(github.com/malfunkt/iprange) BuildRequires: golang(github.com/mdlayher/dhcp6) BuildRequires: golang(github.com/mdlayher/dhcp6/dhcp6opts) BuildRequires: golang(github.com/miekg/dns) BuildRequires: golang(github.com/mitchellh/go-homedir) BuildRequires: golang(github.com/robertkrimen/otto) BuildRequires: golang(github.com/tarm/serial) BuildRequires: golang(github.com/thoj/go-ircevent) BuildRequires: golang(golang.org/x/net/html) BuildRequires: golang(golang.org/x/net/idna) BuildRequires: pkgconfig(libnetfilter_queue) BuildRequires: procps-ng %description %{common_description} %gopkg %prep %goprep %build %gobuild -o %{gobuilddir}/bin/bettercap %{goipath} %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check # "-d network" flag is to avoid error message "is no iface found No active interfaces found" # since network is not available during builds %gocheck -d network %endif %files %license LICENSE.md %doc README.md %{_bindir}/* %gopkgfiles %changelog %autochangelog