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