From 98412f448764ae7710a20e1bfcad8754d32f431f Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mar 26 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 < + + + + fonts-tweak-tool.desktop + CC0-1.0 + Advanced settings for font display on the desktop + +

+ 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. +

+
+ https://bitbucket.org/tagoh/fonts-tweak-tool/ + + https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/fonts-tweak-tool/a.png + https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/fonts-tweak-tool/b.png + +
+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 - 0.3.2-7 +- Add an AppData file for the software center + * Thu Sep 4 2014 Akira TAGOH - 0.3.2-6 - Fix PyGTKDeprecationWarnings. (#1136177)