Author: blino
Date: Sat Dec  2 16:15:19 2006
New Revision: 90064

Modified:
   packages/cooker/glest/current/SPECS/glest.spec

Log:
add XDG menu

Modified: packages/cooker/glest/current/SPECS/glest.spec
==============================================================================
--- packages/cooker/glest/current/SPECS/glest.spec      (original)
+++ packages/cooker/glest/current/SPECS/glest.spec      Sat Dec  2 16:15:19 2006
@@ -1,6 +1,6 @@
 %define        name    glest
 %define        version 2.0.0
-%define        release %mkrel 1
+%define        release %mkrel 2
 %define        Summary A free 3d real time strategy game
 
 Name:          %{name}
@@ -120,6 +120,19 @@
                longtitle="%{Summary}"
 EOF
 
+install -d $RPM_BUILD_ROOT%{_datadir}/applications
+cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}.desktop << EOF
+[Desktop Entry]
+Encoding=UTF-8
+Name=Glest
+Comment=%{Summary}
+Exec=soundwrapper %_gamesbindir/%{name}
+Icon=%{name}
+Terminal=false
+Type=Application
+Categories=X-MandrivaLinux-MoreApplications-Games-Strategy;Game;StrategyGame;
+EOF
+
 install -m644 %{SOURCE11} -D $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png
 install -m644 %{SOURCE12} -D $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png
 install -m644 %{SOURCE13} -D $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png
@@ -144,3 +157,4 @@
 %{_gamesdatadir}/%{name}/
 %defattr(755,root,root,755)
 %{_gamesbindir}/*
+%{_datadir}/applications/mandriva-%{name}.desktop

Reply via email to