rhughes pushed to fonts-tweak-tool (master). "Add an AppData file for the software center"

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


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


diff --git a/fonts-tweak-tool.spec b/fonts-tweak-tool.spec
index d99c3f2..4794eb9 100644
--- a/fonts-tweak-tool.spec
+++ b/fonts-tweak-tool.spec
@@ -1,6 +1,6 @@
 Name: fonts-tweak-tool
 Version: 0.3.2
-Release: 6%{?dist}
+Release: 7%{?dist}
 Summary: Tool for customizing fonts per language
 
 Group: User Interface/Desktops
@@ -39,6 +39,42 @@ make %{?_smp_mflags}
 desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications fonts-tweak-tool.desktop
 make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="/usr/bin/install -p"
 
+# 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://bitbucket.org/tagoh/fonts-tweak-tool/issue/2
+SentUpstream: 2014-09-17
+-->
+<application>
+  <id type="desktop">fonts-tweak-tool.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Advanced settings for font display on the desktop</summary>
+  <description>
+    <p>
+      The Fonts Tweak Tool is a utility application that allows you to further change the
+      font configuration on your system. GNOME Tweak Tool allows you to configure and change
+      the default font on your system, but the Fonts Tweak Tool goes further. It allows you to
+      set specific default fonts for different lanugaues, set hinting and font rendering options
+      on a per-font basis, and specify global font substitutions.
+    </p>
+  </description>
+  <url type="homepage">https://bitbucket.org/tagoh/fonts-tweak-tool/</url>
+  <screenshots>
+    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/fonts-tweak-tool/a.png</screenshot>
+    <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/fonts-tweak-tool/b.png</screenshot>
+  </screenshots>
+</application>
+EOF
+
 rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.{la,so}
 rm -f $RPM_BUILD_ROOT%{_datadir}/gir-*/FontsTweak-*.gir
 
@@ -52,11 +88,15 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/gir-*/FontsTweak-*.gir
 %{_bindir}/%{name}
 %{python_sitearch}/fontstweak
 %{_datadir}/%{name}
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_libdir}/libfontstweak-resources.so.0*
 %{_libdir}/girepository-*/FontsTweak-*.typelib
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.3.2-7
+- Add an AppData file for the software center
+
 * Thu Sep  4 2014 Akira TAGOH <tagoh at redhat.com> - 0.3.2-6
 - Fix PyGTKDeprecationWarnings. (#1136177)
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/fonts-tweak-tool.git/commit/?h=master&id=98412f448764ae7710a20e1bfcad8754d32f431f


More information about the scm-commits mailing list