forked from jengelh/libseccomp
- Deactive python3 by default, it's just not a good idea for ring0.
OBS-URL: https://build.opensuse.org/package/show/security/libseccomp?expand=0&rev=98
This commit is contained in:
parent
d90a87f20d
commit
57e5cb041f
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Apr 30 16:42:48 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Deactive python3 by default, it's just not a good idea for ring0.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Apr 21 21:23:08 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
|
Thu Apr 21 21:23:08 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
@ -28,15 +28,17 @@ Source: https://github.com/seccomp/libseccomp/releases/download/v%versio
|
|||||||
Source2: https://github.com/seccomp/libseccomp/releases/download/v%version/libseccomp-%version.tar.gz.asc
|
Source2: https://github.com/seccomp/libseccomp/releases/download/v%version/libseccomp-%version.tar.gz.asc
|
||||||
Source3: %name.keyring
|
Source3: %name.keyring
|
||||||
Source99: baselibs.conf
|
Source99: baselibs.conf
|
||||||
Source100: series
|
|
||||||
Patch1: make-python-build.patch
|
Patch1: make-python-build.patch
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake >= 1.11
|
BuildRequires: automake >= 1.11
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: libtool >= 2
|
BuildRequires: libtool >= 2
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
|
%bcond_without python
|
||||||
|
%if 0%{?with python}
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python3-Cython >= 0.29
|
BuildRequires: python3-Cython >= 0.29
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The libseccomp library provides an interface to the Linux Kernel's
|
The libseccomp library provides an interface to the Linux Kernel's
|
||||||
@ -102,7 +104,9 @@ echo 'int main () { return 0; }' >tests/52-basic-load.c
|
|||||||
autoreconf -fiv
|
autoreconf -fiv
|
||||||
%configure \
|
%configure \
|
||||||
--includedir="%_includedir/%name" \
|
--includedir="%_includedir/%name" \
|
||||||
|
%if 0%{?with python}
|
||||||
--enable-python \
|
--enable-python \
|
||||||
|
%endif
|
||||||
--disable-static \
|
--disable-static \
|
||||||
--disable-silent-rules \
|
--disable-silent-rules \
|
||||||
GPERF=/bin/true
|
GPERF=/bin/true
|
||||||
@ -111,11 +115,11 @@ autoreconf -fiv
|
|||||||
%install
|
%install
|
||||||
%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
|
||||||
%fdupes %buildroot/%_prefix
|
%fdupes %buildroot/%_prefix
|
||||||
rm %{buildroot}%{python3_sitearch}/install_files.txt
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export LD_LIBRARY_PATH="${PWD}/src/.libs"
|
export LD_LIBRARY_PATH="$PWD/src/.libs"
|
||||||
make check
|
make check
|
||||||
|
|
||||||
%post -n %lname -p /sbin/ldconfig
|
%post -n %lname -p /sbin/ldconfig
|
||||||
@ -135,8 +139,10 @@ make check
|
|||||||
%_bindir/scmp_sys_resolver
|
%_bindir/scmp_sys_resolver
|
||||||
%_mandir/man1/scmp_sys_resolver.1*
|
%_mandir/man1/scmp_sys_resolver.1*
|
||||||
|
|
||||||
|
%if 0%{?with python}
|
||||||
%files -n python3-seccomp
|
%files -n python3-seccomp
|
||||||
%{python3_sitearch}/seccomp-%{version}-py*.egg-info
|
%python3_sitearch/seccomp-%version-py*.egg-info
|
||||||
%{python3_sitearch}/seccomp.cpython*.so
|
%python3_sitearch/seccomp.cpython*.so
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user