[info=9b123afc16bcd0ef100b489a9e2dbb2d4f55798b05f4718f286b8da6c71d271d]
OBS-URL: https://build.opensuse.org/package/show/security/libseccomp?expand=0&rev=108
This commit is contained in:
parent
6cd147c70f
commit
590441fed1
@ -1,4 +1,4 @@
|
|||||||
mtime: 1737682483
|
mtime: 1737701013
|
||||||
commit: a14e19c54d4372552b58b80aa8fa76e54b42f8ab6e85d89ccc8357e20b75a9c9
|
commit: 9b123afc16bcd0ef100b489a9e2dbb2d4f55798b05f4718f286b8da6c71d271d
|
||||||
url: https://src.opensuse.org/jengelh/libseccomp
|
url: https://src.opensuse.org/jengelh/libseccomp
|
||||||
revision: master
|
revision: master
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:13885d13360b0d70325f0f5a2f8bafdab8d875acd816f94d9d1cbe322445a750
|
oid sha256:401cb99a97c31f05c3fb0bd480baf2fa4dc275b81583f91f0073b392aca1d2e0
|
||||||
size 256
|
size 256
|
||||||
|
@ -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,9 +43,10 @@ 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
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -54,7 +55,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 +93,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 +106,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 +118,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/
|
||||||
@ -126,17 +127,17 @@ rm -r %buildroot/%_bindir/
|
|||||||
%endif
|
%endif
|
||||||
%fdupes %buildroot/%_prefix
|
%fdupes %buildroot/%_prefix
|
||||||
|
|
||||||
|
%if "%flavor" != "python3"
|
||||||
%check
|
%check
|
||||||
export LD_LIBRARY_PATH="$PWD/src/.libs"
|
export LD_LIBRARY_PATH="$PWD/src/.libs"
|
||||||
make check
|
make check
|
||||||
|
%endif
|
||||||
|
|
||||||
%post -n %lname -p /sbin/ldconfig
|
%ldconfig_scriptlets -n %lname
|
||||||
%postun -n %lname -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%if "%{flavor}" == "python3"
|
%if "%flavor" == "python3"
|
||||||
%files
|
%files
|
||||||
%python3_sitearch/seccomp-%version-py*.egg-info
|
%python3_sitearch/seccomp*
|
||||||
%python3_sitearch/seccomp.cpython*.so
|
|
||||||
%else
|
%else
|
||||||
|
|
||||||
%files -n %lname
|
%files -n %lname
|
||||||
|
Loading…
x
Reference in New Issue
Block a user