From 7e396f9b12f69ec16b1152b51d65a89b11ca4ebc Mon Sep 17 00:00:00 2001 From: Eduard Abdullin Date: Wed, 17 Jun 2026 07:14:04 +0000 Subject: [PATCH] Fix build on non-bpf arches (i686, riscv64) --- libcap-ng.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libcap-ng.spec b/libcap-ng.spec index 6bcdf34..9b5f011 100644 --- a/libcap-ng.spec +++ b/libcap-ng.spec @@ -1,7 +1,7 @@ Summary: Alternate posix capabilities library Name: libcap-ng Version: 0.9.3 -Release: 1%{?dist} +Release: 1%{?dist}.alma.1 License: LGPL-2.0-or-later URL: https://people.redhat.com/sgrubb/libcap-ng/ Source0: https://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz @@ -64,10 +64,10 @@ cp README.md README autoreconf -fvi %build -%configure --libdir=%{_libdir} --with-python=no --with-python3 \ %ifarch %{bpf_arches} - --enable-cap-audit +%global cap_audit --enable-cap-audit %endif +%configure --libdir=%{_libdir} --with-python=no --with-python3 %{?cap_audit} %make_build CFLAGS="%{optflags}" %install @@ -110,6 +110,9 @@ make check %{_datadir}/bash-completion/completions/* %changelog +* Wed Jun 17 2026 Eduard Abdullin - 0.9.3-1.alma.1 +- Fix build on non-bpf arches (i686, riscv64) + * Thu May 14 2026 Sergio Arroutbi - 0.9.3-1 - Bump release to v0.9.3 Resolves: RHEL-160081