[packages/zstd] - move shared library to / for rpm

baggins baggins at pld-linux.org
Sat Oct 24 12:06:03 CEST 2020


commit 2a73dcc2fdbc82b4e1c31cd2e43362b1ec8aadba
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Oct 24 12:05:40 2020 +0200

    - move shared library to / for rpm

 zstd.spec | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/zstd.spec b/zstd.spec
index 6aefdaf..6554c3a 100644
--- a/zstd.spec
+++ b/zstd.spec
@@ -58,6 +58,7 @@ LDFLAGS="%{rpmldflags}" \
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/%{_lib}
 
 %{__make} install \
 	V=1 \
@@ -65,6 +66,9 @@ rm -rf $RPM_BUILD_ROOT
 	PREFIX=%{_prefix} \
 	LIBDIR=%{_libdir}
 
+%{__mv} $RPM_BUILD_ROOT%{_libdir}/libzstd.so.* $RPM_BUILD_ROOT/%{_lib}
+ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libzstd.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libzstd.so
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -80,8 +84,8 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/zstdgrep
 %attr(755,root,root) %{_bindir}/zstdless
 %attr(755,root,root) %{_bindir}/zstdmt
-%attr(755,root,root) %{_libdir}/libzstd.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libzstd.so.1
+%attr(755,root,root) /%{_lib}/libzstd.so.*.*.*
+%attr(755,root,root) %ghost /%{_lib}/libzstd.so.1
 %{_mandir}/man1/unzstd.1*
 %{_mandir}/man1/zstd.1*
 %{_mandir}/man1/zstdcat.1*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/zstd.git/commitdiff/2a73dcc2fdbc82b4e1c31cd2e43362b1ec8aadba



More information about the pld-cvs-commit mailing list