do not install versioned icons

f41
David Tardon 14 years ago
parent e04db69146
commit d8dcd9b0a6

@ -1188,11 +1188,10 @@ rm -rf icons/gnome applications application-registry
find . -name "*.desktop" -exec sed -i -e s/$PRODUCTVERSIONSHORT//g {} \; find . -name "*.desktop" -exec sed -i -e s/$PRODUCTVERSIONSHORT//g {} \;
#relocate the rest of them #relocate the rest of them
# remove versioned icons
ICONVERSION=`echo $PRODUCTVERSION | sed -e 's/\.//'` ICONVERSION=`echo $PRODUCTVERSION | sed -e 's/\.//'`
for f in `find icons -type f`; do find icons -type f -name '*office$ICONVERSION*' -print0 | xargs -0 rm -f
[ ! -d `dirname $f` ] && mkdir -p `dirname $f` cp -r icons $RPM_BUILD_ROOT/%{_datadir}
cp -p $f `echo $f | sed s/libreoffice$ICONVERSION/libreoffice/`
done
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mime-info 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.keys $RPM_BUILD_ROOT/%{_datadir}/mime-info/libreoffice.keys
cp -p mime-info/libreoffice$PRODUCTVERSION.mime $RPM_BUILD_ROOT/%{_datadir}/mime-info/libreoffice.mime cp -p mime-info/libreoffice$PRODUCTVERSION.mime $RPM_BUILD_ROOT/%{_datadir}/mime-info/libreoffice.mime

Loading…
Cancel
Save