%global fontname tulrich-tuffy %global fontconf 60-%{fontname}.conf Name: %{fontname}-fonts Version: 1.28 Release: 6%{?dist} Summary: Generic sans font License: Public Domain URL: http://tulrich.com/fonts/ Source0: http://tulrich.com/fonts/tuffy-20120614.tar.gz Source1: %{name}-fontconfig.conf Source2: %{fontname}.metainfo.xml BuildArch: noarch BuildRequires: fontpackages-devel BuildRequires: fontforge Requires: fontpackages-filesystem %description Tuffy is an innocuous looking sans font. %prep %setup -q -n tuffy-20120614 %build # be really sure that we don't package pre-generated ttf files rm *.ttf # We use the legacy font forge script to generate the TTF files (instead of a # Python one) because of bug 489109. fontforge -lang=ff -script "-" *.sfd <<"EOF" i = 1 while ( i < $argc ) Open ($argv[i], 1) Generate ($fontname + ".ttf") PrintSetup (5) PrintFont (0, 0, "", $fontname + "-sample.pdf") Close() i++ endloop EOF %install install -m 0755 -d %{buildroot}%{_fontdir} install -m 0644 -p *.ttf %{buildroot}%{_fontdir} install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ %{buildroot}%{_fontconfig_confdir} install -m 0644 -p %{SOURCE1} \ %{buildroot}%{_fontconfig_templatedir}/%{fontconf} ln -s %{_fontconfig_templatedir}/%{fontconf} \ %{buildroot}%{_fontconfig_confdir}/%{fontconf} # Add AppStream metadata install -Dm 0644 -p %{SOURCE2} \ %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml %_font_pkg -f %{fontconf} *.ttf %doc LICENSE.txt %{_datadir}/appdata/%{fontname}.metainfo.xml %changelog * Fri Jun 19 2015 Fedora Release Engineering - 1.28-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Oct 18 2014 Parag Nemade - 1.28-5 - Add metainfo file to show this font in gnome-software * Sun Jun 08 2014 Fedora Release Engineering - 1.28-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 1.28-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Feb 15 2013 Fedora Release Engineering - 1.28-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Toshio Kuratomi - 1.28-1 - Minor upstream release fixing some metadata and accents * Sat Jan 14 2012 Fedora Release Engineering - 1.27-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Aug 23 2011 Toshio Kuratomi - 1.27-1 - new upstream release with greek, cyrillic, and currency symbols added * Wed Feb 09 2011 Fedora Release Engineering - 1.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sun Jul 26 2009 Fedora Release Engineering - 1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue Mar 31 2009 Toshio Kuratomi - 1.1-3 - Change fontconfig file to use "sans-serif" generic. * Sat Mar 07 2009 Felix Schwarz - 1.1-2 - Modified fontforge script to make it compatible with rawhide fontforge * Tue Feb 24 2009 Toshio Kuratomi - 1.1-1 - Initial package