From 4e0f16802062874f9466204a3f509d98b7fe0ac8 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Nov 07 2014 01:20:33 +0000 Subject: Add metainfo file to show this font in gnome-software - Remove group tag --- diff --git a/adf-gillius-fonts.spec b/adf-gillius-fonts.spec index e71db91..92ecf7e 100644 --- a/adf-gillius-fonts.spec +++ b/adf-gillius-fonts.spec @@ -12,13 +12,14 @@ Version: 1.008 Release: 9%{?dist} Summary: Gillius ADF sans-serif typeface family -Group: User Interface/X License: GPLv2+ with exceptions URL: http://arkandis.tuxfamily.org/adffonts.html Source0: http://arkandis.tuxfamily.org/fonts/Gillius-Collection.zip Source1: %{fontname}-fontconfig.conf Source2: %{fontname}-2-fontconfig.conf - +Source3: %{fontname}.metainfo.xml +Source4: %{fontname}-sans.metainfo.xml +Source5: %{fontname}-sans-2.metainfo.xml BuildArch: noarch BuildRequires: fontpackages-devel @@ -29,7 +30,7 @@ Requires: %{name}-common = %{version}-%{release} This is the base variant. %_font_pkg -f %{fontconf}.conf GilliusADF-*.otf - +%{_datadir}/appdata/%{fontname}-sans.metainfo.xml %package common Summary: Common files of %{fontname} @@ -52,6 +53,7 @@ A slightly rounder variant, which features the same set of weights, widths, and slopes. %_font_pkg -n 2 -f %{fontconf}-2.conf GilliusADFNo2-*.otf +%{_datadir}/appdata/%{fontname}-sans-2.metainfo.xml %prep %setup -q -n Gillius-Collection @@ -81,12 +83,23 @@ install -m 0644 -p %{SOURCE2} \ ln -s %{_fontconfig_templatedir}/%{fontconf}-2.conf \ %{buildroot}%{_fontconfig_confdir}/%{fontconf}-2.conf +# Add AppStream metadata +install -Dm 0644 -p %{SOURCE3} \ + %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml +install -Dm 0644 -p %{SOURCE4} \ + %{buildroot}%{_datadir}/appdata/%{fontname}-sans.metainfo.xml +install -Dm 0644 -p %{SOURCE5} \ + %{buildroot}%{_datadir}/appdata/%{fontname}-sans-2.metainfo.xml %files common -%defattr(0644,root,root,0755) %doc NOTICE OTF/COPYING +%{_datadir}/appdata/%{fontname}.metainfo.xml %changelog +* Thu Nov 06 2014 Parag Nemade - 1.008-10 +- Add metainfo file to show this font in gnome-software +- Remove group tag + * Sat Jun 07 2014 Fedora Release Engineering - 1.008-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild