further cleanups

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2018-01-24 07:40:17 +01:00
parent 203f3720a7
commit 3d86e10029
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

View File

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