[packages/python-testrepository] - disable python3 here, moved /usr/bin/testr symlink to python3; release 12

qboosh qboosh at pld-linux.org
Tue Jul 8 05:59:20 CEST 2025


commit ed9ec22c3dbd8b5d3b3de95ef13ce4734011efce
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Jul 8 06:00:44 2025 +0200

    - disable python3 here, moved /usr/bin/testr symlink to python3; release 12

 python-testrepository.spec | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/python-testrepository.spec b/python-testrepository.spec
index 83bd4f7..fcabb98 100644
--- a/python-testrepository.spec
+++ b/python-testrepository.spec
@@ -2,13 +2,14 @@
 # Conditional build:
 %bcond_with	tests	# testr (python 2 only because of bzr dependency, broken as of 0.0.20)
 %bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
+%bcond_with	python3 # CPython 3.x module
 
 Summary:	A repository of test results
 Summary(pl.UTF-8):	Repozytorium wyników testów
 Name:		python-testrepository
+# keep 0.0.20 here: 0.0.21 build system requires python3
 Version:	0.0.20
-Release:	11
+Release:	12
 License:	Apache v2.0 or BSD
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/testrepository/
@@ -133,11 +134,12 @@ rm -rf $RPM_BUILD_ROOT
 %py3_install
 %{__mv} $RPM_BUILD_ROOT%{_bindir}/testr{,-3}
 
+ln -sf testr-3 $RPM_BUILD_ROOT%{_bindir}/testr
+
 %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/testrepository/tests
 %endif
 
 %if %{with python2}
-ln -sf testr-2 $RPM_BUILD_ROOT%{_bindir}/testr
 %endif
 
 %clean
@@ -147,7 +149,6 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc BSD COPYING NEWS README.txt doc
-%attr(755,root,root) %{_bindir}/testr
 %attr(755,root,root) %{_bindir}/testr-2
 %{py_sitescriptdir}/testrepository
 %{py_sitescriptdir}/testrepository-%{version}-py*.egg-info
@@ -157,6 +158,7 @@ rm -rf $RPM_BUILD_ROOT
 %files -n python3-testrepository
 %defattr(644,root,root,755)
 %doc BSD COPYING NEWS README.txt doc
+%attr(755,root,root) %{_bindir}/testr
 %attr(755,root,root) %{_bindir}/testr-3
 %{py3_sitescriptdir}/testrepository
 %{py3_sitescriptdir}/testrepository-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-testrepository.git/commitdiff/ed9ec22c3dbd8b5d3b3de95ef13ce4734011efce



More information about the pld-cvs-commit mailing list