From 60adeea933de4abeb431e43454db3433a5427cda Mon Sep 17 00:00:00 2001 From: Mark Salter Date: Mon, 11 Feb 2013 12:45:56 +0800 Subject: [PATCH] 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 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libxml.spec.in b/libxml.spec.in index 1ffa6836..48060bb0 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}