From 41bd4c5e9778c231eb1d75d9069cf50c06969b36 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Nov 09 2014 05:03:09 +0000 Subject: 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 %defattr - Remove group tag - Replace %define with %global --- diff --git a/allgeyer-fonts.spec b/allgeyer-fonts.spec index 809c906..42b235a 100644 --- a/allgeyer-fonts.spec +++ b/allgeyer-fonts.spec @@ -1,6 +1,6 @@ -%define fontname allgeyer +%global fontname allgeyer -%define common_desc \ +%global common_desc \ Robert Allgeyer's MusiQwik and MusiSync are a set of original True Type fonts \ that depict musical notation. Each music font may be used within a word \ processing document without the need for special music publishing software, or\ @@ -9,16 +9,18 @@ embedded in PDF files. Name: %{fontname}-fonts Summary: Musical Notation True Type Fonts Version: 5.002 -Release: 10%{?dist} +Release: 11%{?dist} License: OFL -Group: User Interface/X # The source was originally downloaded from: # http://www.icogitate.com/~ergosum/fonts/musiqwik_musisync_y6.zip # But the website is gone now. Source0: musiqwik_musisync_y6.zip +Source1: %{fontname}.metainfo.xml +Source2: %{fontname}-musisync.metainfo.xml +Source3: %{fontname}-musiqwik.metainfo.xml + # This website is gone. :( URL: http://www.icogitate.com/~ergosum/fonts/musicfonts.htm -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: fontpackages-devel Requires: %{name}-common = %{version}-%{release} @@ -28,7 +30,6 @@ Requires: %{name}-common = %{version}-%{release} %package common Summary: Common files for MusiSync and MusiQwik fonts (documentation...) -Group: User Interface/X Requires: fontpackages-filesystem %description common @@ -38,7 +39,6 @@ This package consists of files used by other Allgeyer font packages. %package -n %{fontname}-musisync-fonts Summary: A musical notation font family that provides general musical decorations -Group: User Interface/X Requires: %{name}-common = %{version}-%{release} %description -n %{fontname}-musisync-fonts @@ -47,10 +47,10 @@ Requires: %{name}-common = %{version}-%{release} This font family provides a collection of general musical decorations. %_font_pkg -n musisync MusiSync*.ttf +%{_datadir}/appdata/%{fontname}-musisync.metainfo.xml %package -n %{fontname}-musiqwik-fonts Summary: A musical notation font family intended for writing lines of actual music -Group: User Interface/X Requires: %{name}-common = %{version}-%{release} %description -n %{fontname}-musiqwik-fonts @@ -59,6 +59,7 @@ Requires: %{name}-common = %{version}-%{release} This font family is intended for writing lines of actual music. %_font_pkg -n musiqwik MusiQwik*.ttf +%{_datadir}/appdata/%{fontname}-musiqwik.metainfo.xml %prep %setup -q -c -n %{name} @@ -75,21 +76,33 @@ mv README_MusiQwik_MusiSync.txt{.utf8,} %build %install -rm -rf %{buildroot} install -m 0755 -d %{buildroot}%{_fontdir} install -m 0644 -p *.ttf %{buildroot}%{_fontdir} -%clean -rm -rf %{buildroot} +# Add AppStream metadata +install -Dm 0644 -p %{SOURCE1} \ + %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml +install -Dm 0644 -p %{SOURCE2} \ + %{buildroot}%{_datadir}/appdata/%{fontname}-musisync.metainfo.xml +install -Dm 0644 -p %{SOURCE3} \ + %{buildroot}%{_datadir}/appdata/%{fontname}-musiqwik.metainfo.xml %files common -%defattr(0644,root,root,0755) %doc FONTLOG.txt LICENSE_OFL.txt MusiQwik_character_map.htm musiqwik_demo.png %doc MusiSync_character_map.htm musisync_demo.png MusiSync-README.htm OFL-FAQ.txt %doc README_MusiQwik_MusiSync.txt SOURCE.txt -%dir %{_fontdir} +%{_datadir}/appdata/%{fontname}.metainfo.xml %changelog +* Sun Nov 09 2014 Parag Nemade - 5.002-11 +- 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 %%defattr +- Remove group tag +- Replace %%define with %%global + * Sat Jun 07 2014 Fedora Release Engineering - 5.002-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild