From 4cf5d804db29684448b2592d166b6a3c6244a868 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Sun, 29 May 2011 20:44:52 +0200 Subject: [PATCH] install unversioned icons --- libreoffice.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libreoffice.spec b/libreoffice.spec index 5c445e1..0f136ac 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -1180,8 +1180,9 @@ pushd sysui/output/usr/share/ rm -rf icons/gnome applications application-registry #relocate the rest of them -# remove versioned icons -find icons -type f -name "*office$ICONVERSION*" -print0 | xargs -0 rm -f +for icon in `find icons -type f`; do + mv $icon `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