]> git.pld-linux.org Git - packages/libseccomp.git/commitdiff
disable python modules if building without static libs
authorJan Palus <atler@pld-linux.org>
Sat, 26 Sep 2020 11:03:37 +0000 (13:03 +0200)
committerJan Palus <atler@pld-linux.org>
Sat, 26 Sep 2020 11:03:37 +0000 (13:03 +0200)
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

index 53027bb5d53fea1b826c8e4d03d001c7b3ea0eab..a80ac79c61eab7e76b20c643d99c4195ce5a1065 100644 (file)
@@ -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
This page took 0.175797 seconds and 4 git commands to generate.