[packages/lz4] install headers to lz4 subdir

glen glen at pld-linux.org
Mon Dec 12 10:17:44 CET 2016


commit c3b75833df898bce3246a01666810f57f797003a
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Dec 12 11:16:49 2016 +0200

    install headers to lz4 subdir
    
    for projects like mysql:
    
     #include "lz4/lz4frame.h"

 lz4.spec | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/lz4.spec b/lz4.spec
index d285284..8d7d6fc 100644
--- a/lz4.spec
+++ b/lz4.spec
@@ -83,13 +83,14 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	PREFIX=%{_prefix} \
 	LIBDIR=%{_libdir} \
+	INCLUDEDIR=%{_includedir}/lz4 \
 	INSTALL="install -p" \
 	DESTDIR=$RPM_BUILD_ROOT \
 
 install -d $RPM_BUILD_ROOT/%{_lib}
 mv $RPM_BUILD_ROOT%{_libdir}/liblz4.so.* $RPM_BUILD_ROOT/%{_lib}
-ln -sf /%{_lib}/$(cd $RPM_BUILD_ROOT/%{_lib}; echo liblz4.so.*.*.*) \
-        $RPM_BUILD_ROOT%{_libdir}/liblz4.so
+ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/liblz4.so.*.*.*) \
+	$RPM_BUILD_ROOT%{_libdir}/liblz4.so
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -117,9 +118,10 @@ rm -rf $RPM_BUILD_ROOT
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/liblz4.so
-%{_includedir}/lz4.h
-%{_includedir}/lz4hc.h
-%{_includedir}/lz4frame.h
+%dir %{_includedir}/lz4
+%{_includedir}/lz4/lz4.h
+%{_includedir}/lz4/lz4hc.h
+%{_includedir}/lz4/lz4frame.h
 %{_pkgconfigdir}/liblz4.pc
 
 %files static
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lz4.git/commitdiff/c3b75833df898bce3246a01666810f57f797003a



More information about the pld-cvs-commit mailing list