]> git.pld-linux.org Git - packages/linux-libc-headers.git/commitdiff
- do headers_check
authorElan Ruusamäe <glen@delfi.ee>
Thu, 8 Nov 2012 06:14:34 +0000 (08:14 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 8 Nov 2012 06:14:34 +0000 (08:14 +0200)
linux-libc-headers.spec

index 543f4d51ce1e09a12a824084a94f63abc775e61d..f42b71fb9de8fd9cb7a0f741e316a9c1c232fc30 100644 (file)
@@ -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
This page took 0.162874 seconds and 4 git commands to generate.