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: libtool >= 2
|
||||
BuildRequires: pkgconfig
|
||||
%bcond_without python
|
||||
%bcond_with python
|
||||
%if 0%{?with python}
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python3-Cython >= 0.29
|
||||
@ -104,7 +104,7 @@ echo 'int main () { return 0; }' >tests/52-basic-load.c
|
||||
autoreconf -fiv
|
||||
%configure \
|
||||
--includedir="%_includedir/%name" \
|
||||
%if 0%{?with python}
|
||||
%if %{with python}
|
||||
--enable-python \
|
||||
%endif
|
||||
--disable-static \
|
||||
@ -139,7 +139,7 @@ make check
|
||||
%_bindir/scmp_sys_resolver
|
||||
%_mandir/man1/scmp_sys_resolver.1*
|
||||
|
||||
%if 0%{?with python}
|
||||
%if %{with python}
|
||||
%files -n python3-seccomp
|
||||
%python3_sitearch/seccomp-%version-py*.egg-info
|
||||
%python3_sitearch/seccomp.cpython*.so
|
||||
|
Loading…
Reference in New Issue
Block a user