diff --git a/libxml2.spec b/libxml2.spec index ca4826f..c0ebfbd 100644 --- a/libxml2.spec +++ b/libxml2.spec @@ -113,13 +113,13 @@ rm -fr %{buildroot} %make_install -C py3 # multiarch crazyness on timestamp differences or Makefile/binaries for examples -touch -m --reference=$RPM_BUILD_ROOT/%{_includedir}/libxml2/libxml/parser.h $RPM_BUILD_ROOT/%{_bindir}/xml2-config +touch -m --reference=%{buildroot}%{_includedir}/libxml2/libxml/parser.h %{buildroot}%{_bindir}/xml2-config -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}/* +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}/* #(cd doc/examples ; make clean ; rm -rf .deps Makefile) gzip -9 -c doc/libxml2-api.xml > doc/libxml2-api.xml.gz