[sil-gentium-basic-fonts] Add metainfo file to show this font in gnome-software
Parag Nemade
pnemade at fedoraproject.org
Tue Oct 21 09:56:18 UTC 2014
commit bf78387b2cbaefd88e5b4b6d085457b13a5ebe5c
Author: Parag Nemade <pnemade at redhat.com>
Date: Tue Oct 21 15:26:14 2014 +0530
Add metainfo file to show this font in gnome-software
- Remove duplicate dir %{_fontdir}
- Clean the spec to follow current packaging guidelines
sil-gentium-basic-fonts.spec | 21 +++++++++++++++++----
1 files changed, 17 insertions(+), 4 deletions(-)
---
diff --git a/sil-gentium-basic-fonts.spec b/sil-gentium-basic-fonts.spec
index aff02cb..f6cb705 100644
--- a/sil-gentium-basic-fonts.spec
+++ b/sil-gentium-basic-fonts.spec
@@ -12,15 +12,17 @@ characters, with miscellaneous diacritical marks, symbols and punctuation.
Name: %{fontname}-fonts
Version: 1.1
-Release: 11%{?dist}
+Release: 12%{?dist}
Summary: SIL Gentium Basic font family
-Group: User Interface/X
License: OFL
URL: http://scripts.sil.org/Gentium_Basic
Source0: GentiumBasic_110.zip
Source1: %{fontname}-fontconfig.conf
Source2: %{fontname}-book-fontconfig.conf
+Source3: %{fontname}.metainfo.xml
+Source4: %{fontname}-book.metainfo.xml
+
BuildArch: noarch
BuildRequires: fontpackages-devel
@@ -32,6 +34,7 @@ Requires: %{name}-common = %{version}-%{release}
This is the base variant.
%_font_pkg -f %{fontconf}.conf GenBas*.ttf
+%{_datadir}/appdata/%{fontname}.metainfo.xml
%package common
Summary: Common files of %{fontname}
@@ -52,6 +55,7 @@ Requires: %{name}-common = %{version}-%{release}
The "Book" family is slightly heavier.
%_font_pkg -n book -f %{fontconf}-book.conf GenBkBas*.ttf
+%{_datadir}/appdata/%{fontname}-book.metainfo.xml
%prep
@@ -91,14 +95,23 @@ for fconf in %{fontconf}.conf\
%{buildroot}%{_fontconfig_confdir}/$fconf
done
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE3} \
+ %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
+install -Dm 0644 -p %{SOURCE4} \
+ %{buildroot}%{_datadir}/appdata/%{fontname}-book.metainfo.xml
+
%files common
-%defattr(0644,root,root,0755)
%doc FONTLOG.txt GENTIUM-FAQ.txt OFL-FAQ.txt OFL.txt
-
%changelog
+* Tue Oct 21 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.1-12
+- Add metainfo file to show this font in gnome-software
+- Remove duplicate dir %%{_fontdir}
+- Clean the spec to follow current packaging guidelines
+
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
More information about the scm-commits
mailing list