]> git.pld-linux.org Git - packages/zlib.git/commitdiff
- move asm patch into asm bcond; fail build if test suite fails
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 2 Jan 2017 19:20:27 +0000 (20:20 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 2 Jan 2017 19:20:27 +0000 (20:20 +0100)
zlib.spec

index ff47d01764a2c019ca1a1e8a02cbc14a04283f48..f47c72e2b306b169ac1d1939922fc70437cc5143 100644 (file)
--- a/zlib.spec
+++ b/zlib.spec
@@ -292,9 +292,9 @@ Ten pakiet zawiera statyczną wersję biblioteki minizip.
 
 %prep
 %setup -q
-%patch0 -p1
 
 %if %{with asmopt}
+%patch0 -p1
 %ifarch i686 pentium3 pentium4 athlon
 cp contrib/asm686/match.S .
 %endif
@@ -326,7 +326,10 @@ cd contrib/minizip
 %{__make} -j1
 cd ../..
 
-%{?with_tests:%{__make} -j1 check}
+%if %{with tests}
+%{__make} -j1 check 2>&1 | tee test-log
+grep -q FAILED test-log && exit 1
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.058195 seconds and 4 git commands to generate.