[ubuntu-title-fonts] Add metainfo file to show this font in gnome-software

Parag Nemade pnemade at fedoraproject.org
Tue Nov 18 15:59:46 UTC 2014


commit fe9492ba94b4d55744053473f4249130a64f0f4b
Author: Parag Nemade <pnemade at redhat.com>
Date:   Tue Nov 18 21:29:43 2014 +0530

    Add metainfo file to show this font in gnome-software
    
    - Remove %clean section which is optional now
    - Remove buildroot which is optional now
    - Remove removal of buildroot in %install
    - Remove group tag

 ubuntu-title-fonts.spec |   23 +++++++++++++----------
 1 files changed, 13 insertions(+), 10 deletions(-)
---
diff --git a/ubuntu-title-fonts.spec b/ubuntu-title-fonts.spec
index 2037736..f7dc091 100644
--- a/ubuntu-title-fonts.spec
+++ b/ubuntu-title-fonts.spec
@@ -3,15 +3,14 @@
 
 Name:           %{fontname}-fonts
 Version:        002.000
-Release:        8%{?dist}
+Release:        9%{?dist}
 Summary:        A titling decorative font to create the lettering of the Ubuntu logo
 
-Group:          User Interface/X
 License:        OFL or GPLv2 with exceptions
 URL:            https://launchpad.net/ubuntutitle
 Source0:        http://launchpad.net/ubuntutitle/trunk/%{version}/+download/ubuntu-title-%{version}.tar.gz
 Source1:        %{name}-fontconfig.conf
-BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+Source2:        %{fontname}.metainfo.xml
 
 BuildArch:      noarch
 BuildRequires:  fontpackages-devel
@@ -34,8 +33,6 @@ done
 fontforge -lang=ff -c 'Open($1); Generate($1:r+".ttf")' Ubuntu-Title.sfd
 
 %install
-rm -fr %{buildroot}
-
 install -m 0755 -d %{buildroot}%{_fontdir}
 install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
 
@@ -47,17 +44,23 @@ install -m 0644 -p %{SOURCE1} \
 ln -s %{_fontconfig_templatedir}/%{fontconf} \
       %{buildroot}%{_fontconfig_confdir}/%{fontconf}
 
-
-%clean
-rm -fr %{buildroot}
-
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE2} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %_font_pkg -f %{fontconf} *.ttf
-
 %doc *.txt
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 
 %changelog
+* Tue Nov 18 2014 Parag Nemade <pnemade AT redhat DOT com> - 002.000-9
+- Add metainfo file to show this font in gnome-software
+- Remove %%clean section which is optional now
+- Remove buildroot which is optional now
+- Remove removal of buildroot in %%install
+- Remove group tag
+
 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 002.000-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the fonts-bugs mailing list