]> git.pld-linux.org Git - packages/libseccomp.git/commitdiff
python bindings
authorElan Ruusamäe <glen@delfi.ee>
Mon, 15 Feb 2016 21:00:54 +0000 (23:00 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 15 Feb 2016 21:00:54 +0000 (23:00 +0200)
broken, requires our %py_build/%py_install hacks

libseccomp.spec

index 6854645c0f73ecaa8dd1d2b3e1ac477054995b91..39908a70fab511f903a7bba3a6081002e30da7db 100644 (file)
@@ -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}
 
This page took 0.22812 seconds and 4 git commands to generate.