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

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


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


diff --git a/font-manager.spec b/font-manager.spec
index 2eead6b..99ca7a4 100644
--- a/font-manager.spec
+++ b/font-manager.spec
@@ -1,6 +1,6 @@
 Name:           font-manager
 Version:        0.5.7
-Release:        10%{?dist}
+Release:        11%{?dist}
 Summary:        A font management application for the GNOME desktop environment
 Group:          Applications/Publishing
 License:        GPLv3+
@@ -42,6 +42,39 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/font-sampler.deskt
 # Make file executable to be picked up by find-debuginfo.sh
 chmod +x $RPM_BUILD_ROOT%{_libdir}/font-manager/fontutils.so
 
+# 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 Chris Roberts <croberts at croberts.org -->
+<!--
+BugReportURL: https://code.google.com/p/font-manager/issues/detail?id=91
+SentUpstream: 2014-09-17
+-->
+<application>
+  <id type="desktop">font-manager.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>A font management application</summary>
+  <description>
+    <p>
+      Font Manager lets a user manage the fonts from the GUI, so they do not have
+      to use the command line or have to change any config files in their enviroment.
+      Font Manager will work with any GTK+ Desktop.
+    </p>
+  </description>
+  <url type="homepage">http://code.google.com/p/font-manager</url>
+  <screenshots>
+    <screenshot type="default">http://font-manager.googlecode.com/svn/resources/font-manager.googlecode.com/font-manager.png</screenshot>
+  </screenshots>
+  </application>
+EOF
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -52,9 +85,13 @@ rm -rf $RPM_BUILD_ROOT
 %{_bindir}/font-sampler
 %{_libdir}/font-manager/
 %{_datadir}/font-manager/
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.5.7-11
+- Add an AppData file for the software center
+
 * Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.5.7-10
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/font-manager.git/commit/?h=master&id=17123ad3f9365694a2db6ce1b092b73d356d9eff


More information about the scm-commits mailing list