[packages/python3-pillow] fix build without tests

atler atler at pld-linux.org
Wed Sep 9 22:02:58 CEST 2020


commit c5fd99f2d94f1bb9dd7955142215e392b059f775
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Sep 9 22:02:23 2020 +0200

    fix build without tests

 python3-pillow.spec | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/python3-pillow.spec b/python3-pillow.spec
index 398838e..c301c50 100644
--- a/python3-pillow.spec
+++ b/python3-pillow.spec
@@ -168,7 +168,9 @@ cp -p src/libImaging/*.h $RPM_BUILD_ROOT%{py3_incdir}/Imaging
 # Fix non-standard-executable-perm
 chmod +x $RPM_BUILD_ROOT%{py3_sitedir}/PIL/*.so
 
+%if %{with tests}
 %{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/{Tests,selftest.py,__pycache__/selftest.*}
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pillow.git/commitdiff/c5fd99f2d94f1bb9dd7955142215e392b059f775



More information about the pld-cvs-commit mailing list