From 82bf1b54a23205b84258725ff9ffd74129578b33b35c32fbd6fce7db6a7f8b55 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 2 May 2022 09:10:44 +0000 Subject: [PATCH] python bcond OBS-URL: https://build.opensuse.org/package/show/security/libseccomp?expand=0&rev=99 --- libseccomp.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libseccomp.spec b/libseccomp.spec index aa8ff47..d69f92a 100644 --- a/libseccomp.spec +++ b/libseccomp.spec @@ -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