[un-core-fonts] Add metainfo file to show this font in gnome-software

Parag Nemade pnemade at fedoraproject.org
Fri Nov 7 05:38:40 UTC 2014


commit 80963ca4aaf3fe623e7edea2f8576a06ce48dbff
Author: Parag Nemade <pnemade at redhat.com>
Date:   Fri Nov 7 11:08:27 2014 +0530

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

 un-core-fonts.spec |   40 +++++++++++++++++++++++++++++++++++-----
 1 files changed, 35 insertions(+), 5 deletions(-)
---
diff --git a/un-core-fonts.spec b/un-core-fonts.spec
index eaeba5d..593fd88 100644
--- a/un-core-fonts.spec
+++ b/un-core-fonts.spec
@@ -32,11 +32,10 @@ Core 모음: \
 
 Name:           %{fontname}-fonts
 Version:        1.0.2
-Release:        0.23.%{alphatag}%{?dist}
+Release:        0.24.%{alphatag}%{?dist}
 Summary:        Un Core family of Korean TrueType fonts
 Summary(ko):    한글 은글꼴 Core 모음
 
-Group:          User Interface/X
 License:        GPLv2
 URL:            http://kldp.net/projects/unfonts/
 Source0:        http://kldp.net/frs/download.php/4695/%{archivename}.tar.gz
@@ -46,7 +45,13 @@ Source3:        %{name}-dotum-fontconfig.conf
 Source4:        %{name}-graphic-fontconfig.conf
 Source5:        %{name}-gungseo-fontconfig.conf
 Source6:        %{name}-pilgi-fontconfig.conf
-BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+Source7:        %{fontname}-batang.metainfo.xml
+Source8:        %{fontname}-dinaru.metainfo.xml
+Source9:        %{fontname}-dotum.metainfo.xml
+Source10:       %{fontname}-graphic.metainfo.xml
+Source11:       %{fontname}.metainfo.xml
+Source12:       %{fontname}-gungseo.metainfo.xml
+Source13:       %{fontname}-pilgi.metainfo.xml
 
 BuildArch:      noarch
 BuildRequires:  fontpackages-devel
@@ -147,12 +152,17 @@ This package includes UnPilgi, a script font.
 
 
 %_font_pkg -n batang -f %{fontconf}-batang.conf UnBatang.ttf UnBatangBold.ttf
+%{_datadir}/appdata/%{fontname}-batang.metainfo.xml
 %_font_pkg -n dinaru -f %{fontconf}-dinaru.conf UnDinaru.ttf UnDinaruLight.ttf UnDinaruBold.ttf
+%{_datadir}/appdata/%{fontname}-dinaru.metainfo.xml
 %_font_pkg -n dotum -f %{fontconf}-dotum.conf UnDotum.ttf UnDotumBold.ttf
+%{_datadir}/appdata/%{fontname}-dotum.metainfo.xml
 %_font_pkg -n graphic -f %{fontconf}-graphic.conf UnGraphic.ttf UnGraphicBold.ttf
+%{_datadir}/appdata/%{fontname}-graphic.metainfo.xml
 %_font_pkg -n gungseo -f %{fontconf}-gungseo.conf UnGungseo.ttf
+%{_datadir}/appdata/%{fontname}-gungseo.metainfo.xml
 %_font_pkg -n pilgi -f %{fontconf}-pilgi.conf UnPilgi.ttf UnPilgiBold.ttf
-
+%{_datadir}/appdata/%{fontname}-pilgi.metainfo.xml
 
 %prep
 %setup -q -n un-fonts
@@ -191,12 +201,32 @@ for fconf in %{fontconf}-batang.conf \
         %{buildroot}%{_fontconfig_confdir}/$fconf
 done
 
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE4} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-batang.metainfo.xml
+install -Dm 0644 -p %{SOURCE5} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-dinaru.metainfo.xml
+install -Dm 0644 -p %{SOURCE6} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-dotum.metainfo.xml
+install -Dm 0644 -p %{SOURCE7} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-graphic.metainfo.xml
+install -Dm 0644 -p %{SOURCE8} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
+install -Dm 0644 -p %{SOURCE9} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-gungseo.metainfo.xml
+install -Dm 0644 -p %{SOURCE10} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-pilgi.metainfo.xml
 
 %files common
 %doc COPYING README
-
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %changelog
+* Fri Nov 07 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.0.2-0.24.080608
+- Add metainfo file to show this font in gnome-software
+- Remove group tag
+- Remove buildroot tag
+
 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.2-0.23.080608
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the fonts-bugs mailing list