diff --git a/zlib.changes b/zlib.changes index 3a63426..212c36b 100644 --- a/zlib.changes +++ b/zlib.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Sep 16 15:05:04 UTC 2020 - Stephan Kulow + +- Provide a testsuite subpackage to run post-build validation + ------------------------------------------------------------------- Fri Aug 28 07:58:23 UTC 2020 - Tomáš Chvátal diff --git a/zlib.spec b/zlib.spec index 32e6a29..462d849 100644 --- a/zlib.spec +++ b/zlib.spec @@ -117,6 +117,15 @@ Requires: pkgconfig This package contains the libraries and header files needed for developing applications which use minizip. +%package testsuite +Summary: Provide the test examples to reproduce test suite +Requires: libz1 = %{version} + +%description testsuite +To run the testsuite, execute %{_libexecdir}/%{name}/testsuite + +It should exit 0 + %prep %setup -q %patch0 @@ -185,6 +194,8 @@ install -m 644 zutil.h %{buildroot}%{_includedir} mkdir -p %{buildroot}%{_docdir}/%{name} cp -r examples/ %{buildroot}%{_docdir}/%{name}/ +install -D examplesh %{buildroot}%{_libexecdir}/%{name}/testsuite + # Install minizip cd contrib/minizip %make_install @@ -225,4 +236,8 @@ find %{buildroot} -type f -name "*.la" -delete -print %files devel-static %{_libdir}/libz.a +%files testsuite +%dir %{_libexecdir}/%{name} +%{_libexecdir}/%{name}/testsuite + %changelog