From 3ab26512eb3b416352bf16890d5216b62a091954d43287ab279813174e9aec01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 16 Sep 2020 17:25:26 +0000 Subject: [PATCH] Accepting request 834942 from home:coolo:branches:openSUSE:Factory - Provide a testsuite subpackage to run post-build validation OBS-URL: https://build.opensuse.org/request/show/834942 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/zlib?expand=0&rev=68 --- zlib.changes | 5 +++++ zlib.spec | 15 +++++++++++++++ 2 files changed, 20 insertions(+) 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