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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 17:01:39 UTC 2015


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


diff --git a/tomboy.spec b/tomboy.spec
index fd0d2d1..8479641 100644
--- a/tomboy.spec
+++ b/tomboy.spec
@@ -1,6 +1,6 @@
 Name:           tomboy
 Version:        1.15.4
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        Note-taking application
 Group:          User Interface/Desktops
 License:        LGPLv2+ and GPLv2+ and MIT
@@ -84,6 +84,54 @@ find %{buildroot} -name '*.la' -delete
 chmod a+x %{buildroot}%{_libdir}/%{name}/*.exe
 chmod a+x %{buildroot}%{_libdir}/%{name}/addins/*.dll
 
+# 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=736869
+SentUpstream: 2014-09-18
+-->
+<application>
+  <id type="desktop">tomboy.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <description>
+    <p>
+      Tomboy is a desktop note-taking application for GNU/Linux, Unix, Windows, and
+      Mac OS X.
+      Simple and easy to use, but with potential to help you organize the ideas and
+      information you deal with every day.
+    </p>
+    <p>
+      Have you ever felt the frustration at not being able to locate a website you
+      wanted to check out, or find an email you found interesting, or remember an idea
+      about the direction of the political landscape in post-industrial Australia?
+      Or are you one of those desperate souls with home-made, buggy, or not-quite-perfect
+      notes systems?
+      Time for Tomboy.
+    </p>
+    <p>
+      We bet you'll be surprised at how well a little application can make life less
+      cluttered and run more smoothly.
+    </p>
+  </description>
+  <url type="homepage">https://projects.gnome.org/tomboy/</url>
+  <screenshots>
+    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/tomboy/a.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
+
 desktop-file-validate %{buildroot}%{_datadir}/applications/tomboy.desktop
 
 %find_lang %name --with-gnome
@@ -134,6 +182,7 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
 %{_datadir}/icons/hicolor/*/apps/tomboy.*
 %{_datadir}/icons/hicolor/*/mimetypes/*
 %{_datadir}/mime/packages/tomboy.xml
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/tomboy.desktop
 %{_sysconfdir}/gconf/schemas/tomboy.schemas
 
@@ -144,6 +193,9 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.15.4-6
+- Add an AppData file for the software center
+
 * Sat Sep 27 2014 Rex Dieter <rdieter at fedoraproject.org> 1.15.4-5
 - update/optimize mimeinfo scriplets
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/tomboy.git/commit/?h=master&id=2d61e0a8623592add4ca132be1629a505a11b7ce


More information about the scm-commits mailing list