The package rpms/bpfilter.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/bpfilter.git/commit/?id=dfb0330ec550....
Change: +ExclusiveArch: %{x86_64} %{arm64}
Thanks.
Full change: ============
commit dfb0330ec550973bc7ae0e5e1d717a67800bc62f Author: Quentin Deslandes qde@naccy.de Date: Wed Mar 5 12:36:12 2025 +0100
Initial release of bpfilter
- Resolves: RHBZ#2348709
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4f2c9c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/bpfilter-0.2.1.tar.gz diff --git a/bpfilter.spec b/bpfilter.spec new file mode 100644 index 0000000..1744777 --- /dev/null +++ b/bpfilter.spec @@ -0,0 +1,83 @@ +Name: bpfilter +Version: 0.2.1 +Release: %autorelease +Summary: BPF-based packet filtering framework + +# MurmurHash3 (src/external/murmur3.{c,h} is public domain; see +# https://gitlab.com/fedora/legal/fedora-license-data/-/merge_requests/442 +License: GPL-2.0-only AND LicenseRef-Fedora-Public-Domain +URL: https://bpfilter.io +Source: https://github.com/facebook/bpfilter/archive/refs/tags/v%%7Bversion%7D.tar.g... + +BuildRequires: bison +BuildRequires: cmake +BuildRequires: flex +BuildRequires: gcc +BuildRequires: git-core +BuildRequires: lcov +BuildRequires: libbpf-devel +BuildRequires: libcmocka-devel +BuildRequires: libnl3-devel +BuildRequires: make +BuildRequires: systemd +BuildRequires: systemd-rpm-macros + +# Only those two architectures are supported by bpfilter. +ExclusiveArch: %{x86_64} %{arm64} + +%global soname_version %%(echo %%{version}} | cut -d. -f1) + +%global _description %{expand: +BPF-based packet filtering framework to convert text-format filtering rules +into BPF programs attach to your kernel.} + +%description %{_description} + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: pkgconfig + +%description devel %{_description} + +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%prep +%autosetup -p1 + +%build +%cmake -DNO_DOCS=1 -DNO_BENCHMARKS=1 -DNO_CHECKS=1 -DDEFAULT_PROJECT_VERSION=%{version} +%cmake_build -- bpfilter libbpfilter bfcli + +%check +make -C %__cmake_builddir test + +%install +%cmake_install + +%post +%systemd_post bpfilter.service + +%preun +%systemd_preun bpfilter.service + +%postun +%systemd_postun_with_restart bpfilter.service + +%files +%license COPYING +%{_sbindir}/bfcli +%{_sbindir}/bpfilter +%{_libdir}/libbpfilter.so.%{soname_version} +%{_libdir}/libbpfilter.so.%{version} +%{_unitdir}/bpfilter.service + +%files devel +%dir %{_includedir}/bpfilter +%{_includedir}/bpfilter/bpfilter.h +%{_libdir}/libbpfilter.so +%{_libdir}/pkgconfig/bpfilter.pc + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..3de494a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (bpfilter-0.2.1.tar.gz) = 80c5a2dc98a080c71e64bd41e131905f6ebc3d6a5134d2dd81bd895b097c43c0916e2a4c9482af212655db313994c3ac4e3420896db20fe71589e5f218a7590a
arch-excludes@lists.fedoraproject.org