[packages/libskeleton] - headers layout expects include subdir

qboosh qboosh at pld-linux.org
Mon Mar 3 19:39:14 CET 2025


commit 1509bccd1ad164a50bfffcba4cc68cc5330f1e79
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Mar 3 19:22:49 2025 +0100

    - headers layout expects include subdir

 libskeleton.spec | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/libskeleton.spec b/libskeleton.spec
index 161286d..c6ac7ba 100644
--- a/libskeleton.spec
+++ b/libskeleton.spec
@@ -93,6 +93,10 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+# headers expect subdir
+install -d $RPM_BUILD_ROOT%{_includedir}/skeleton
+%{__mv} $RPM_BUILD_ROOT%{_includedir}/*.h $RPM_BUILD_ROOT%{_includedir}/skeleton
+
 install -d $RPM_BUILD_ROOT%{_bindir}
 install examples/.libs/skeleton-* $RPM_BUILD_ROOT%{_bindir}
 
@@ -118,7 +122,7 @@ rm -rf $RPM_BUILD_ROOT
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libskeleton.so
-%{_includedir}/skeleton*.h
+%{_includedir}/skeleton
 %{_pkgconfigdir}/skeleton.pc
 
 %if %{with static_libs}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libskeleton.git/commitdiff/1509bccd1ad164a50bfffcba4cc68cc5330f1e79



More information about the pld-cvs-commit mailing list