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