commit b17174e4ddc49ec214d2c224ee9a05ad3baf4344
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Sun Mar 15 11:00:30 2020 +0000
Add appdata and cleanups
ltris.appdata.xml | 41 +++++++++++++++++++++++++++++++++++++++++
ltris.spec | 20 +++++++++-----------
sources | 2 +-
3 files changed, 51 insertions(+), 12 deletions(-)
---
diff --git a/ltris.appdata.xml b/ltris.appdata.xml
new file mode 100644
index 0000000..beabb33
--- /dev/null
+++ b/ltris.appdata.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2015 Ankur Sinha <ankursinha AT fedoraproject DOT org> -->
+
+<!-- HOUSEKEEPING, REMOVE THIS COMMENT WHEN THIS GOES UPSTREAM
+BugReportURL: rhbz-#
+SentUpstream: yyyy-mm-dd
+-->
+
+<application>
+ <id type="desktop">ltris.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Game of skill with falling blocks</summary>
+ <description>
+ <p>
+ LTris as a tetris clone: differently shaped blocks are falling down
+ the rectangular playing field and can be moved sideways or rotated by
+ 90 degree units with the aim of building lines without gaps which
+ then disappear (causing any block above the deleted line to fall
+ down). can watch your CPU playing while enjoying a cup of tea!
+ </p>
+ <p>
+ LTris has three game modes: In Classic you play until the stack of
+ blocks reaches the top of the playing field and no new blocks can
+ enter. In Figures the playing field is reset to a new figure each
+ level and later on tiles and lines suddenly appear. In Multiplayer up
+ to three players (either human or CPU) compete with each other
+ sending removed lines to all opponents. And in Demo you can watch
+ your CPU playing while enjoying a cup of tea!
+ </p>
+ </description>
+ <url
type="homepage">http://lgames.sourceforge.net/</url>
+ <screenshots>
+ <screenshot
type="default">http://lgames.sourceforge.net/LTris/ss0.jpg&l...
+ <screenshot
type="default">http://lgames.sourceforge.net/LTris/ss1.jpg&l...
+ <screenshot
type="default">http://lgames.sourceforge.net/LTris/ss2.jpg&l...
+ </screenshots>
+ <!-- FIXME: change this to an upstream email address for spec updates
+ <updatecontact>someone_who_cares(a)upstream_project.org</updatecontact>
+ -->
+</application>
+
diff --git a/ltris.spec b/ltris.spec
index a287129..3b01e27 100644
--- a/ltris.spec
+++ b/ltris.spec
@@ -1,13 +1,13 @@
Summary: Game of skill with falling blocks
Name: ltris
Version: 1.0.19
-Release: 8%{?dist}
+Release: 9%{?dist}
License: GPL
Group: Amusements/Games
URL:
http://lgames.sourceforge.net/
Source:
http://dl.sf.net/lgames/%{name}-%{version}.tar.gz
Patch1: ltris-1.0.19-inlines.patch
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+Source2: %{name}.appdata.xml
Requires: SDL >= 1.1.4, SDL_mixer
BuildRequires: SDL-devel, SDL_mixer-devel, desktop-file-utils, gcc
@@ -29,11 +29,11 @@ CPU(!) compete and send completed lines to each other.
%build
autoreconf -fiv
%configure --localstatedir=%{_var}/lib/games
-%{__make} %{?_smp_mflags}
+%make_build
%install
-%{__make} install DESTDIR=%{buildroot}
+%make_install
%find_lang %{name}
%{__mkdir_p} %{buildroot}%{_datadir}/applications
@@ -41,25 +41,23 @@ desktop-file-install \
--dir %{buildroot}%{_datadir}/applications \
%{name}.desktop
-
-%post
-update-desktop-database %{_datadir}/applications &>/dev/null || :
-
-%postun
-update-desktop-database %{_datadir}/applications &>/dev/null || :
+install -m 0644 -D %{SOURCE2} %{buildroot}%{_metainfodir}/%{name}.appdata.xml
%files -f %{name}.lang
-%defattr(-, root, root, 0755)
%doc AUTHORS COPYING ChangeLog README TODO
%attr(2551, root, games) %{_bindir}/ltris
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/ltris48.gif
%{_datadir}/ltris/
%config(noreplace) %attr(664, root, games) %{_localstatedir}/lib/games/ltris.hscr
+%{_metainfodir}/%{name}.appdata.xml
%changelog
+* Sun Mar 15 2020 Sérgio Basto <sergio(a)serjux.com> - 1.0.19-9
+- Add appdata and cleanups
+
* Tue Feb 04 2020 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> -
1.0.19-8
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
diff --git a/sources b/sources
index 2e5e048..283c510 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-63486b90e59699823f7093bc9ab87725 ltris-1.0.19.tar.gz
+SHA512 (ltris-1.0.19.tar.gz) =
ab43b3d8f04ab40016be5b5c414f8679bee4f5f344ef9cab52c3628d48017458b84b0fbc0bcaecdfab43853a1ef628ee1cabf3a1373ea108650d4e76015881c5