SHA256
1
0
forked from pool/wine

Accepting request 354939 from home:MargueriteSu:branches:Emulators

fix for previous commit is here

OBS-URL: https://build.opensuse.org/request/show/354939
OBS-URL: https://build.opensuse.org/package/show/Emulators/wine?expand=0&rev=339
This commit is contained in:
Marcus Meissner 2016-01-20 13:37:38 +00:00 committed by Git OBS Bridge
parent 95654d5d62
commit 70bad6e45f
2 changed files with 23 additions and 1 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Tue Jan 12 16:08:11 UTC 2016 - i@marguerite.su
- make sure wine desktop files installed under correct categories
* currently they land in "unspecific category"
* "Emulator" can only be used after "System" or "Game" according
to freedesktop specification
* "Wine" itself is not a valid category
* "Documentation" doesn't fit wine related stuff
-------------------------------------------------------------------
Sat Jan 9 10:22:46 UTC 2016 - meissner@suse.com

View File

@ -166,7 +166,7 @@ make %{?_smp_mflags} all
make install DESTDIR=%{buildroot}
# install desktop file
install -d %{buildroot}%{_datadir}/applications/
%suse_update_desktop_file %{SOURCE4} Emulator
%suse_update_desktop_file %{SOURCE4} System Emulator
install -m 0644 %SOURCE4 %{buildroot}%{_datadir}/applications/
install -m 0644 %SOURCE6 %{buildroot}%{_datadir}/applications/
@ -190,10 +190,22 @@ cd ubuntuwine
# Install application-specific desktop files
install -d %{buildroot}%{_datadir}/applications
install -c -m 644 *.desktop %{buildroot}%{_datadir}/applications/
sed -i "/X-SuSE-translate/d" %{buildroot}%{_datadir}/applications/*.desktop
install -d %{buildroot}%{_datadir}/desktop-directories/
install -c -m 644 *.directory %{buildroot}%{_datadir}/desktop-directories/
# Correct desktop files' categories
%suse_update_desktop_file -n -r wine-notepad Utility TextEditor
%suse_update_desktop_file -n -r wine-uninstaller System Emulator
%suse_update_desktop_file -n -r wine-winecfg System Emulator
%suse_update_desktop_file -n -r wine-regedit System Emulator
%suse_update_desktop_file -n -r wine-winehelp System Emulator
%suse_update_desktop_file -n -r wine-msi System Emulator
%suse_update_desktop_file -n -r wine-browsedrive System Emulator
%suse_update_desktop_file -n -r wine-winefile System FileManager
%suse_update_desktop_file -n -r wine-winemine Game BoardGame
# Install icons
install -d %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/
install -c -m 644 *.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/