[motoya-lmaru-fonts] Add metainfo file to show this font in gnome-software
Parag Nemade
pnemade at fedoraproject.org
Sun Nov 9 05:03:29 UTC 2014
commit 1ee1d7a36db0fe873ab4825da2e7e45d26e0434e
Author: Parag Nemade <pnemade at redhat.com>
Date: Sun Nov 9 10:33:15 2014 +0530
Add metainfo file to show this font in gnome-software
- Remove %clean section which is optional now
- Remove removal of buildroot in %install
- Remove group tag
motoya-lmaru-fonts.spec | 19 ++++++++++++-------
1 files changed, 12 insertions(+), 7 deletions(-)
---
diff --git a/motoya-lmaru-fonts.spec b/motoya-lmaru-fonts.spec
index bd8e685..d4ab073 100644
--- a/motoya-lmaru-fonts.spec
+++ b/motoya-lmaru-fonts.spec
@@ -6,16 +6,16 @@
Name: %{fontname}-fonts
Version: 1.00
-Release: 0.9.%{archivedate}git%{?dist}
+Release: 0.10.%{archivedate}git%{?dist}
Summary: Japanese Round Gothic-typeface TrueType fonts by MOTOYA Co,LTD
License: ASL 2.0
-Group: User Interface/X
URL: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=data/fonts
Source0: %{download_root}MTLmr3m.ttf
Source1: %{download_root}NOTICE
Source2: %{download_root}README.txt
Source10: %{fontname}-fontconfig.conf
+Source11: %{fontname}.metainfo.xml
BuildArch: noarch
BuildRequires: fontpackages-devel
@@ -36,7 +36,6 @@ install -m 0644 -p %{SOURCE2} readme.txt
%install
-rm -rf $RPM_BUILD_ROOT
install -m 0755 -d $RPM_BUILD_ROOT%{_fontdir}
install -m 0644 -p %{SOURCE0} $RPM_BUILD_ROOT%{_fontdir}
@@ -46,16 +45,22 @@ install -m 0644 -p %{SOURCE10} $RPM_BUILD_ROOT%{_fontconfig_templatedir}/%{fontc
ln -s %{_fontconfig_templatedir}/%{fontconf} $RPM_BUILD_ROOT%{_fontconfig_confdir}/%{fontconf}
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE11} \
+ %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
%_font_pkg -f %{fontconf} *.ttf
%doc *.txt
+%{_datadir}/appdata/%{fontname}.metainfo.xml
%changelog
+* Sun Nov 09 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.00-0.10.20110406git
+- Add metainfo file to show this font in gnome-software
+- Remove %%clean section which is optional now
+- Remove removal of buildroot in %%install
+- Remove group tag
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.00-0.9.20110406git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
More information about the fonts-bugs
mailing list