[packages/libxml2] - bcond to build python3-libxml2 which can coexist with python-libxml2 2.14.x

qboosh qboosh at pld-linux.org
Mon Dec 1 21:47:59 CET 2025


commit 6b8ce11465a578b35ffa210e2d836b5d220af7bf
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Dec 1 21:48:08 2025 +0100

    - bcond to build python3-libxml2 which can coexist with python-libxml2 2.14.x

 libxml2.spec | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/libxml2.spec b/libxml2.spec
index 201bdba..2b1dafd 100644
--- a/libxml2.spec
+++ b/libxml2.spec
@@ -9,6 +9,7 @@
 %bcond_without	static_libs	# static library
 %bcond_without	zlib		# zlib support
 %bcond_without	tests		# "make check" call
+%bcond_without	obsolete_py2	# obsolete legacy CPython 2.x module (buildable from python-libxml2.spec)
 
 %if %{without apidocs}
 %undefine	python3
@@ -153,7 +154,7 @@ Summary(pl.UTF-8):	Moduł libxml2 dla Pythona 3.x
 Group:		Libraries/Python
 Requires:	%{name}%{?_isa} = %{epoch}:%{version}-%{release}
 Requires:	python3-libs
-Obsoletes:	python-libxml2 < 1:2.15.0
+%{?with_obsolete_py2:Obsoletes:	python-libxml2 < 1:2.15.0}
 
 %description -n python3-%{name}
 This is the libxml2 module for Python 3.x, providing access to the
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libxml2.git/commitdiff/6b8ce11465a578b35ffa210e2d836b5d220af7bf




More information about the pld-cvs-commit mailing list