diff --git a/libxml2.spec b/libxml2.spec index 4a69b2e..4fd3979 100644 --- a/libxml2.spec +++ b/libxml2.spec @@ -109,11 +109,8 @@ mkdir py2 py3 # multiarch crazyness on timestamp differences or Makefile/binaries for examples touch -m --reference=%{buildroot}%{_includedir}/libxml2/libxml/parser.h %{buildroot}%{_bindir}/xml2-config -rm -f %{buildroot}%{_libdir}/*.la -rm -f %{buildroot}%{_libdir}/python*/site-packages/*.a -rm -f %{buildroot}%{_libdir}/python*/site-packages/*.la -rm -rf %{buildroot}%{_datadir}/doc/libxml2-%{version}/* -rm -rf %{buildroot}%{_datadir}/doc/libxml2-python-%{version}/* +find %{buildroot} -type f -name '*.a' -o -name '*.la' -print -delete +rm -vrf %{buildroot}%{_datadir}/doc/ #(cd doc/examples ; make clean ; rm -rf .deps Makefile) gzip -9 -c doc/libxml2-api.xml > doc/libxml2-api.xml.gz