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:
commit
10674fea63
@ -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>
|
||||
|
||||
|
15
zlib.spec
15
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
|
||||
|
Loading…
Reference in New Issue
Block a user