From 775cd0fd804d3f19197c0fa1f36deb93efb03404 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Thu, 25 Aug 2011 07:18:01 +0200 Subject: [PATCH] do not rename icons in place, it breaks short circuit install --- libreoffice.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libreoffice.spec b/libreoffice.spec index 0eafa1b..97c180b 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -1261,9 +1261,9 @@ rm -rf icons/gnome applications application-registry #relocate the rest of them for icon in `find icons -type f`; do - mv $icon `echo $icon | sed -e s@office$ICONVERSION@office@` + mkdir -p $RPM_BUILD_ROOT/%{_datadir}/`dirname $icon` + cp -p $icon $RPM_BUILD_ROOT/%{_datadir}/`echo $icon | sed -e s@office$ICONVERSION@office@` done -cp -r icons $RPM_BUILD_ROOT/%{_datadir} mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mime-info cp -p mime-info/libreoffice$PRODUCTVERSION.keys $RPM_BUILD_ROOT/%{_datadir}/mime-info/libreoffice.keys cp -p mime-info/libreoffice$PRODUCTVERSION.mime $RPM_BUILD_ROOT/%{_datadir}/mime-info/libreoffice.mime