From 2f78e2a367624857dc516f8e06468dacaad0882d Mon Sep 17 00:00:00 2001 From: Martin Stransky Date: Jun 26 2007 10:16:57 +0000 Subject: added a menu entry and an icon --- diff --git a/berusky.desktop b/berusky.desktop new file mode 100644 index 0000000..07f7f81 --- /dev/null +++ b/berusky.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Version=1.0 +Encoding=UTF-8 +Name=Berusky +Comment=Rescue the bugs! +Exec=berusky +StartupNotify=false +Terminal=false +Type=Application +Icon=berusky.png +Categories=Game;LogicGame; diff --git a/berusky.png b/berusky.png new file mode 100644 index 0000000..3f968fa Binary files /dev/null and b/berusky.png differ diff --git a/berusky.spec b/berusky.spec index cbd0a4f..b1d9a4b 100644 --- a/berusky.spec +++ b/berusky.spec @@ -1,16 +1,18 @@ Summary: Berusky, 2D logic game Name: berusky Version: 1.1 -Release: 4%{?dist} +Release: 5%{?dist} License: GPL Group: Amusements/Games Source: http://www.anakreon.cz/download/berusky/tar.gz/%{name}-%{version}.tar.gz +Source1: berusky.desktop +Source2: berusky.png Patch: berusky-1.1-build.patch URL: http://www.anakreon.cz/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: berusky-data Requires: SDL -BuildRequires: SDL-devel +BuildRequires: SDL-devel desktop-file-utils %description @@ -44,15 +46,38 @@ popd rm -rf %{buildroot}/%{_datadir}/%{name} +# Install icon and desktop file +mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps +cp %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps + +desktop-file-install --vendor fedora --dir $RPM_BUILD_ROOT%{_datadir}/applications --add-category X-Fedora %{SOURCE1} + %clean rm -rf %{buildroot} +%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) %doc %{_docdir}/%{name}-%{version}/* %{_bindir}/berusky +%{_datadir}/applications/fedora-berusky.desktop +%{_datadir}/icons/hicolor/32x32/apps/berusky.png %changelog +* Thu Jun 26 2007 Martin Stransky 1.1-5 +- added a menu entry and an icon + * Wed May 23 2007 Martin Stransky 1.1-4 - removed spec files from binary rpm package