SHA256
3
0
forked from pool/zlib

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
This commit is contained in:
Tomáš Chvátal 2020-09-16 17:25:26 +00:00 committed by Git OBS Bridge
parent 41ca660d5c
commit 3ab26512eb
2 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Sep 16 15:05:04 UTC 2020 - Stephan Kulow <coolo@suse.com>
- Provide a testsuite subpackage to run post-build validation
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Aug 28 07:58:23 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com> Fri Aug 28 07:58:23 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -117,6 +117,15 @@ Requires: pkgconfig
This package contains the libraries and header files needed for This package contains the libraries and header files needed for
developing applications which use minizip. 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 %prep
%setup -q %setup -q
%patch0 %patch0
@ -185,6 +194,8 @@ install -m 644 zutil.h %{buildroot}%{_includedir}
mkdir -p %{buildroot}%{_docdir}/%{name} mkdir -p %{buildroot}%{_docdir}/%{name}
cp -r examples/ %{buildroot}%{_docdir}/%{name}/ cp -r examples/ %{buildroot}%{_docdir}/%{name}/
install -D examplesh %{buildroot}%{_libexecdir}/%{name}/testsuite
# Install minizip # Install minizip
cd contrib/minizip cd contrib/minizip
%make_install %make_install
@ -225,4 +236,8 @@ find %{buildroot} -type f -name "*.la" -delete -print
%files devel-static %files devel-static
%{_libdir}/libz.a %{_libdir}/libz.a
%files testsuite
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/testsuite
%changelog %changelog