diff --git a/libxml2.spec b/libxml2.spec index 1544b4b..52b8789 100644 --- a/libxml2.spec +++ b/libxml2.spec @@ -133,7 +133,6 @@ 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 -c doc/libxml2-api.xml > doc/libxml2-api.xml.gz %check make runtests @@ -160,8 +159,8 @@ rm -fr %{buildroot} %files devel %doc %{_mandir}/man1/xml2-config.1* %doc AUTHORS NEWS README Copyright -%doc doc/*.html doc/html doc/*.gif doc/*.png -%doc doc/tutorial doc/libxml2-api.xml.gz +%doc doc/*.html doc/*.gif doc/*.png +%doc doc/tutorial %doc doc/examples %doc %dir %{_datadir}/gtk-doc/html/libxml2 %doc %{_datadir}/gtk-doc/html/libxml2/*.devhelp @@ -205,6 +204,9 @@ rm -fr %{buildroot} - remove %%defattr from %%files (no longer needed) - do not build and package libxml2 static library as none of other packages is using static libxml2 librarys (https://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_Static_Libraries) +- removed 2nd copy of the libxml2 API documentation (doc/html it is + the same as in %%{_datadir}/gtk-doc/html/libxml2) and 3rd copy in source xml + (devel package is now 30% smaller) * Fri Sep 22 2017 Petr Pisar - 2.9.5-2 - Fix reporting error about undefined XPath variables (bug #1493613)