From 3d86e10029f182b48678aaac88d71ca94a417895 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 24 Jan 2018 07:40:17 +0100 Subject: [PATCH] further cleanups Signed-off-by: Igor Gnatenko --- libxml2.spec | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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