commit 756ce0c3ccd2602317b5c47360931cc9a41ff7e8
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Thu Sep 17 10:21:42 2020 +0100
Fix icon and desktop file
icon_fix.patch | 21 +++++++++++++++++++++
ltris.spec | 10 ++++++++--
2 files changed, 29 insertions(+), 2 deletions(-)
---
diff --git a/icon_fix.patch b/icon_fix.patch
new file mode 100644
index 0000000..ae867c0
--- /dev/null
+++ b/icon_fix.patch
@@ -0,0 +1,21 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -7,7 +7,7 @@
+ desktopdir = $(datadir)/applications
+ desktop_DATA = ltris.desktop
+ icondir = $(datadir)/icons
+-icon_DATA = ltris48.gif
++icon_DATA = ltris.png
+
+ AUTOMAKE_OPTIONS = foreign
+
+@@ -15,7 +15,7 @@
+ # the right way to handle it? At least it works... as long as $datadir
+ # does not contain plus signs. :-)
+ ltris.desktop:
+- @sed -e "s+Icon=+Icon=$(datadir)/icons/ltris48.gif+" \
++ @sed -e "s+Icon=+Icon=ltris+" \
+ < ltris.desktop.in > ltris.desktop
+
+ ACLOCAL_AMFLAGS = -I m4
+
diff --git a/ltris.spec b/ltris.spec
index 02718da..8a19a8a 100644
--- a/ltris.spec
+++ b/ltris.spec
@@ -1,7 +1,7 @@
Summary: Game of skill with falling blocks
Name: ltris
Version: 1.2.1
-Release: 2%{?dist}
+Release: 3%{?dist}
License: GPLv2+
URL:
http://lgames.sourceforge.net/
@@ -9,9 +9,11 @@ Source:
http://dl.sf.net/lgames/%{name}-%{version}.tar.gz
Source2: %{name}.appdata.xml
Patch0: fix_sdl_test.patch
+Patch1: icon_fix.patch
BuildRequires: desktop-file-utils
BuildRequires: gcc
+BuildRequires: ImageMagick
BuildRequires: libappstream-glib
BuildRequires: SDL-devel
BuildRequires: SDL_mixer-devel
@@ -31,6 +33,7 @@ CPU(!) compete and send completed lines to each other.
%prep
%autosetup -p1
+convert ltris48.gif ltris.png
%build
@@ -58,13 +61,16 @@ appstream-util validate --nonet
%{buildroot}%{_metainfodir}/%{name}.appdata.xml
%license COPYING
%attr(2551, root, games) %{_bindir}/ltris
%{_datadir}/applications/%{name}.desktop
-%{_datadir}/icons/ltris48.gif
+%{_datadir}/icons/ltris.png
%{_datadir}/ltris/
%config(noreplace) %attr(664, root, games) %{_localstatedir}/lib/games/ltris.hscr
%{_metainfodir}/%{name}.appdata.xml
%changelog
+* Thu Sep 17 2020 Leigh Scott <leigh123linux(a)gmail.com> - 1.2.1-3
+- Fix icon and desktop file
+
* Thu Sep 17 2020 Leigh Scott <leigh123linux(a)gmail.com> - 1.2.1-2
- Fix appdata