From d8dcd9b0a672d7411a2cbed3d3c27315701a5831 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Thu, 19 May 2011 17:44:12 +0200 Subject: [PATCH] do not install versioned icons --- libreoffice.spec | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libreoffice.spec b/libreoffice.spec index 7058406..1b51a2f 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -1188,11 +1188,10 @@ rm -rf icons/gnome applications application-registry find . -name "*.desktop" -exec sed -i -e s/$PRODUCTVERSIONSHORT//g {} \; #relocate the rest of them +# remove versioned icons ICONVERSION=`echo $PRODUCTVERSION | sed -e 's/\.//'` -for f in `find icons -type f`; do - [ ! -d `dirname $f` ] && mkdir -p `dirname $f` - cp -p $f `echo $f | sed s/libreoffice$ICONVERSION/libreoffice/` -done +find icons -type f -name '*office$ICONVERSION*' -print0 | xargs -0 rm -f +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