The package rpms/bettercap.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/bettercap.git/commit/?id=cf0f003b...
https://src.fedoraproject.org/cgit/rpms/bettercap.git/commit/?id=ac637a20...
https://src.fedoraproject.org/cgit/rpms/bettercap.git/commit/?id=16bc682b...
https://src.fedoraproject.org/cgit/rpms/bettercap.git/commit/?id=e6d639ba....
Change:
-ExcludeArch: s390x
+ExcludeArch: s390x
+ExcludeArch: s390
+ExcludeArch: s390x
Thanks.
Full change:
============
commit cf0f003be1e9a80b658f5e7f9f5ec77313087e41
Author: Robert-André Mauchin <zebob.m(a)gmail.com>
Date: Tue Sep 1 10:46:49 2020 +0200
Fix package built differently on different architectures
by excluding
github.com/chifflier/nfqueue-go/nfqueue from automatic Requires and
readd it on all arches through godevelheader.
Signed-off-by: Robert-André Mauchin <zebob.m(a)gmail.com>
diff --git a/bettercap.spec b/bettercap.spec
index e6cbb26..444ad64 100644
--- a/bettercap.spec
+++ b/bettercap.spec
@@ -1,6 +1,9 @@
# Generated by go2rpm 1
%bcond_without check
+# 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.28
@@ -9,6 +12,7 @@ Version: 2.28
%global godevelheader %{expand:
Requires: pkgconfig(libnetfilter_queue)
+Requires:
golang(github.com/chifflier/nfqueue-go/nfqueue)
}
%global common_description %{expand:
@@ -19,17 +23,13 @@ MITM attacks.}
%global godocs ISSUE_TEMPLATE.md changelog.sh README.md
Name: bettercap
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Tool for 802.11, BLE and Ethernet reconnaissance and MITM attacks
License: GPLv3
URL: %{gourl}
Source0: %{gosource}
-# Building is falling on s390x at the moment because of "
-# following noarch package built differently on different architectures"
-ExcludeArch: s390x
-
BuildRequires:
golang(github.com/adrianmo/go-nmea)
BuildRequires:
golang(github.com/antchfx/jsonquery)
BuildRequires:
golang(github.com/bettercap/gatt)
@@ -90,6 +90,11 @@ install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
%gopkgfiles
%changelog
+* Tue Sep 01 10:40:35 CEST 2020 Robert-André Mauchin <zebob.m(a)gmail.com> - 2.28-5
+- Fix package built differently on different architectures by excluding
+github.com/chifflier/nfqueue-go/nfqueue from automatic Requires and readd it
+on all arches through godevelheader.
+
* Mon Aug 31 2020 Germano Massullo <germano.massullo(a)gmail.com> - 2.28-4
- Tried to replace ExcludeArch: s390 with ExcludeArch: s390x
commit ac637a20d1f910825dbe392647e28088b8582648
Author: Germano Massullo <germano.massullo(a)gmail.com>
Date: Tue Sep 1 00:41:31 2020 +0200
Tried to replace ExcludeArch: s390 with ExcludeArch: s390x
diff --git a/bettercap.spec b/bettercap.spec
index 99d68f6..e6cbb26 100644
--- a/bettercap.spec
+++ b/bettercap.spec
@@ -19,7 +19,7 @@ MITM attacks.}
%global godocs ISSUE_TEMPLATE.md changelog.sh README.md
Name: bettercap
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Tool for 802.11, BLE and Ethernet reconnaissance and MITM attacks
License: GPLv3
@@ -28,7 +28,7 @@ Source0: %{gosource}
# Building is falling on s390x at the moment because of "
# following noarch package built differently on different architectures"
-ExcludeArch: s390
+ExcludeArch: s390x
BuildRequires:
golang(github.com/adrianmo/go-nmea)
BuildRequires:
golang(github.com/antchfx/jsonquery)
@@ -90,6 +90,9 @@ install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
%gopkgfiles
%changelog
+* Mon Aug 31 2020 Germano Massullo <germano.massullo(a)gmail.com> - 2.28-4
+- Tried to replace ExcludeArch: s390 with ExcludeArch: s390x
+
* Tue Aug 18 2020 Fabian Affolter <mail(a)fabian-affolter.ch> - 2.28-3
- Add feedback from build system
commit 16bc682baac64a756b0c069a548959ed5c87f084
Author: Fabian Affolter <mail(a)fabian-affolter.ch>
Date: Tue Aug 18 22:01:16 2020 +0200
Fix name
diff --git a/bettercap.spec b/bettercap.spec
index 72f555d..99d68f6 100644
--- a/bettercap.spec
+++ b/bettercap.spec
@@ -28,7 +28,7 @@ Source0: %{gosource}
# Building is falling on s390x at the moment because of "
# following noarch package built differently on different architectures"
-ExcludeArch: s390x
+ExcludeArch: s390
BuildRequires:
golang(github.com/adrianmo/go-nmea)
BuildRequires:
golang(github.com/antchfx/jsonquery)
commit e6d639ba8296e8f1c869a2cbc807deab5d4991d0
Author: Fabian Affolter <mail(a)fabian-affolter.ch>
Date: Tue Aug 18 21:48:36 2020 +0200
Exclude s390x for now
diff --git a/bettercap.spec b/bettercap.spec
index 7948892..72f555d 100644
--- a/bettercap.spec
+++ b/bettercap.spec
@@ -26,6 +26,10 @@ License: GPLv3
URL: %{gourl}
Source0: %{gosource}
+# Building is falling on s390x at the moment because of "
+# following noarch package built differently on different architectures"
+ExcludeArch: s390x
+
BuildRequires:
golang(github.com/adrianmo/go-nmea)
BuildRequires:
golang(github.com/antchfx/jsonquery)
BuildRequires:
golang(github.com/bettercap/gatt)
@@ -55,8 +59,6 @@ BuildRequires:
golang(golang.org/x/net/html)
BuildRequires: pkgconfig(libnetfilter_queue)
BuildRequires: procps-ng
-Requires:
golang(github.com/chifflier/nfqueue-go/nfqueue)
-
%description
%{common_description}
commit 97b07a43cd546938cdb804f031a985d37c127a31
Author: Fabian Affolter <mail(a)fabian-affolter.ch>
Date: Tue Aug 18 21:38:40 2020 +0200
* Tue Aug 18 2020 Fabian Affolter <mail(a)fabian-affolter.ch> - 2.28-3
- Add feedback from build system
diff --git a/bettercap.spec b/bettercap.spec
index e1065c2..7948892 100644
--- a/bettercap.spec
+++ b/bettercap.spec
@@ -19,7 +19,7 @@ MITM attacks.}
%global godocs ISSUE_TEMPLATE.md changelog.sh README.md
Name: bettercap
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Tool for 802.11, BLE and Ethernet reconnaissance and MITM attacks
License: GPLv3
@@ -55,6 +55,8 @@ BuildRequires:
golang(golang.org/x/net/html)
BuildRequires: pkgconfig(libnetfilter_queue)
BuildRequires: procps-ng
+Requires:
golang(github.com/chifflier/nfqueue-go/nfqueue)
+
%description
%{common_description}
@@ -86,6 +88,9 @@ install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
%gopkgfiles
%changelog
+* Tue Aug 18 2020 Fabian Affolter <mail(a)fabian-affolter.ch> - 2.28-3
+- Add feedback from build system
+
* Sun Aug 16 2020 Germano Massullo <germano.massullo(a)gmail.com> - 2.28-2
- Fix review issues
commit 298933561f20801fa49864cbba71f25443e39434
Author: Fabian Affolter <mail(a)fabian-affolter.ch>
Date: Tue Aug 18 18:46:29 2020 +0200
* Sun Aug 16 2020 Germano Massullo <germano.massullo(a)gmail.com> - 2.28-2
- Fix review issues
* Fri Jul 10 2020 Fabian Affolter <mail(a)fabian-affolter.ch> - 2.28-1
- Update to latest upstream release 2.28
* Sat May 02 2020 Fabian Affolter <mail(a)fabian-affolter.ch> - 2.27.1-1
- Update to latest upstream release 2.27.1 (rhbz#1820915)
* Thu Mar 26 2020 Fabian Affolter <mail(a)fabian-affolter.ch> - 2.26.1-1
- Initial package for Fedora
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..804500e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/bettercap-2.28.tar.gz
diff --git a/bettercap.spec b/bettercap.spec
new file mode 100644
index 0000000..e1065c2
--- /dev/null
+++ b/bettercap.spec
@@ -0,0 +1,99 @@
+# Generated by go2rpm 1
+%bcond_without check
+
+#
https://github.com/bettercap/bettercap
+%global goipath
github.com/bettercap/bettercap
+Version: 2.28
+
+%gometa
+
+%global godevelheader %{expand:
+Requires: pkgconfig(libnetfilter_queue)
+}
+
+%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 ISSUE_TEMPLATE.md changelog.sh README.md
+
+Name: bettercap
+Release: 2%{?dist}
+Summary: Tool for 802.11, BLE and Ethernet reconnaissance and MITM attacks
+
+License: GPLv3
+URL: %{gourl}
+Source0: %{gosource}
+
+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)
+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/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/malfunkt/iprange)
+BuildRequires:
golang(github.com/mdlayher/dhcp6)
+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(golang.org/x/net/html)
+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 ISSUE_TEMPLATE.md changelog.sh README.md
+%{_bindir}/*
+
+%gopkgfiles
+
+%changelog
+* Sun Aug 16 2020 Germano Massullo <germano.massullo(a)gmail.com> - 2.28-2
+- Fix review issues
+
+* Fri Jul 10 2020 Fabian Affolter <mail(a)fabian-affolter.ch> - 2.28-1
+- Update to latest upstream release 2.28
+
+* Sat May 02 2020 Fabian Affolter <mail(a)fabian-affolter.ch> - 2.27.1-1
+- Update to latest upstream release 2.27.1 (rhbz#1820915)
+
+* Thu Mar 26 2020 Fabian Affolter <mail(a)fabian-affolter.ch> - 2.26.1-1
+- Initial package for Fedora
diff --git a/sources b/sources
new file mode 100644
index 0000000..6adda2f
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (bettercap-2.28.tar.gz) =
914b5171e5bea60c008b73e1de528c5d631da459f9670c7dc4eca068e28ee22d0a9b8e9a8b6655aa8ffec795fa5960c7d4335231841839a1abf8583d855c6753