%global fontname mozilla-fira %global fontconf 60-%{fontname} %global archivename fira # Common description %global common_desc \ Originally designed to integrate with the character of Firefox OS, Fira is a \ new set of sans-serif fonts which focuses on legibility. Name: %{fontname}-fonts Version: 3.111 Release: 1%{?dist} Summary: Mozilla's Fira fonts License: OFL URL: https://www.mozilla.org/en-US/styleguide/products/firefox-os/typeface/ # Source0 links to the download from the font designer's server because it is # versioned there, which makes it easier to work with. There are at least three # landing sites for Fira: # - https://www.mozilla.org/en-US/styleguide/products/firefox-os/typeface/ # - https://mozilla.github.io/Fira/ # - http://www.carrois.com/fira-3-1/ Source0: http://www.carrois.com/wordpress/downloads/fira_3_1/FiraFonts3111.zip Source1: %{fontname}-mono.conf Source2: %{fontname}-sans.conf # The license file was obtained from here: # https://raw.github.com/mozilla/Fira/master/LICENSE # It is the standard OFL. Source3: fira-LICENSE BuildArch: noarch BuildRequires: fontpackages-devel %description %common_desc %package common Summary: Common files for Mozilla's Fira font set Requires: fontpackages-filesystem %description common %common_desc This package consists of files used by other %{name} packages. %package -n %{fontname}-mono-fonts Summary: Monospaced version of Mozilla's Fira font Requires: %{name}-common = %{version}-%{release} %description -n %{fontname}-mono-fonts %common_desc This package contains the monospaced version of Mozilla's Fira font. %_font_pkg -n mono -f %{fontconf}-mono.conf *Mono*.otf %package -n %{fontname}-sans-fonts Summary: Sans-serif version of Mozilla's Fira font Requires: %{name}-common = %{version}-%{release} %description -n %{fontname}-sans-fonts %common_desc This package contains the sans-serif version of Mozilla's Fira font. %_font_pkg -n sans -f %{fontconf}-sans.conf *Sans*.otf %prep %setup -q -c cp -p %{SOURCE1} %{SOURCE2} . cp -p %{SOURCE3} LICENSE %build %install install -m 0755 -d %{buildroot}%{_fontdir} install -m 0644 -p */*/*/*.otf %{buildroot}%{_fontdir} install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ %{buildroot}%{_fontconfig_confdir} install -m 0644 -p %{fontname}-mono.conf \ %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-mono.conf install -m 0644 -p %{fontname}-sans.conf \ %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-sans.conf for fconf in %{fontconf}-mono.conf \ %{fontconf}-sans.conf ; do ln -s %{_fontconfig_templatedir}/$fconf \ %{buildroot}%{_fontconfig_confdir}/$fontconf done %files common %doc LICENSE %dir %{_fontdir} %changelog * Fri Nov 07 2014 Ricky Elrod - 3.111-1 - Bump to latest zip. * Sat Jun 07 2014 Fedora Release Engineering - 2.001-0.3.20130925 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue Oct 22 2013 Ricky Elrod - 2.001-0.2.20130925 - Change N-V-R to be correct. - Remove group tag. - Better document license and source. * Tue Oct 22 2013 Ricky Elrod - 2.001-0.1.20130925 - Change N-V-R to be correct. * Wed Sep 25 2013 Ricky Elrod - 0.20130925-2 - Use %%global instead of %%define. * Wed Sep 25 2013 Ricky Elrod - 0.20130925-1 - Initial build.