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

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


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


diff --git a/gtg.spec b/gtg.spec
index acef8fa..3f6ef4f 100644
--- a/gtg.spec
+++ b/gtg.spec
@@ -3,7 +3,7 @@
 
 Name:           gtg
 Version:        0.3.1
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Personal organizer for the GNOME desktop
 
 Group:          Applications/Productivity
@@ -50,6 +50,46 @@ rm -rf $RPM_BUILD_ROOT/%{python_sitelib}/GTG/plugins/geolocalized_tasks
 rm -rf $RPM_BUILD_ROOT/%{python_sitelib}/GTG/plugins/geolocalized-tasks.gtg-plugin
 desktop-file-validate $RPM_BUILD_ROOT/%{_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 Richard Hughes <richard at hughsie.com> -->
+<!--
+BugReportURL: https://bugs.launchpad.net/gtg/+bug/1266100
+SentUpstream: 2014-09-18
+-->
+<application>
+  <id type="desktop">gtg.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <description>
+    <p>
+      Getting Things Gnome is a personal tasks and ToDo list organizer for inspired by
+      the Getting Things Done (GTD) methodology.
+    </p>
+    <p>
+      GTG is intended to help you track everything you need to do and need to know,
+      from small tasks to large projects.
+    </p>
+    <!-- FIXME: Probably needs another paragraph certainly some more text -->
+  </description>
+  <url type="homepage">https://wiki.gnome.org/gtg/</url>
+  <screenshots>
+    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gtg/a.png</screenshot>
+    <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gtg/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
+
 %find_lang %{name} --with-gnome
 
 
@@ -77,6 +117,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %{_bindir}/gtcli
 %{_bindir}/gtg_new_task
 %{_datadir}/dbus-1/services/org.gnome.GTG.service
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/%{name}
 %{_datadir}/icons/hicolor/*/apps/%{name}.*
@@ -95,6 +136,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.3.1-5
+- Add an AppData file for the software center
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.3.1-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/gtg.git/commit/?h=master&id=71597a7b0eb21ae58218621e58a1f53ad440199a


More information about the scm-commits mailing list