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.
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 @@
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}