[packages/linux-libc-headers] - do headers_check

glen glen at pld-linux.org
Thu Nov 8 07:14:45 CET 2012


commit 32f5647f56da60593b3799db05d663b145b694f6
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Nov 8 08:14:34 2012 +0200

    - do headers_check

 linux-libc-headers.spec | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/linux-libc-headers.spec b/linux-libc-headers.spec
index 543f4d5..f42b71f 100644
--- a/linux-libc-headers.spec
+++ b/linux-libc-headers.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without	tests		# build without tests
+
 %define	basever	3.6
 %define	postver	0
 Summary:	Linux kernel headers for use with C libraries
@@ -79,6 +83,12 @@ rm -rf $RPM_BUILD_ROOT
 	INSTALL_HDR_PATH=$RPM_BUILD_ROOT%{_prefix} \
 	ARCH=%{target_arch}
 
+%if %{with tests}
+%{__make} -C linux-%{basever} headers_check \
+	INSTALL_HDR_PATH=$RPM_BUILD_ROOT%{_prefix} \
+	ARCH=%{target_arch}
+%endif
+
 # provided by glibc-headers
 %{__rm} -r $RPM_BUILD_ROOT%{_includedir}/scsi
 
@@ -86,7 +96,10 @@ rm -rf $RPM_BUILD_ROOT
 %{__rm} -r $RPM_BUILD_ROOT%{_includedir}/drm
 
 # trash
-find $RPM_BUILD_ROOT%{_includedir} -type f -name '..install.cmd' -o -name '.install' | xargs %{__rm}
+find $RPM_BUILD_ROOT%{_includedir} -type f \
+	-name '..check.cmd' -o -name '.check' -o \
+	-name '..install.cmd' -o -name '.install' \
+| xargs %{__rm}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/linux-libc-headers.git/commitdiff/32f5647f56da60593b3799db05d663b145b694f6



More information about the pld-cvs-commit mailing list