[stix-fonts] Add metainfo file to show this font in gnome-software
Parag Nemade
pnemade at fedoraproject.org
Tue Nov 18 15:59:54 UTC 2014
commit 4bd0b7991f71b25506201b1ed4d5bda95f14a282
Author: Parag Nemade <pnemade at redhat.com>
Date: Tue Nov 18 21:29:49 2014 +0530
Add metainfo file to show this font in gnome-software
- Remove %clean section which is optional now
- Remove buildroot which is optional now
- Remove removal of buildroot in %install
- Remove group tag
stix-fonts.spec | 24 +++++++++++++++++-------
1 files changed, 17 insertions(+), 7 deletions(-)
---
diff --git a/stix-fonts.spec b/stix-fonts.spec
index 5fdfd26..2a790c5 100644
--- a/stix-fonts.spec
+++ b/stix-fonts.spec
@@ -11,15 +11,16 @@ creation through final publication, both in electronic and print formats.
Name: %{fontname}-fonts
Version: 1.1.0
-Release: 6%{?dist}
+Release: 7%{?dist}
Summary: Scientific and engineering fonts
-Group: User Interface/X
License: OFL
URL: http://www.stixfonts.org/
Source0: http://downloads.sourceforge.net/stixfonts/%{archivename}.zip
Source10: stix-fonts-fontconfig.conf
Source11: stix-fonts-math-fontconfig.conf
+Source20: %{fontname}.metainfo.xml
+Source21: %{fontname}-math.metainfo.xml
BuildArch: noarch
BuildRequires: fontpackages-devel
@@ -35,6 +36,7 @@ use in the usual four styles.
%_font_pkg -f %{fontconf}.conf STIX-*otf
%doc License/*.pdf *.pdf
+%{_datadir}/appdata/%{fontname}.metainfo.xml
%package -n %{fontname}-math-fonts
@@ -55,6 +57,7 @@ This package includes one symbol font completing the four faces in the main
release.
%_font_pkg -n math -f %{fontconf}-math.conf STIXMath*otf
+%{_datadir}/appdata/%{fontname}-math.metainfo.xml
%prep
@@ -65,8 +68,6 @@ release.
%install
-rm -fr %{buildroot}
-
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p Fonts/STIX-Word/*.otf %{buildroot}%{_fontdir}
@@ -84,12 +85,21 @@ for fconf in %{fontconf}.conf \
%{buildroot}%{_fontconfig_confdir}/$fconf
done
-
-%clean
-rm -fr %{buildroot}
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE20} \
+ %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
+install -Dm 0644 -p %{SOURCE21} \
+ %{buildroot}%{_datadir}/appdata/%{fontname}-math.metainfo.xml
%changelog
+* Tue Nov 18 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.1.0-7
+- Add metainfo file to show this font in gnome-software
+- Remove %%clean section which is optional now
+- Remove buildroot which is optional now
+- Remove removal of buildroot in %%install
+- Remove group tag
+
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.1.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
More information about the fonts-bugs
mailing list