SHA256
3
0
forked from pool/zlib

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:
Adam Majer 2020-11-27 10:49:41 +00:00 committed by Git OBS Bridge
parent df94fc0a2a
commit 9c94b73321
2 changed files with 9 additions and 11 deletions

View File

@ -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 - Fix hw compression on z15 bsc#1176201
- Add zlib-s390x-z15-fix-hw-compression.patch - 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> Wed Sep 16 15:05:04 UTC 2020 - Stephan Kulow <coolo@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package zlib # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -154,7 +154,7 @@ export LDFLAGS="-Wl,-z,relro,-z,now"
CC="cc" ./configure \ CC="cc" ./configure \
--shared \ --shared \
--prefix=%{_prefix} \ --prefix=%{_prefix} \
--libdir=/%{_lib} \ --libdir=%{_libdir} \
%ifarch s390x s390 %ifarch s390x s390
--dfltcc \ --dfltcc \
%endif %endif
@ -183,13 +183,6 @@ make check %{?_smp_mflags}
%install %install
mkdir -p %{buildroot}%{_libdir} mkdir -p %{buildroot}%{_libdir}
%make_install %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 # manpage
install -m 644 zlib.3 %{buildroot}%{_mandir}/man3 install -m 644 zlib.3 %{buildroot}%{_mandir}/man3
install -m 644 zutil.h %{buildroot}%{_includedir} install -m 644 zutil.h %{buildroot}%{_includedir}
@ -211,8 +204,8 @@ find %{buildroot} -type f -name "*.la" -delete -print
%files -n libz1 %files -n libz1
%license LICENSE %license LICENSE
/%{_lib}/libz.so.1.2.* %{_libdir}/libz.so.1.2.*
/%{_lib}/libz.so.1 %{_libdir}/libz.so.1
%files devel %files devel
%doc README ChangeLog %doc README ChangeLog