[sil-gentium-fonts] Add metainfo file to show this font in gnome-software

Parag Nemade pnemade at fedoraproject.org
Tue Oct 21 09:55:26 UTC 2014


commit 3bbbf6ee2115d906f86a7564925e95251e31bad9
Author: Parag Nemade <pnemade at redhat.com>
Date:   Tue Oct 21 15:25:23 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-fonts.spec |   30 +++++++++++++++---------------
 1 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/sil-gentium-fonts.spec b/sil-gentium-fonts.spec
index 320bd9f..dfb2049 100644
--- a/sil-gentium-fonts.spec
+++ b/sil-gentium-fonts.spec
@@ -9,15 +9,15 @@ a wide range of Latin-based alphabets.
 
 Name:           %{fontname}-fonts
 Version:        1.02
-Release:        16%{?dist}
+Release:        17%{?dist}
 Summary:        SIL Gentium fonts
 
-Group:          User Interface/X
 License:        OFL
 URL:            http://scripts.sil.org/Gentium_linux
 # Source0 can be downloaded from the above URL, search for "tar.gz"
 Source0:        %{archivename}_1.0.2.tar.gz
-BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+Source1:        %{fontname}.metainfo.xml
+Source2:        %{fontname}-alt.metainfo.xml
 
 BuildArch:      noarch
 BuildRequires:  fontpackages-devel
@@ -34,11 +34,10 @@ This package consists of the main SIL Gentium family.
 
 
 %_font_pkg Gen[RI]*.ttf
-
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %package common
 Summary:        Common files of SIL Gentium fonts
-Group:          User Interface/X
 Requires:       fontpackages-filesystem
 
 %description common
@@ -49,7 +48,6 @@ This package consists of files used by other %{name} packages.
 
 %package -n %{fontname}-alt-fonts
 Summary:        SIL GentiumAlt fonts
-Group:          User Interface/X
 Requires:       %{name}-common = %{version}-%{release}
 
 %description -n %{fontname}-alt-fonts
@@ -63,6 +61,7 @@ time.
 
 
 %_font_pkg -n alt GenA*.ttf
+%{_datadir}/appdata/%{fontname}-alt.metainfo.xml
 
 
 %prep
@@ -78,27 +77,28 @@ mv GENTIUM-FAQ.new GENTIUM-FAQ
 
 
 %install
-rm -fr %{buildroot}
-
 install -m 0755 -d %{buildroot}%{_fontdir}
 install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
 
 install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
                    %{buildroot}%{_fontconfig_confdir}
 
-
-%clean
-rm -fr %{buildroot}
-
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE1} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
+install -Dm 0644 -p %{SOURCE2} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-alt.metainfo.xml
 
 %files common
-%defattr(0644,root,root,0755)
 %doc FONTLOG GENTIUM-FAQ OFL OFL-FAQ QUOTES README
 
-%dir %{_fontdir}
-
 
 %changelog
+* Tue Oct 21 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.02-17
+- 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.02-16
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list