Accepting request 851093 from home:lnussel:usrmove
- install to /usr (boo#1029961) OBS-URL: https://build.opensuse.org/request/show/851093 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/zlib?expand=0&rev=71
This commit is contained in:
parent
df94fc0a2a
commit
9c94b73321
@ -4,6 +4,11 @@ Mon Nov 9 08:00:35 UTC 2020 - Ali Abdallah <ali.abdallah@suse.com>
|
||||
- Fix hw compression on z15 bsc#1176201
|
||||
- Add zlib-s390x-z15-fix-hw-compression.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 28 14:38:00 UTC 2020 - Ludwig Nussel <lnussel@suse.de>
|
||||
|
||||
- install to /usr (boo#1029961)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 16 15:05:04 UTC 2020 - Stephan Kulow <coolo@suse.com>
|
||||
|
||||
|
15
zlib.spec
15
zlib.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package zlib
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -154,7 +154,7 @@ export LDFLAGS="-Wl,-z,relro,-z,now"
|
||||
CC="cc" ./configure \
|
||||
--shared \
|
||||
--prefix=%{_prefix} \
|
||||
--libdir=/%{_lib} \
|
||||
--libdir=%{_libdir} \
|
||||
%ifarch s390x s390
|
||||
--dfltcc \
|
||||
%endif
|
||||
@ -183,13 +183,6 @@ make check %{?_smp_mflags}
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_libdir}
|
||||
%make_install
|
||||
# Fix shared library placement/symlinks
|
||||
ln -s -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/libz.so) %{buildroot}%{_libdir}/libz.so
|
||||
rm -v %{buildroot}/%{_lib}/libz.so
|
||||
# Static lib
|
||||
mv %{buildroot}/%{_lib}/libz.a %{buildroot}%{_libdir}
|
||||
# Move .pc file to _libdir
|
||||
mv %{buildroot}/%{_lib}/pkgconfig %{buildroot}%{_libdir}
|
||||
# manpage
|
||||
install -m 644 zlib.3 %{buildroot}%{_mandir}/man3
|
||||
install -m 644 zutil.h %{buildroot}%{_includedir}
|
||||
@ -211,8 +204,8 @@ find %{buildroot} -type f -name "*.la" -delete -print
|
||||
|
||||
%files -n libz1
|
||||
%license LICENSE
|
||||
/%{_lib}/libz.so.1.2.*
|
||||
/%{_lib}/libz.so.1
|
||||
%{_libdir}/libz.so.1.2.*
|
||||
%{_libdir}/libz.so.1
|
||||
|
||||
%files devel
|
||||
%doc README ChangeLog
|
||||
|
Loading…
Reference in New Issue
Block a user