From 92181da1f23d03758b002f34271eb46ae18855a7 Mon Sep 17 00:00:00 2001 From: Michael Thomas Date: Mar 13 2006 19:45:45 +0000 Subject: Added icon for .desktop file. --- diff --git a/rogue.desktop b/rogue.desktop index a49ee60..6b4f6fb 100644 --- a/rogue.desktop +++ b/rogue.desktop @@ -4,7 +4,7 @@ Name=Rogue GenericName=Rogue Comment=The original curses-based adventure game Exec=rogue -Icon= +Icon=rogue.png Terminal=true Type=Application Categories=Application;Game; diff --git a/rogue.png b/rogue.png new file mode 100644 index 0000000..d2a64df Binary files /dev/null and b/rogue.png differ diff --git a/rogue.spec b/rogue.spec index 4861506..2e82635 100644 --- a/rogue.spec +++ b/rogue.spec @@ -1,6 +1,6 @@ Name: rogue Version: 5.4.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: The original graphical adventure game Group: Amusements/Games @@ -8,6 +8,7 @@ License: BSD URL: http://roguelike.sourceforge.net/ Source0: http://dl.sourceforge.net/sourceforge/roguelike/rogue5.4.2-src.tar.gz Source1: rogue.desktop +Source2: rogue.png Patch0: rogue-rpmopts.patch Patch1: rogue-includes.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -43,23 +44,41 @@ desktop-file-install --vendor fedora \ --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \ --add-category X-Fedora \ %{SOURCE1} +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/32x32/apps/ +install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/32x32/apps/ %clean rm -rf $RPM_BUILD_ROOT +%post +touch --no-create %{_datadir}/icons/hicolor || : +if [ -x %{_bindir}/gtk-update-icon-cache ]; then + %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +fi + +%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 + %files %defattr(-,root,root,-) %attr(2755,games,games) %{_bindir}/rogue %{_mandir}/man6/rogue.6.gz %{_datadir}/applications/fedora-%{name}.desktop +%{_datadir}/icons/hicolor/32x32/apps/rogue.png %dir %attr(0775,games,games) %{_var}/games/roguelike %doc LICENSE.TXT rogue54.doc rogue54.html readme54.html %changelog +* Mon Mar 13 2006 Wart 5.4.2-3 +- Added icon for .desktop file. + * Sun Mar 12 2006 Wart 5.4.2-2 - Added missing BR: ncurses-devel, desktop-file-utils