From aa634eccad09ebae197d4a4ade1a34efba1e356f Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 24 Jan 2018 07:13:48 +0100 Subject: [PATCH] =?UTF-8?q?$RPM=5FBUILD=5FROOT=20=E2=86=92=20%{buildroot}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Igor Gnatenko --- libxml2.spec | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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