commit a858ac233c5b9c01f4aac877f9807f24c112680f
Author: Andrea Musuruane <musuruan(a)gmail.com>
Date: Fri Mar 18 16:17:37 2022 +0100
Add AppData file (BZ #6196)
Install man pange
Spec file clean up
cannonball-0.3-fixes.patch | 90 ----------------------------------------------
cannonball.appdata.xml | 34 ++++++++++++++++++
cannonball.spec | 48 ++++++++++++++++---------
3 files changed, 66 insertions(+), 106 deletions(-)
---
diff --git a/cannonball.appdata.xml b/cannonball.appdata.xml
new file mode 100644
index 0000000..ff4a625
--- /dev/null
+++ b/cannonball.appdata.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop">
+ <id>cannonball.desktop</id>
+ <name>Cannonball</name>
+ <project_license>MAME</project_license>
+ <metadata_license>CC-BY-3.0</metadata_license>
+ <summary>An Enhanced OutRun Engine</summary>
+ <description>
+ <p>
+ Cannonball is a program which allows you to play an enhanced version of
+ Yu Suzuki's seminal arcade racer, OutRun, on a variety of systems:
+ <ul>
+ <li>60 fps gameplay (smoother than the original game)</li>
+ <li>True widescreen mode (extend the play area by 25%)</li>
+ <li>High Resolution mode (improves sprite scaling)</li>
+ <li>Time Trial Mode</li>
+ <li>Cheats</li>
+ <li>Customisable Music</li>
+ <li>High Score Saving</li>
+ <li>Western, Japanese & prototype track support</li>
+ <li>Analog & Digital controllers supported</li>
+ <li>Force Feedback / Haptic support (Windows only)</li>
+ <li>Fixes bugs present in the original game</li>
+ </ul>
+ </p>
+ </description>
+ <url
type="homepage">https://github.com/djyt/cannonball/wiki</...
+ <screenshots>
+ <screenshot type="default">
+
<
image>https://camo.githubusercontent.com/bdb8e932ae185eebe58e1a567d8c8...
+ </screenshot>
+ </screenshots>
+</component>
+
diff --git a/cannonball.spec b/cannonball.spec
index e6055a9..c04cccd 100644
--- a/cannonball.spec
+++ b/cannonball.spec
@@ -1,9 +1,6 @@
-# force out-of-tree build for spec compatibility with older releases
-%undefine __cmake_in_source_build
-
Name: cannonball
Version: 0.34
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: An Enhanced OutRun Engine
License: MAME
@@ -13,12 +10,14 @@ Source0:
https://github.com/djyt/%{name}/archive/v%{version}/%{name}-%{ve
#
https://aur.archlinux.org/packages/cannonball/
Source1: %{name}.sh
Source2: %{name}_README.Fedora
-Source4: %{name}.desktop
+Source3: %{name}.desktop
+Source4: %{name}.appdata.xml
BuildRequires: SDL2-devel
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: boost-devel
+BuildRequires: libappstream-glib
BuildRequires: desktop-file-utils
Requires: hicolor-icon-theme
@@ -43,7 +42,7 @@ Yu Suzuki's seminal arcade racer, OutRun, on a variety of systems:
%build
-%cmake ./cmake \
+%cmake -S ./cmake \
-DTARGET=linux.cmake -DOpenGL_GL_PREFERENCE=GLVND \
-DCMAKE_SKIP_BUILD_RPATH=TRUE
%cmake_build
@@ -56,9 +55,19 @@ install -p -m 755 %{SOURCE1} %{buildroot}%{_bindir}/%{name}
mkdir -p %{buildroot}%{_libexecdir}/%{name}
install -p -m 755 %{_vpath_builddir}/%{name} %{buildroot}%{_libexecdir}/%{name}
+# Install widescreen tilemap data
+mkdir -p %{buildroot}%{_datadir}/%{name}/res
+install -m644 res/*.bin %{buildroot}%{_datadir}/%{name}/res
+install -m644 res/gamecontrollerdb.txt %{buildroot}%{_datadir}/%{name}/res
+
# Install config
mkdir -p %{buildroot}%{_datadir}/%{name}
-install -p -m 644 %{_vpath_builddir}/config.xml
%{buildroot}%{_datadir}/%{name}/config.xml
+install -p -m 644 %{_vpath_builddir}/config.xml \
+ %{buildroot}%{_datadir}/%{name}/config.xml
+
+# Install man page
+mkdir -p %{buildroot}%{_mandir}/man6/
+install -p -m 644 docs/%{name}.6 %{buildroot}%{_mandir}/man6/
# Install Fedora README
install -p -m 644 %{SOURCE2} README.Fedora
@@ -67,18 +76,18 @@ install -p -m 644 %{SOURCE2} README.Fedora
mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install \
--dir %{buildroot}%{_datadir}/applications \
- %{SOURCE4}
+ %{SOURCE3}
# Install icon
-install -Dm644 res/icon.png %{buildroot}/usr/share/icons/hicolor/256x256/apps/%name.png
+mkdir -p %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/
+install -p -m 644 res/icon.png \
+ %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
-# widescreen tilemap data
-install -d %{buildroot}/usr/share/%{name}/res
-install -m644 res/*.bin %{buildroot}/usr/share/%name/res
-install -m644 res/gamecontrollerdb.txt %{buildroot}/usr/share/%name/res
-
-# configuration file
-install -Dm644 %{_vpath_builddir}/config.xml %{buildroot}/usr/share/%name/config.xml
+# Install AppData file
+mkdir -p %{buildroot}%{_metainfodir}
+install -p -m 644 %{SOURCE4} %{buildroot}%{_metainfodir}
+appstream-util validate-relax --nonet \
+ %{buildroot}%{_metainfodir}/%{name}.appdata.xml
%files
@@ -87,12 +96,19 @@ install -Dm644 %{_vpath_builddir}/config.xml
%{buildroot}/usr/share/%name/config
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
+%{_mandir}/man6/%{name}.6*
+%{_metainfodir}/%{name}.appdata.xml
%license docs/license.txt
%doc roms/roms.txt
%doc README.Fedora
%changelog
+* Thu Mar 17 2022 Andrea Musuruane <musuruan(a)gmail.com> - 0.34-3
+- Add AppData file (BZ #6196)
+- Install man pange
+- Spec file clean up
+
* Thu Feb 10 2022 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> - 0.34-2
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild