[myanmar3-unicode-fonts] Add metainfo file to show this font in gnome-software

Parag Nemade pnemade at fedoraproject.org
Sat Oct 18 16:46:12 UTC 2014


commit 5b8be8a9fc01d7cf87200e4799ad91d98350932e
Author: Parag Nemade <pnemade at redhat.com>
Date:   Sat Oct 18 22:16:06 2014 +0530

    Add metainfo file to show this font in gnome-software

 myanmar3-unicode-fonts.spec |   20 +++++++++-----------
 1 files changed, 9 insertions(+), 11 deletions(-)
---
diff --git a/myanmar3-unicode-fonts.spec b/myanmar3-unicode-fonts.spec
index 697326f..5f3b4bb 100644
--- a/myanmar3-unicode-fonts.spec
+++ b/myanmar3-unicode-fonts.spec
@@ -5,15 +5,14 @@
 
 Name:    %{fontname}-fonts
 Version: 3.00
-Release: 10%{?dist}
+Release: 11%{?dist}
 Summary: Myanmar3 unicode font
 
-Group:   User Interface/X
 License: LGPLv2+
 URL:    http://www.myanmarnlp.net.mm 
 Source0: http://www.myanmarnlp.net.mm/downloads/%{archivename}.zip
 Source1: %{name}-fontconfig.conf
-BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+Source2: %{fontname}.metainfo.xml
 
 BuildArch:      noarch
 BuildRequires:  fontpackages-devel
@@ -31,8 +30,6 @@ unzip -j -L -q %{SOURCE0}
 
 
 %install
-rm -fr %{buildroot}
-
 install -m 0755 -d %{buildroot}%{_fontdir}
 install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
 
@@ -45,16 +42,17 @@ 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
-
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %changelog
+* Sat Oct 18 2014 Parag Nemade <pnemade AT redhat DOT com> - 3.00-11
+- Add metainfo file to show this font in gnome-software
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.00-10
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the fonts-bugs mailing list