[packages/python3-packaging] - added bootstrap to work around chicken-egg with rpm

baggins baggins at pld-linux.org
Mon Mar 10 01:48:43 CET 2025


commit f5e353e32618195eb7753d9a6fb8e9e5b53be481
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Mar 9 23:52:46 2025 +0100

    - added bootstrap to work around chicken-egg with rpm

 python3-packaging.spec | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/python3-packaging.spec b/python3-packaging.spec
index 0a41797..ee1392a 100644
--- a/python3-packaging.spec
+++ b/python3-packaging.spec
@@ -3,6 +3,13 @@
 %bcond_without	doc		# don't build doc
 %bcond_without	tests		# py.test tests
 %bcond_without	setuptools	# build without setuptools (for bootstraping)
+%bcond_with	bootstrap	# bootstraping for python-rpm-packaging (rpm-pythonprov)
+
+%if %{with boostrap}
+%undefine	with_doc
+%undefine	with_tests
+%undefine	with_setuptools
+%endif
 
 Summary:	Core utilities for Python packages
 Summary(pl.UTF-8):	Bazowe funkcje narzędziowe do pakietów Pythona
@@ -23,7 +30,7 @@ BuildRequires:	python3-pretend
 BuildRequires:	python3-pyparsing >= 2.0.2
 BuildRequires:	python3-pytest
 %endif
-BuildRequires:	rpm-pythonprov
+%{!?with_bootstrap:BuildRequires:	rpm-pythonprov}
 BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with doc}
 BuildRequires:	python3-furo
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-packaging.git/commitdiff/f5e353e32618195eb7753d9a6fb8e9e5b53be481



More information about the pld-cvs-commit mailing list