[packages/libseccomp] disable python modules if building without static libs
atler
atler at pld-linux.org
Sat Sep 26 13:06:36 CEST 2020
commit de4a549d5408c5f7a5323998da360ad50551e855
Author: Jan Palus <atler at pld-linux.org>
Date: Sat Sep 26 13:03:37 2020 +0200
disable python modules if building without static libs
for whatever reason python modules are linked statically:
Extension("seccomp", ["seccomp.pyx"],
# unable to handle libtool libraries directly
extra_objects=["../.libs/libseccomp.a"],
libseccomp.spec | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/libseccomp.spec b/libseccomp.spec
index 53027bb..a80ac79 100644
--- a/libseccomp.spec
+++ b/libseccomp.spec
@@ -9,6 +9,11 @@
# tests seem broken on x86 and x32
%undefine with_tests
%endif
+
+%if %{without static_libs}
+%undefine with_python2
+%undefine with_python3
+%endif
Summary: Enhanced Seccomp (mode 2) Helper library
Summary(pl.UTF-8): Rozszerzona biblioteka pomocnicza Seccomp (trybu 2)
Name: libseccomp
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libseccomp.git/commitdiff/de4a549d5408c5f7a5323998da360ad50551e855
More information about the pld-cvs-commit
mailing list