[packages/libnl] correct python bcond handling
atler
atler at pld-linux.org
Tue May 19 20:50:23 CEST 2026
commit befa1b8e16bb26123d7d8eb9684968cf1d1a8d6f
Author: Jan Palus <atler at pld-linux.org>
Date: Tue May 19 20:32:36 2026 +0200
correct python bcond handling
fixes files when building --without python
libnl.spec | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/libnl.spec b/libnl.spec
index d9fdb9a..94d24ec 100644
--- a/libnl.spec
+++ b/libnl.spec
@@ -8,6 +8,15 @@
%bcond_without tests # unit tests
%bcond_with net_tests # unit tests using unshare for net ns
+%if %{without python}
+%undefine with_python2
+%undefine with_python3
+%else
+%if %{without python2} && %{without python3}
+%undefine with_python
+%endif
+%endif
+
Summary: Netlink sockets library
Summary(pl.UTF-8): Biblioteka do obsługi gniazd netlink
Name: libnl
@@ -33,7 +42,7 @@ BuildRequires: pkgconfig
%{?with_python3:BuildRequires: python3-devel >= 1:3.2}
BuildRequires: rpmbuild(macros) >= 1.714
BuildRequires: sed >= 4.0
-BuildRequires: swig-python >= 2
+%{?with_python:BuildRequires: swig-python >= 2}
%if 0 && %{with apidocs}
# no docs Makefile up to 3.2.24
BuildRequires: asciidoc >= 8.6.5
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libnl.git/commitdiff/77f647951c470a12761d6b44f025d779e2a180c5
More information about the pld-cvs-commit
mailing list