rpms/berusky/devel berusky.desktop, NONE, 1.1 berusky.png, NONE, 1.1 berusky.spec, 1.1, 1.2
Martin Stransky (stransky)
fedora-extras-commits at redhat.com
Tue Jun 26 10:17:33 UTC 2007
Author: stransky
Update of /cvs/pkgs/rpms/berusky/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17758
Modified Files:
berusky.spec
Added Files:
berusky.desktop berusky.png
Log Message:
added a menu entry and an icon
--- NEW FILE berusky.desktop ---
[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;
Index: berusky.spec
===================================================================
RCS file: /cvs/pkgs/rpms/berusky/devel/berusky.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- berusky.spec 25 May 2007 12:42:52 -0000 1.1
+++ berusky.spec 26 Jun 2007 10:16:57 -0000 1.2
@@ -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 @@
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 <stransky at redhat.com> 1.1-5
+- added a menu entry and an icon
+
* Wed May 23 2007 Martin Stransky <stransky at redhat.com> 1.1-4
- removed spec files from binary rpm package
More information about the scm-commits
mailing list