[paratype-pt-sans-fonts] Add metainfo file to show this font in gnome-software

Parag Nemade pnemade at fedoraproject.org
Sun Nov 9 05:56:46 UTC 2014


commit 48d0f41d301ac24da122b44dbeebbabca0a0138f
Author: Parag Nemade <pnemade at redhat.com>
Date:   Sun Nov 9 11:26:28 2014 +0530

    Add metainfo file to show this font in gnome-software
    
    - Remove group tag

 paratype-pt-sans-fonts-caption-fontconfig.conf |    2 +-
 paratype-pt-sans-fonts.spec                    |   21 ++++++++++++++++++---
 2 files changed, 19 insertions(+), 4 deletions(-)
---
diff --git a/paratype-pt-sans-fonts-caption-fontconfig.conf b/paratype-pt-sans-fonts-caption-fontconfig.conf
index cbceb7f..3fdee76 100644
--- a/paratype-pt-sans-fonts-caption-fontconfig.conf
+++ b/paratype-pt-sans-fonts-caption-fontconfig.conf
@@ -2,7 +2,7 @@
 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
 <fontconfig>
   <alias>
-    <family>PT Sans Caption]</family>
+    <family>PT Sans Caption</family>
     <default>
       <family>sans-serif</family>
     </default>
diff --git a/paratype-pt-sans-fonts.spec b/paratype-pt-sans-fonts.spec
index 37ea682..14651e0 100644
--- a/paratype-pt-sans-fonts.spec
+++ b/paratype-pt-sans-fonts.spec
@@ -29,16 +29,17 @@ and released by ParaType. \
 
 Name:           %{fontname}-fonts
 Version:        20101909
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        A pan-Cyrillic typeface
 
-Group:          User Interface/X
 License:        OFL
 URL:            http://www.paratype.com/public/
 Source0:        http://www.fontstock.com/public/PTSans_OFL.zip
 Source10:       %{name}-fontconfig.conf
 Source11:       %{name}-caption-fontconfig.conf
-
+Source12:       %{fontname}.metainfo.xml
+Source13:       %{fontname}-narrow.metainfo.xml
+Source14:       %{fontname}-caption.metainfo.xml
 
 BuildArch:      noarch
 Requires:       fontpackages-filesystem
@@ -52,6 +53,8 @@ economic setting.
 
 %_font_pkg -f %{fontconf}.conf PTS*.ttf PTN*.ttf
 %doc *.txt
+%{_datadir}/appdata/%{fontname}.metainfo.xml
+%{_datadir}/appdata/%{fontname}-narrow.metainfo.xml
 
 
 %package -n %{fontname}-caption-fonts
@@ -65,6 +68,7 @@ This package includes 2 captions styles for small text sizes.
 
 %_font_pkg -n caption -f %{fontconf}-caption.conf PTC*.ttf
 %doc *.txt
+%{_datadir}/appdata/%{fontname}-caption.metainfo.xml
 
 
 %prep
@@ -103,9 +107,20 @@ for fconf in %{fontconf}.conf \
         %{buildroot}%{_fontconfig_confdir}/$fconf
 done
 
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE12} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
+install -Dm 0644 -p %{SOURCE13} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-narrow.metainfo.xml
+install -Dm 0644 -p %{SOURCE14} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-caption.metainfo.xml
 
 
 %changelog
+* Sun Nov 09 2014 Parag Nemade <pnemade AT redhat DOT com> - 20101909-5
+- Add metainfo file to show this font in gnome-software
+- Remove group tag
+
 * Fri Jun 06 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 20101909-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the fonts-bugs mailing list