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

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


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


diff --git a/planner.spec b/planner.spec
index cabce30..693143d 100644
--- a/planner.spec
+++ b/planner.spec
@@ -1,7 +1,7 @@
 Summary:   A graphical project management tool
 Name:      planner
 Version:   0.14.6
-Release:   18%{?dist}
+Release:   19%{?dist}
 License:   GPLv2+
 Group:     Applications/Productivity
 URL:       http://live.gnome.org/Planner
@@ -99,6 +99,46 @@ rm -f $RPM_BUILD_ROOT/%{_datadir}/doc/%{name}/*.planner
 #rhbz#1053553 wrong glibc locale name for sr-Latn
 mv $RPM_BUILD_ROOT/%{_datadir}/locale/sr at Latn $RPM_BUILD_ROOT/%{_datadir}/locale/sr at latin
 
+# 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://bugzilla.gnome.org/show_bug.cgi?id=736862
+SentUpstream: 2014-09-18
+-->
+<application>
+  <id type="desktop">planner.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Planner</name>
+  <summary>An easy-to-use project management application</summary>
+  <description>
+    <p>
+      Planner is an easy-to-use no-nonsense cross-platform project management application.
+    </p>
+    <p>
+      Either XML files or a postgresql database can be used to store data.
+      Projects can also be printed to PDF or exported to HTML for easy viewing from
+      any web browser.
+    </p>
+  </description>
+  <url type="homepage">https://wiki.gnome.org/Planner/</url>
+  <screenshots>
+    <screenshot type="default">https://wiki.gnome.org/Planner/Screenshots?action=AttachFile&amp;do=get&amp;target=gantt.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
 
 %post
@@ -140,6 +180,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/icons/hicolor/48x48/mimetypes/*.png
 %{_datadir}/mime/packages/*
 %{_datadir}/pixmaps/*
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/*
 %{_mandir}/man1/planner.1.gz
 
@@ -151,6 +192,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/pkgconfig/*
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.14.6-19
+- Add an AppData file for the software center
+
 * Tue Sep 16 2014 Caolán McNamara <caolanm at redhat.com> - 0.14.6-18
 - Resolves: rhbz#1141479 use system valgrind headers
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/planner.git/commit/?h=master&id=5b567ee4f4ad38292b1bdf0aad8e12664d2ea110


More information about the scm-commits mailing list