rhughes pushed to crrcsim (master). "Add an AppData file for the software center"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:21:32 UTC 2015


>From 08e3d3a508c3a8ccdb8365caa8f17dd0f95e7406 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:07:31 +0000
Subject: Add an AppData file for the software center


diff --git a/crrcsim.spec b/crrcsim.spec
index bf78c0c..9952066 100644
--- a/crrcsim.spec
+++ b/crrcsim.spec
@@ -1,6 +1,6 @@
 Name:          crrcsim
 Version:       0.9.12
-Release:       13%{?dist}
+Release:       14%{?dist}
 Group:         Amusements/Games
 Summary:       Model-Airplane Flight Simulation Program
 License:       GPLv2
@@ -124,6 +124,44 @@ for f in AUTHORS COPYING HISTORY ; do
     cp -p $f %{buildroot}%{_docdir}/%{name}/${f}
 done
 
+# 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/CRRCsim.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Ryan Lerch <rlerch at redhat.com> -->
+<!--
+BugReportURL: https://sourceforge.net/p/crrcsim/feature-requests/37/
+SentUpstream: 2014-07-11
+-->
+<application>
+  <id type="desktop">CRRCsim.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Charles River RC Flight Simulator</name>
+  <summary>Flight simulator for model remote controlled aircraft</summary>
+  <description>
+    <p>
+      The Charles River RC Flight Simulator (CRRCSim) is a flight simulator to
+      test fly model aircraft.
+      CRRCSim comes with over 15 different types of model gliders and planes, and
+      lets you fly in 3 different locations.
+    </p>
+  </description>
+  <url type="homepage">https://sourceforge.net/projects/crrcsim/</url>
+  <screenshots>
+    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/CRRCsim/a.png</screenshot>
+    <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/CRRCsim/b.png</screenshot>
+  </screenshots>
+  <!-- FIXME: change this to an upstream email address for spec updates
+  <updatecontact>someone_who_cares at upstream_project.org</updatecontact>
+   -->
+</application>
+EOF
 
 %post
 /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@@ -142,6 +180,7 @@ fi
 
 %files -f %{name}.lang
 %{_bindir}/crrcsim
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/CRRCsim.desktop
 %{_datadir}/%{name}/
 %{_mandir}/man1/%{name}.1*
@@ -157,6 +196,9 @@ fi
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.9.12-14
+- Add an AppData file for the software center
+
 * Fri Mar 06 2015 Damian Wrobel <dwrobel at ertelnet.rybnik.pl> - 0.9.12-13
 - Rebuild for libCGAL.so.11.
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/crrcsim.git/commit/?h=master&id=08e3d3a508c3a8ccdb8365caa8f17dd0f95e7406


More information about the scm-commits mailing list