SHA256
1
0
forked from pool/zlib

Accepting request 834969 from devel:libraries:c_c++

OBS-URL: https://build.opensuse.org/request/show/834969
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/zlib?expand=0&rev=79
This commit is contained in:
Dominique Leuenberger 2020-09-23 16:39:17 +00:00 committed by Git OBS Bridge
commit 10674fea63
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>

View File

@ -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