forked from pool/libseccomp
python bcond
OBS-URL: https://build.opensuse.org/package/show/security/libseccomp?expand=0&rev=99
This commit is contained in:
parent
57e5cb041f
commit
82bf1b54a2
@ -34,7 +34,7 @@ BuildRequires: automake >= 1.11
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: libtool >= 2
|
BuildRequires: libtool >= 2
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
%bcond_without python
|
%bcond_with python
|
||||||
%if 0%{?with python}
|
%if 0%{?with python}
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python3-Cython >= 0.29
|
BuildRequires: python3-Cython >= 0.29
|
||||||
@ -104,7 +104,7 @@ 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}
|
%if %{with python}
|
||||||
--enable-python \
|
--enable-python \
|
||||||
%endif
|
%endif
|
||||||
--disable-static \
|
--disable-static \
|
||||||
@ -139,7 +139,7 @@ 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}
|
%if %{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
|
||||||
|
Loading…
Reference in New Issue
Block a user