diff options
Diffstat (limited to 'packaging/lzo.spec')
-rw-r--r-- | packaging/lzo.spec | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/packaging/lzo.spec b/packaging/lzo.spec index 08f3804..af8e19f 100644 --- a/packaging/lzo.spec +++ b/packaging/lzo.spec @@ -1,5 +1,10 @@ + +%if "%{run_tests}" == "1" + %define check %%check +%endif + Name: lzo -Version: 2.08 +Version: 2.10 Release: 0 License: GPL-2.0+ Summary: Data compression library with very fast (de)compression @@ -75,6 +80,13 @@ rm -f %{buildroot}%{_datadir}/doc/%{name}/COPYING %postun minilzo -p /sbin/ldconfig +%check +rm -f /tmp/%{name}_test +%__make test | tee -i /tmp/%{name}_log +cat /tmp/%{name}_log | grep "^LZO1" | sed -e 's/^LZO1.*| /TEST: PASS: /g' > /tmp/%{name}_test +chmod +x ./run_test.sh +./run_test.sh %{name} %{version} +rm -f /tmp/%{name}_log %files %manifest %{name}.manifest @@ -97,3 +109,4 @@ rm -f %{buildroot}%{_datadir}/doc/%{name}/COPYING %doc %{_datadir}/doc/%{name}/THANKS %{_includedir}/lzo %{_libdir}/lib*lzo*.so +%{_libdir}/pkgconfig/lzo2.pc |