Work around desktop-file-install issues

This commit is contained in:
Matthias Clasen 2007-06-05 05:28:35 +00:00
parent 69fa8c69b0
commit 90a7cb6036

View File

@ -135,6 +135,8 @@ unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
# make sure desktop files validate by ignoring sr@Latn # make sure desktop files validate by ignoring sr@Latn
perl -pi -e 's/sr\@Latn/sp/g' $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop perl -pi -e 's/sr\@Latn/sp/g' $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop
# desktop-file-install can't handle empty OnlyShowIn correctly
perl -pi -e 's/OnlyShowIn=;/OnlyShowIn=GNOME;/' $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop
desktop-file-install --vendor gnome --delete-original \ desktop-file-install --vendor gnome --delete-original \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \