[libxml2] Fix rpmbuild --nocheck



commit 60adeea933de4abeb431e43454db3433a5427cda
Author: Mark Salter <msalter redhat com>
Date:   Mon Feb 11 12:45:56 2013 +0800

    Fix rpmbuild --nocheck
    
    if the %check section was omitted some of the file needed for
    packaging would not be generated, move the generation to the
    proper place.

 libxml.spec.in |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libxml.spec.in b/libxml.spec.in
index 1ffa683..48060bb 100644
--- a/libxml.spec.in
+++ b/libxml.spec.in
@@ -76,16 +76,16 @@ rm -fr %{buildroot}
 
 make install DESTDIR=%{buildroot}
 
-%check
-make check
-
 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
 rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.a
 rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.la
 rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libxml2-%{version}/*
 rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libxml2-python-%{version}/*
 (cd doc/examples ; make clean ; rm -rf .deps Makefile)
-gzip -9 doc/libxml2-api.xml
+gzip -9 -c doc/libxml2-api.xml > doc/libxml2-api.xml.gz
+
+%check
+make runtests
 
 %clean
 rm -fr %{buildroot}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]