bellet pushed to FlightGear (f22). "Add an AppData file for the software center"

notifications at fedoraproject.org notifications at fedoraproject.org
Sun Apr 19 14:28:09 UTC 2015


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


diff --git a/FlightGear.spec b/FlightGear.spec
index 89b893f..2a0770e 100644
--- a/FlightGear.spec
+++ b/FlightGear.spec
@@ -1,7 +1,7 @@
 Name:           FlightGear
 Summary:        The FlightGear Flight Simulator
 Version:        3.4.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 License:        GPLv2+
 Group:          Amusements/Games
 Source0:        http://mirrors.ibiblio.org/flightgear/ftp/Source/flightgear-%{version}.tar.bz2
@@ -100,6 +100,56 @@ install -m 0644 %{SOURCE5} \
 install -m 0644 %{SOURCE6} \
         $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
 
+# 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 Richard Hughes <richard at hughsie.com> -->
+<!--
+BugReportURL: https://sourceforge.net/p/fgrun/support-requests/9/
+SentUpstream: 2014-09-17
+-->
+<application>
+  <id type="desktop">FlightGear.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <description>
+    <p>
+      FlightGear allows you to control over 400 aircraft, small and large in a
+      range of situations, types of weather, seasons, day and night cycle.
+      This includes single-engine propeller aircraft, large 4-engine passenger
+      liners, experimental aircraft, classic and vintage aircraft and
+      helicopters.
+    </p>
+    <p>
+      The FlightGear landscape covers the entire world and is downloaded as you
+      fly.
+      Visit any of the 20,000 airports with an accurate representation of
+      airport buildings on many of the larger, international airports.
+    </p>
+    <p>
+      Most popular flight control hardware, such as yokes and sticks are
+      supported.
+      Multiple monitor setup and multiplayer is also featured.
+    </p>
+  </description>
+  <url type="homepage">http://www.flightgear.org/</url>
+  <screenshots>
+    <screenshot type="default">http://www.flightgear.org/wp-content/gallery/gallery-v2-10/thumbs/thumbs_fgfs-screen-166.jpg</screenshot>
+    <screenshot>http://www.flightgear.org/wp-content/gallery/gallery-v2-10/thumbs/thumbs_fgfs-screen-140.jpg</screenshot>
+    <screenshot>http://www.flightgear.org/wp-content/gallery/gallery-v2-10/thumbs/thumbs_fgfs-screen-106.jpg</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
 update-desktop-database &> /dev/null ||:
 touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@@ -122,10 +172,14 @@ rm -rf $RPM_BUILD_ROOT
 %doc AUTHORS COPYING COPYING.icons NEWS README Thanks docs-mini/*
 %{_bindir}/*
 %{_mandir}/*/*
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/*.desktop
 %{_datadir}/icons/hicolor/*/apps/*
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 3.4.0-2
+- Add an AppData file for the software center
+
 * Wed Mar 11 2015 Fabrice Bellet <fabrice at bellet.info> - 3.4.0-1
 - new upstream release
 - enable Qt Launcher
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/FlightGear.git/commit/?h=f22&id=872e26dbd82a53d6d076ff7eb29c72c5ea784fff


More information about the scm-commits mailing list