forked from pool/libseccomp
Feed through spec-beautifier
This commit is contained in:
parent
a14e19c54d
commit
a27bf0897b
@ -18,9 +18,9 @@
|
||||
|
||||
%global pname libseccomp
|
||||
%global lname libseccomp2
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%global flavor @BUILD_FLAVOR@%nil
|
||||
|
||||
%if "%{flavor}" == "python3"
|
||||
%if "%flavor" == "python3"
|
||||
Name: python3-seccomp
|
||||
Summary: Python 3 bindings for seccomp
|
||||
Group: Development/Tools/Debuggers
|
||||
@ -43,7 +43,7 @@ BuildRequires: automake >= 1.11
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: libtool >= 2
|
||||
BuildRequires: pkgconfig
|
||||
%if "%{flavor}" == "python3"
|
||||
%if "%flavor" == "python3"
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python3-Cython >= 0.29
|
||||
%endif
|
||||
@ -54,7 +54,7 @@ syscall filtering mechanism, seccomp. The libseccomp API abstracts
|
||||
away the underlying BPF-based syscall filter language and presents a
|
||||
more conventional function-call based filtering interface.
|
||||
|
||||
%if "%{flavor}" == "python3"
|
||||
%if "%flavor" == "python3"
|
||||
This subpackage contains the python3 bindings for seccomp.
|
||||
%endif
|
||||
|
||||
@ -92,7 +92,7 @@ syscall filtering mechanism, seccomp.
|
||||
This subpackage contains debug utilities for the seccomp interface.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{pname}-%{version}
|
||||
%autosetup -p1 -n %pname-%version
|
||||
|
||||
%if 0%{?qemu_user_space_build}
|
||||
# The qemu linux-user emulation does not allow executing
|
||||
@ -105,7 +105,7 @@ echo 'int main () { return 0; }' >tests/52-basic-load.c
|
||||
autoreconf -fiv
|
||||
%configure \
|
||||
--includedir="%_includedir/%pname" \
|
||||
%if "%{flavor}" == "python3"
|
||||
%if "%flavor" == "python3"
|
||||
--enable-python \
|
||||
%endif
|
||||
--disable-static \
|
||||
@ -117,7 +117,7 @@ autoreconf -fiv
|
||||
%make_install
|
||||
find "%buildroot/%_libdir" -type f -name "*.la" -delete
|
||||
rm -fv %buildroot/%python3_sitearch/install_files.txt
|
||||
%if "%{flavor}" == "python3"
|
||||
%if "%flavor" == "python3"
|
||||
rm %buildroot/%_libdir/%pname.so*
|
||||
rm -r %buildroot/%_mandir/
|
||||
rm -r %buildroot/%_includedir/%pname/
|
||||
@ -133,7 +133,7 @@ make check
|
||||
%post -n %lname -p /sbin/ldconfig
|
||||
%postun -n %lname -p /sbin/ldconfig
|
||||
|
||||
%if "%{flavor}" == "python3"
|
||||
%if "%flavor" == "python3"
|
||||
%files
|
||||
%python3_sitearch/seccomp-%version-py*.egg-info
|
||||
%python3_sitearch/seccomp.cpython*.so
|
||||
|
Loading…
x
Reference in New Issue
Block a user