[oflb-notcouriersans-fonts] Add metainfo file to show this font in gnome-software

Parag Nemade pnemade at fedoraproject.org
Sun Oct 19 06:06:49 UTC 2014


commit 6a879f32b1a2048d27330d988d99526c2df1fe00
Author: Parag Nemade <pnemade at redhat.com>
Date:   Sun Oct 19 11:36:43 2014 +0530

    Add metainfo file to show this font in gnome-software

 oflb-notcouriersans-fonts.spec |   25 ++++++++++++-------------
 1 files changed, 12 insertions(+), 13 deletions(-)
---
diff --git a/oflb-notcouriersans-fonts.spec b/oflb-notcouriersans-fonts.spec
index f1369d1..612e4d3 100644
--- a/oflb-notcouriersans-fonts.spec
+++ b/oflb-notcouriersans-fonts.spec
@@ -3,16 +3,14 @@
 
 Name:		%{fontname}-fonts
 Version:	1.1
-Release:	8%{?dist}
+Release:	9%{?dist}
 Summary:	NotCourier Sans is a re-interpretation of Nimbus Mono
 
-Group:		User Interface/X
 License:	GPLv2
 URL:		http://openfontlibrary.org/media/files/OSP/411
 Source0:	http://openfontlibrary.org/people/OSP/OSP_-_NotCourierSans_2.zip
 Source1:	%{name}-fontconfig.conf
-
-BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+Source2:        %{fontname}.metainfo.xml
 
 BuildArch:	noarch
 BuildRequires:	fontforge,fontpackages-devel
@@ -21,9 +19,9 @@ Requires:	fontpackages-filesystem
 %description
 This is a new release of the NotCourier-sans, with its bold.
 
-NotCourier-sans is a re-interpretation of Nimbus Mono and was designed \
-in Wroclaw at the occasion of Linux Graphics Meeting (LGM 2008).For more\
- detailed information: ospublish.constantvzw.org
+NotCourier-sans is a re-interpretation of Nimbus Mono and was designed
+in Wroclaw at the occasion of Linux Graphics Meeting (LGM 2008).For more
+detailed information: ospublish.constantvzw.org
 
 %prep
 %setup -q -n NotCourierSans
@@ -49,8 +47,6 @@ endloop
 EOF
 
 %install
-rm -fr %{buildroot}
-
 install -m 755 -d %{buildroot}%{_fontdir}
 install -m 644 -p *.ttf %{buildroot}%{_fontdir}
 
@@ -63,15 +59,18 @@ install -m 644 -p %{SOURCE1} \
 ln -s %{_fontconfig_templatedir}/%{fontconf} \
 	%{buildroot}%{_fontconfig_confdir}/%{fontconf}
 
-%clean
-rm -rf %{buildroot}
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE2} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %_font_pkg -f %{fontconf} *.ttf
-
 %doc *.txt GPL-2
-
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %changelog
+* Sun Oct 19 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.1-9
+- Add metainfo file to show this font in gnome-software
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.1-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list