SHA256
3
0
forked from pool/zlib

- Bring back zlib-devel-static. Needed by binutils

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/zlib?expand=0&rev=29
This commit is contained in:
Tomáš Chvátal 2015-06-30 11:31:09 +00:00 committed by Git OBS Bridge
parent ab2da93a7d
commit df80c71819
3 changed files with 20 additions and 2 deletions

View File

@ -3,3 +3,4 @@ libz1
provides "zlib-<targettype> = <version>"
obsoletes "zlib-<targettype> <= 1.2.8"
zlib-devel
zlib-devel-static

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jun 30 11:30:37 UTC 2015 - tchvatal@suse.com
- Bring back zlib-devel-static. Needed by binutils
-------------------------------------------------------------------
Wed Jun 24 09:01:59 UTC 2015 - tchvatal@suse.com

View File

@ -75,6 +75,14 @@ This package contains all necessary include files and libraries needed
to develop applications that require the provided includes and
libraries.
%package devel-static
Summary: Static lib for libz1 library
Group: Development/Languages/C and C++
Provides: %{name}-devel:%{_libdir}/libz.a
%description devel-static
Static library for libz1 package, that is complementing the devel package
%package -n libminizip1
Summary: Library for manipulation with .zip archives
Group: System/Libraries
@ -137,8 +145,8 @@ make DESTDIR=%{buildroot} install %{?_smp_mflags}
# Fix shared library placement/symlinks
ln -s -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/libz.so) %{buildroot}%{_libdir}/libz.so
rm -v %{buildroot}/%{_lib}/libz.so
# Kill static library
rm -f %{buildroot}/%{_lib}/libz.a
# Static lib
mv %{buildroot}/%{_lib}/libz.a %{buildroot}%{_libdir}
# Move .pc file to _libdir
mv %{buildroot}/%{_lib}/pkgconfig %{buildroot}%{_libdir}
# manpage
@ -191,4 +199,8 @@ find %{buildroot} -type f -name "*.la" -delete -print
%{_libdir}/libminizip.so
%{_libdir}/pkgconfig/minizip.pc
%files devel-static
%defattr(-,root,root)
%{_libdir}/libz.a
%changelog