[packages/libseccomp] python bindings

glen glen at pld-linux.org
Mon Feb 15 22:01:19 CET 2016


commit 9f228da83ac30238f965c6731096e30a21bf1e4b
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Feb 15 23:00:54 2016 +0200

    python bindings
    
    broken, requires our %py_build/%py_install hacks

 libseccomp.spec | 5 +++++
 1 file changed, 5 insertions(+)
---
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}
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libseccomp.git/commitdiff/9f228da83ac30238f965c6731096e30a21bf1e4b



More information about the pld-cvs-commit mailing list