[packages/python3] Don't rebuild things for tests

arekm arekm at pld-linux.org
Thu Oct 10 10:45:21 CEST 2024


commit 8e8685183304714e890b0fca60c5cce72d7225d9
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Oct 10 10:44:34 2024 +0200

    Don't rebuild things for tests

 python3.spec | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/python3.spec b/python3.spec
index 71b2d7f..c144bdb 100644
--- a/python3.spec
+++ b/python3.spec
@@ -549,10 +549,13 @@ END { if (fail) { print "\nPROBLEMS FOUND:"; print logmsg; exit(1); } }'
 LC_ALL=C.UTF-8
 export LC_ALL
 %if %{with tests}
+cp -a Makefile Makefile.org
+sed -i -e 's#^test: all.*#test:#g' Makefile
 WITHIN_PYTHON_RPM_BUILD=1 \
 EXTRATESTOPTS="-v" \
 	%{__make} test \
 		TESTOPTS="%{test_flags} %{test_list}"
+cp -a Makefile.org Makefile
 %endif
 
 %if %{with info}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3.git/commitdiff/8e8685183304714e890b0fca60c5cce72d7225d9



More information about the pld-cvs-commit mailing list