[cave9] Install the application icon in a standard location

Richard Hughes rhughes at fedoraproject.org
Wed Jul 16 16:37:23 UTC 2014


commit 34a621531381115cc57d8eedf81c9f1f9f195e25
Author: Richard Hughes <richard at hughsie.com>
Date:   Wed Jul 16 17:37:43 2014 +0100

    Install the application icon in a standard location

 cave9.desktop |    2 +-
 cave9.spec    |   10 +++++++++-
 2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/cave9.desktop b/cave9.desktop
index 0f9de99..d00fd68 100644
--- a/cave9.desktop
+++ b/cave9.desktop
@@ -4,7 +4,7 @@ Name=cave9
 GenericName=3d cave game.
 Comment=Sfcave goes 3d.
 Exec=cave9
-Icon=/usr/share/cave9/icon.png
+Icon=cave9.png
 Terminal=false
 Type=Application
 Categories=Game;ArcadeGame;
diff --git a/cave9.spec b/cave9.spec
index 7aa92d9..78f7814 100644
--- a/cave9.spec
+++ b/cave9.spec
@@ -2,7 +2,7 @@
 
 Name:           cave9
 Version:        0.4
-Release:        8%{?dist}
+Release:        9%{?dist}
 Summary:        3d game of cave exploration
 
 Group:          Amusements/Games
@@ -49,6 +49,9 @@ mkdir -p %{buildroot}/usr/bin %{buildroot}/usr/share/cave9
 install -m 755 -p cave9 $RPM_BUILD_ROOT/usr/bin 
 cp -p data/wall.jpg data/icon.png data/thrust.wav data/crash.wav data/hit.wav $RPM_BUILD_ROOT/usr/share/cave9
 
+mkdir -p %{buildroot}/usr/share/pixmaps
+cp -p data/icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/cave9.png
+
 install -m 0755 -d %{buildroot}%{_fontdir}
 install -m 0644 -p data/*.ttf %{buildroot}%{_fontdir}/mutante.ttf
 
@@ -69,9 +72,14 @@ desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications  %{SOURCE2}
 %doc AUTHORS.txt README.txt COPYING.txt data_README.txt
 %{_bindir}/cave9
 %{_datadir}/cave9
+%{_datadir}/pixmaps/cave9.png
 %{_datadir}/applications/cave9.desktop
 
 %changelog
+* Wed Jul 16 2014 Richard Hughes <richard at hughsie.com> - 0.4-9
+- Install the application icon in a standard location to fix display in
+  gnome-software and Apper.
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.4-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list