rhughes pushed to dsi (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:22:40 UTC 2015
>From f0016d9232f5a09b5e5a08991a1f910b74728ef9 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:08:09 +0000
Subject: Add an AppData file for the software center
diff --git a/dsi.spec b/dsi.spec
index 8f86fe7..700974e 100644
--- a/dsi.spec
+++ b/dsi.spec
@@ -1,6 +1,6 @@
Name: dsi
Version: 1.0.7
-Release: 8%{?dist}
+Release: 9%{?dist}
Summary: Invading aliens type game
Group: Amusements/Games
License: GPLv2+
@@ -32,6 +32,44 @@ make install DESTDIR=%{buildroot}
mv %{buildroot}%{_datadir}/applications/DSI.desktop \
%{buildroot}%{_datadir}/applications/%{name}.desktop
+# 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 Ravi Srinivasan <ravishankar.srinivasan at gmail.com> -->
+<!--
+EmailAddress: https://sourceforge.net/u/dbrasher28/profile/
+SentUpstream: 2014-09-24
+-->
+<application>
+ <id type="desktop">dsi.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>A simple 2D scrolling game where you stop aliens from landing on you</summary>
+ <description>
+ <p>
+ dsi or dspaceinvadors is a simple 2D scrolling game where you prevent
+ aliens landing on top of you.
+ </p>
+ <p>
+ It has simple controls, 5 levels, a smooth scrolling experience, sound
+ effects and customizable graphics.
+ </p>
+ </description>
+ <url type="homepage">http://sourceforge.net/projects/dspaceinvadors/</url>
+ <screenshots>
+ <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/dsi/a.png</screenshot>
+ <screenshot><!--screenshot url here--></screenshot>
+ <screenshot><!--screenshot url here--></screenshot>
+ </screenshots>
+</application>
+EOF
+
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
%clean
@@ -42,12 +80,16 @@ rm -rf %{buildroot}
%{_bindir}/DSI
%dir %{_sharedstatedir}/games/%{name}/
%{_datadir}/%{name}/
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/alien.png
%attr(664,root,games) %{_sharedstatedir}/games/%{name}/hiscore
%doc COPYING README TODO ChangeLog
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.0.7-9
+- Add an AppData file for the software center
+
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.7-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/dsi.git/commit/?h=master&id=f0016d9232f5a09b5e5a08991a1f910b74728ef9
More information about the scm-commits
mailing list