[packages/libargon2] fix libdir install

glen glen at pld-linux.org
Wed Aug 23 08:12:19 CEST 2017


commit 86c6bb9968b47352160f6ecbe384d8c6fc542475
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Wed Aug 23 09:11:50 2017 +0300

    fix libdir install

 libargon2.spec | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/libargon2.spec b/libargon2.spec
index bf491d2..56ea328 100644
--- a/libargon2.spec
+++ b/libargon2.spec
@@ -65,6 +65,9 @@ CFLAGS="%{rpmcflags}" \
 %install
 rm -rf $RPM_BUILD_ROOT
 %{__make} install \
+	INSTALL="install -p" \
+	PREFIX=%{_prefix} \
+	LIBRARY_REL=%{_lib} \
 	DESTDIR=$RPM_BUILD_ROOT
 
 %clean
@@ -77,7 +80,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc README.md CHANGELOG.md LICENSE
 %attr(755,root,root) %{_bindir}/argon2
-%{_prefix}/lib/libargon2.so
+%attr(755,root,root) %{_libdir}/libargon2.so
 
 %files devel
 %defattr(644,root,root,755)
@@ -86,5 +89,5 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
-%{_prefix}/lib/libargon2.a
+%{_libdir}/libargon2.a
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libargon2.git/commitdiff/86c6bb9968b47352160f6ecbe384d8c6fc542475



More information about the pld-cvs-commit mailing list