[scorched3d] Use a larger icon (48x48).
Bruno Wolff III
bruno at fedoraproject.org
Tue Jun 21 13:02:27 UTC 2011
commit 443388e1e67ee57fc3a5406334970d362692047a
Author: Bruno Wolff III <bruno at wolff.to>
Date: Tue Jun 21 08:01:31 2011 -0500
Use a larger icon (48x48).
Extract a 48x48 png icon file and use it instead of the 32x32 image.
scorched3d.spec | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/scorched3d.spec b/scorched3d.spec
index 5aeec90..e03c174 100644
--- a/scorched3d.spec
+++ b/scorched3d.spec
@@ -1,6 +1,6 @@
Name: scorched3d
Version: 43.2a
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Game based loosely on the classic DOS game Scorched Earth
Group: Amusements/Games
License: GPLv2+
@@ -65,6 +65,9 @@ export OPENAL_CONFIG=$PWD/openal-config
--with-docdir=%{_docdir}/%{name}-%{version}
make %{?_smp_mflags}
+# Note that tank2.ico has 48x48 and 32x32 icons embedded in it.
+# The 48x48 icon ends up in tank2-0.png
+convert data/images/tank2.ico tank2.png
%install
rm -rf $RPM_BUILD_ROOT
@@ -84,9 +87,9 @@ mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
desktop-file-install --vendor fedora \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
%{SOURCE1}
-mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
-install -p -m 644 data/images/tank2.png \
- $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
+install -p -m 644 tank2-0.png \
+ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%clean
@@ -112,10 +115,13 @@ fi
%{_bindir}/%{name}*
%{_datadir}/%{name}
%{_datadir}/applications/fedora-%{name}.desktop
-%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
+%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%changelog
+* Tue Jun 21 2011 Bruno Wolff III <bruno at wolff.to> - 43.2a-2
+- Extract a 48x48 png to use as the icon
+
* Mon Jun 20 2011 Bruno Wolff III <bruno at wolff.to> - 43.2a-1
- Update to upstream 43.2a
- Release anouncement for 43.2a http://www.scorched3d.co.uk/phpBB3/viewtopic.php?t=6340
More information about the scm-commits
mailing list