From: Elan Ruusamäe Date: Mon, 15 Feb 2016 21:00:54 +0000 (+0200) Subject: python bindings X-Git-Tag: auto/th/libseccomp-2.2.3-1~2 X-Git-Url: http://git.pld-linux.org/?p=packages%2Flibseccomp.git;a=commitdiff_plain;h=9f228da83ac30238f965c6731096e30a21bf1e4b python bindings broken, requires our %py_build/%py_install hacks --- diff --git a/libseccomp.spec b/libseccomp.spec index 6854645..39908a7 100644 --- a/libseccomp.spec +++ b/libseccomp.spec @@ -2,6 +2,7 @@ # Conditional build: %bcond_without tests %bcond_without static_libs # don't build static libraries +%bcond_with python # build Python bindings Summary: Enhanced Seccomp (mode 2) Helper library Summary(pl.UTF-8): Rozszerzona biblioteka pomocnicza Seccomp (trybu 2) @@ -14,6 +15,9 @@ Source0: https://github.com/seccomp/libseccomp/releases/download/v%{version}/%{n # Source0-md5: 7db418d35d7a6168400bf6b05502f8bf URL: https://github.com/seccomp/libseccomp BuildRequires: bash +%if %{with python} +BuildRequires: python-Cython >= 0.16 +%endif BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -63,6 +67,7 @@ Statyczna biblioteka Seccomp. %build %configure \ --disable-silent-rules \ + %{?with_python:--enable-python} \ %{!?with_static_libs:--disable-static} %{__make}