rhughes pushed to hatari (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:45:11 UTC 2015
>From 2f1f07db96a625cf9052400c8a558793721fb27b Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:34:56 +0000
Subject: Add an AppData file for the software center
diff --git a/hatari.spec b/hatari.spec
index 0a8e7c8..a7fa4d5 100644
--- a/hatari.spec
+++ b/hatari.spec
@@ -3,7 +3,7 @@
Summary: An Atari ST/STE/TT/Falcon emulator suitable for playing games
Name: hatari
Version: 1.8.0
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv2+
URL: http://hatari.tuxfamily.org/
Source0: http://download.tuxfamily.org/%{name}/%{version}/%{name}-%{version}.tar.bz2
@@ -118,6 +118,39 @@ desktop-file-install \
# Install license among docs
install -p -m 644 gpl.txt %{buildroot}%{_pkgdocdir}
+# Register as an application to be visible in the software center
+#
+# NOTE: It would be *awesome* if this file was maintained by the upstream
+# project, translated and installed into the right place during `make install`.
+#
+# See http://www.freedesktop.org/software/appstream/docs/ for more details.
+#
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Ryan Lerch <rlerch at redhat.com> -->
+<!--
+EmailAddress: hatari-devel at lists.tuxfamily.org
+SentUpstream: 2014-09-24
+-->
+<application>
+ <id type="desktop">hatari.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Atari emulator</summary>
+ <description>
+ <p>
+ Hatari is an emulator that emulates Atari ST, Atari STE, Atari TT and Atari Falcon
+ devices.
+ It has the ability to emulate the joystick with input from either the host's
+ keyboard or joystick.
+ </p>
+ </description>
+ <url type="homepage">http://hatari.tuxfamily.org/</url>
+ <screenshots>
+ <screenshot type="default">http://hatari.tuxfamily.org/screens/features/deskhigh.png</screenshot>
+ </screenshots>
+</application>
+EOF
%post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@@ -169,6 +202,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%{_datadir}/%{name}/hconsole
%{_mandir}/man1/hatariui.1*
%{_mandir}/man1/hconsole.1*
+%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/hatariui.desktop
%{_datadir}/icons/hicolor/32x32/apps/hatari-icon.png
%doc python-ui/{README,release-notes.txt,TODO}
@@ -179,6 +213,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.8.0-2
+- Add an AppData file for the software center
+
* Wed Sep 24 2014 Andrea Musuruane <musuruan at gmail.com> 1.8.0-1
- Updated to upstream 1.8.0
- Dropped cleaning at the beginning of %%install
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/hatari.git/commit/?h=master&id=2f1f07db96a625cf9052400c8a558793721fb27b
More information about the scm-commits
mailing list