You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mozilla-fira-fonts/mozilla-fira-fonts.spec

107 lines
3.0 KiB

%global fontname mozilla-fira
%global fontconf 60-%{fontname}
%global archivename fira
%global upstream_date 20130925
# 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: 2.001
Release: 0.2.%{upstream_date}%{?dist}
Summary: Mozilla's Fira fonts
License: OFL
URL: https://www.mozilla.org/en-US/styleguide/products/firefox-os/typeface/
# Upstream tarball is not versioned. See the "Downloads" section of %%{url}.
# Upstream does not provide a direct download link.
Source0: %{archivename}-%{upstream_date}.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
* Tue Oct 22 2013 Ricky Elrod <codeblock@fedoraproject.org> - 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 <codeblock@fedoraproject.org> - 2.001-0.1.20130925
- Change N-V-R to be correct.
* Wed Sep 25 2013 Ricky Elrod <codeblock@fedoraproject.org> - 0.20130925-2
- Use %%global instead of %%define.
* Wed Sep 25 2013 Ricky Elrod <codeblock@fedoraproject.org> - 0.20130925-1
- Initial build.