[packages/python-stestr] - don't package tests

qboosh qboosh at pld-linux.org
Thu Feb 22 21:43:32 CET 2024


commit bf5f08b199852ad4454f830553c1f02ccde2cd48
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Feb 22 21:35:34 2024 +0100

    - don't package tests

 python-stestr.spec | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/python-stestr.spec b/python-stestr.spec
index 629b198..c00ad50 100644
--- a/python-stestr.spec
+++ b/python-stestr.spec
@@ -168,6 +168,7 @@ rm -rf $RPM_BUILD_ROOT
 %py_install
 
 %py_postclean
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/stestr/tests
 
 %{__mv} $RPM_BUILD_ROOT%{_bindir}/stestr{,-2}
 %endif
@@ -175,6 +176,8 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python3}
 %py3_install
 
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/stestr/tests
+
 %{__mv} $RPM_BUILD_ROOT%{_bindir}/stestr{,-3}
 ln -sf stestr-3 $RPM_BUILD_ROOT%{_bindir}/stestr
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-stestr.git/commitdiff/bf5f08b199852ad4454f830553c1f02ccde2cd48



More information about the pld-cvs-commit mailing list