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

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


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


diff --git a/fontmatrix.spec b/fontmatrix.spec
index 90a2437..9e672a4 100644
--- a/fontmatrix.spec
+++ b/fontmatrix.spec
@@ -3,7 +3,7 @@
 Name: fontmatrix
 Summary: A fonts manager
 Version: 0.9.99
-Release: 19.r%{svnrev}%{?dist}
+Release: 20.r%{svnrev}%{?dist}
 License: GPLv2+
 
 ##### svn checkout HOWTO #####
@@ -61,6 +61,40 @@ desktop-file-install --delete-original  \
     --dir=$RPM_BUILD_ROOT%{_datadir}/applications/ \
     $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 Ryan Lerch <rlerch at redhat.com>-->
+<!--
+BugReportURL: https://gna.org/bugs/?22101
+SentUpstream: 2014-09-18
+-->
+<application>
+  <id type="desktop">fontmatrix.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Manage fonts installed on your system</summary>
+  <description>
+    <p>
+      Font Matrix is an advanced font manager that allows you to view and organise the fonts
+      installed on your system. It provides a wide range of information about the fonts installed
+      on your system, and allows you to tag them into groups, perform searches on your fonts based
+      on font metadata, and easily compare glyphs of fonts.
+    </p>
+  </description>
+  <url type="homepage">http://fontmatrix.be/node/21</url>
+  <screenshots>
+    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/fontmatrix/a.png</screenshot>
+    <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/fontmatrix/b.png</screenshot>
+  </screenshots>
+</application>
+EOF
 
 %post
 /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@@ -79,11 +113,15 @@ fi
 %{_bindir}/fontmatrix
 %{_datadir}/fontmatrix
 %{_mandir}/man1/*
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/*.desktop
 %{_datadir}/icons/hicolor/48x48/apps/fontmatrix.png
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.9.99-20.r1218
+- Add an AppData file for the software center
+
 * Mon Jan 26 2015 David Tardon <dtardon at redhat.com> - 0.9.99-19.r1218
 - rebuild for ICU 54.1
 
-- 
cgit v0.10.2


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


More information about the scm-commits mailing list