rpms/liquidwar/devel liquidwar.spec,1.3,1.4

Hans de Goede (jwrdegoede) fedora-extras-commits at redhat.com
Sat Mar 10 11:00:09 UTC 2007


Author: jwrdegoede

Update of /cvs/extras/rpms/liquidwar/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15802

Modified Files:
	liquidwar.spec 
Log Message:
* Sat Mar 10 2007 Hans de Goede <j.w.r.degoede at hhs.nl> 5.6.3-3
- Fixup .desktop file categories for games-menus usage



Index: liquidwar.spec
===================================================================
RCS file: /cvs/extras/rpms/liquidwar/devel/liquidwar.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- liquidwar.spec	24 Nov 2006 09:56:15 -0000	1.3
+++ liquidwar.spec	10 Mar 2007 10:59:36 -0000	1.4
@@ -1,6 +1,6 @@
 Name:           liquidwar
 Version:        5.6.3
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Multiplayer wargame with liquid armies
 Group:          Amusements/Games
 License:        GPL
@@ -11,6 +11,7 @@
 Source3:        liquidwar.logrotate 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  allegro-devel allegro-tools tetex-latex python texinfo
+Requires:       hicolor-icon-theme
 Requires(post): /sbin/install-info
 Requires(preun): /sbin/install-info
 
@@ -85,6 +86,9 @@
 # below is the desktop file and icon stuff.
 desktop-file-install --delete-original --vendor fedora \
   --dir $RPM_BUILD_ROOT%{_datadir}/applications        \
+  --add-category StrategyGame                          \
+  --remove-category Application                        \
+  --remove-category ArcadeGame                         \
   $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
 mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/{32x32,48x48}/apps
 install -p -m 644 misc/%{name}_32x32.xpm \
@@ -107,9 +111,7 @@
 %post
 /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
 touch --no-create %{_datadir}/icons/hicolor || :
-if [ -x %{_bindir}/gtk-update-icon-cache ]; then
-   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
-fi
+%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
 
 %preun
 if [ $1 = 0 ]; then
@@ -118,9 +120,7 @@
 
 %postun
 touch --no-create %{_datadir}/icons/hicolor || :
-if [ -x %{_bindir}/gtk-update-icon-cache ]; then
-   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
-fi
+%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
 
 
 %pre server
@@ -171,6 +171,9 @@
 
 
 %changelog
+* Sat Mar 10 2007 Hans de Goede <j.w.r.degoede at hhs.nl> 5.6.3-3
+- Fixup .desktop file categories for games-menus usage
+
 * Thu Nov 23 2006 Wart <wart at kobold.org> 5.6.3-2
 - Added init.d startup and logrotate scripts for the game server
 - Put the game server in its own subpackage




More information about the fedora-extras-commits mailing list