From 13e4ff1f243a94d3191a4b2d2f6472085ec6ce5eccf35ee79016c3d497512803 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 29 Jun 2022 14:55:35 +0000 Subject: [PATCH] Accepting request 985849 from home:rfrohl:branches:security libseccomp: enable python3-seccomp via multibuild OBS-URL: https://build.opensuse.org/request/show/985849 OBS-URL: https://build.opensuse.org/package/show/security/libseccomp?expand=0&rev=101 --- _multibuild | 3 +++ libseccomp.changes | 5 +++++ libseccomp.spec | 8 ++++---- 3 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 _multibuild diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..683307d --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + python + diff --git a/libseccomp.changes b/libseccomp.changes index df01158..d3966bc 100644 --- a/libseccomp.changes +++ b/libseccomp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 29 13:05:06 UTC 2022 - Robert Frohl + +- Use multibuild to get python3 support back + ------------------------------------------------------------------- Sat Apr 30 16:42:48 UTC 2022 - Jan Engelhardt diff --git a/libseccomp.spec b/libseccomp.spec index d69f92a..a22a453 100644 --- a/libseccomp.spec +++ b/libseccomp.spec @@ -17,6 +17,7 @@ %define lname libseccomp2 +%global flavor @BUILD_FLAVOR@%{nil} Name: libseccomp Version: 2.5.4 Release: 0 @@ -34,8 +35,7 @@ BuildRequires: automake >= 1.11 BuildRequires: fdupes BuildRequires: libtool >= 2 BuildRequires: pkgconfig -%bcond_with python -%if 0%{?with python} +%if "%{flavor}" == "python" BuildRequires: python-rpm-macros BuildRequires: python3-Cython >= 0.29 %endif @@ -104,7 +104,7 @@ echo 'int main () { return 0; }' >tests/52-basic-load.c autoreconf -fiv %configure \ --includedir="%_includedir/%name" \ -%if %{with python} +%if "%{flavor}" == "python" --enable-python \ %endif --disable-static \ @@ -139,7 +139,7 @@ make check %_bindir/scmp_sys_resolver %_mandir/man1/scmp_sys_resolver.1* -%if %{with python} +%if "%{flavor}" == "python" %files -n python3-seccomp %python3_sitearch/seccomp-%version-py*.egg-info %python3_sitearch/seccomp.cpython*.so