commit 83754d68bf8932f510bf8d16cc0f52f30cd51782
Author: Andrea Musuruane <musuruan(a)gmail.com>
Date: Sun Dec 15 09:44:19 2019 +0100
Added AppData file
roadfighter.appdata.xml | 32 ++++++++++++++++++++++++++++++++
roadfighter.spec | 17 ++++++++++++++---
2 files changed, 46 insertions(+), 3 deletions(-)
---
diff --git a/roadfighter.appdata.xml b/roadfighter.appdata.xml
new file mode 100644
index 0000000..b23a9a7
--- /dev/null
+++ b/roadfighter.appdata.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop">
+ <id>roadfighter.desktop</id>
+ <name>Road Fighter</name>
+ <summary>Konami's Road Fighter remake</summary>
+ <developer_name>Brain Games</developer_name>
+ <description>
+ <p>
+ This is a remake of a car-based arcade game developed by Konami and
+ released in 1984. The goal is to reach the finish line within the stages
+ without running out of time, hitting other cars or running out of fuel.
+ </p>
+ </description>
+ <metadata_license>CC-BY-3.0</metadata_license>
+ <project_license>Distributable</project_license>
+ <url
type="homepage">https://roadfighter.jorito.net/</url>
+ <screenshots>
+ <screenshot type="default">
+ <
image>https://roadfighter.jorito.net/pics/screenshot1.jpg</image>
+ </screenshot>
+ <screenshot>
+ <
image>https://roadfighter.jorito.net/pics/screenshot2.jpg</image>
+ </screenshot>
+ <screenshot>
+ <
image>https://roadfighter.jorito.net/pics/screenshot3.jpg</image>
+ </screenshot>
+ <screenshot>
+ <
image>https://roadfighter.jorito.net/pics/screenshot4.jpg</image>
+ </screenshot>
+ </screenshots>
+</component>
+
diff --git a/roadfighter.spec b/roadfighter.spec
index 173e3c4..695b570 100644
--- a/roadfighter.spec
+++ b/roadfighter.spec
@@ -1,6 +1,6 @@
Name: roadfighter
Version: 1.0.1269
-Release: 18%{?dist}
+Release: 19%{?dist}
Summary: Konami's Road Fighter remake
#
http://www.braingames.getput.com/forum/forum_posts.asp?TID=678&PN=1
@@ -8,6 +8,7 @@ License: Distributable
URL:
http://roadfighter.jorito.net/
Source0:
http://braingames.jorito.net/roadfighter/downloads/%{name}.src_%{version}...
Source1: %{name}.sh
+Source2: %{name}.appdata.xml
Patch0: %{name}-1.0.1269-Makefile.patch
Patch1: %{name}-1.0.1269-fix-string-format-bug.patch
Patch2: %{name}-1.0.1269-build-fix.patch
@@ -18,7 +19,8 @@ BuildRequires: SDL_mixer-devel
BuildRequires: SDL_sound-devel
BuildRequires: SDL_ttf-devel
BuildRequires: ImageMagick
-BuildRequires: desktop-file-utils
+BuildRequires: desktop-file-utils
+BuildRequires: libappstream-glib
Requires: hicolor-icon-theme
@@ -41,7 +43,7 @@ mv readme.txt.utf8 readme.txt
%build
-%set_build_flags macro
+%set_build_flags
%make_build
@@ -73,6 +75,11 @@ desktop-file-install \
--remove-category=Application \
build/linux/%{name}.desktop
+# Install AppData file
+install -d %{buildroot}%{_metainfodir}
+install -p -m 644 %{SOURCE2} %{buildroot}%{_metainfodir}
+appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.appdata.xml
+
%files
%{_bindir}/%{name}
@@ -80,10 +87,14 @@ desktop-file-install \
%{_libexecdir}/%{name}
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop
+%{_metainfodir}/%{name}.appdata.xml
%doc readme.txt
%changelog
+* Sat Dec 14 2019 Andrea Musuruane <musuruan(a)gmail.com> - 1.0.1269-19
+- Added AppData file
+
* Sat Dec 14 2019 Andrea Musuruane <musuruan(a)gmail.com> - 1.0.1269-18
- Fixed icon directory