commit c5fd99f2d94f1bb9dd7955142215e392b059f775
Author: Jan Palus <[email protected]>
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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to