do not version icons

f41
David Tardon 14 years ago
parent 32211f2f0d
commit e04db69146

@ -1188,8 +1188,14 @@ 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
cp -r icons $RPM_BUILD_ROOT/%{_datadir} ICONVERSION=`echo $PRODUCTVERSION | sed -e 's/\.//'`
cp -r mime-info $RPM_BUILD_ROOT/%{_datadir} 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
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
#add our mime-types, e.g. for .oxt extensions #add our mime-types, e.g. for .oxt extensions
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mime/packages mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mime/packages
cp -p mime/packages/libreoffice$PRODUCTVERSION.xml $RPM_BUILD_ROOT/%{_datadir}/mime/packages/libreoffice.xml cp -p mime/packages/libreoffice$PRODUCTVERSION.xml $RPM_BUILD_ROOT/%{_datadir}/mime/packages/libreoffice.xml

Loading…
Cancel
Save