%global fontname levien-inconsolata %global fontconf 75-%{fontname}.conf Name: %{fontname}-fonts Version: 1.01 Release: 16%{?dist} Summary: Inconsolata fonts License: OFL URL: http://www.levien.com/type/myfonts/inconsolata.html Source0: http://www.levien.com/type/myfonts/Inconsolata.sfd Source1: %{name}-fontconfig.conf Source2: %{fontname}.metainfo.xml BuildArch: noarch BuildRequires: fontpackages-devel BuildRequires: fontforge Requires: fontpackages-filesystem Obsoletes: inconsolata-fonts < 1.009-3 %description A monospace font, designed for code listings and the like, in print. %prep %build fontforge -lang=ff -script "-" %{SOURCE0} <<_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 *.pdf %{_datadir}/appdata/%{fontname}.metainfo.xml %changelog * Wed Feb 07 2018 Fedora Release Engineering - 1.01-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.01-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 1.01-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.01-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 1.01-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Oct 17 2014 Parag Nemade - 1.01-11 - Add metainfo file to show this font in gnome-software * Sat Jun 07 2014 Fedora Release Engineering - 1.01-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 1.01-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 1.01-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Jul 19 2012 Fedora Release Engineering - 1.01-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jan 13 2012 Fedora Release Engineering - 1.01-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Feb 07 2011 Fedora Release Engineering - 1.01-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Jul 24 2009 Fedora Release Engineering - 1.01-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Sun Mar 15 2009 Nicolas Mailhot - 1.01-3 — Make sure F11 font packages have been built with F11 fontforge * Tue Feb 24 2009 Kevin Fenzi - 1.01-2 - Add fontconfig file - Don't bother to provide old name - use global instead of define * Wed Feb 18 2009 Kevin Fenzi - 1.01-1 - Re-named from old inconsolata-fonts package - Updated to new spec template/rules. - Updated to new upstream release. * Sat Feb 02 2008 Kevin Fenzi - 1.009-1 - Initial package for fedora