Blame SPECS/fontawesome-fonts.spec

953047
%global fontname fontawesome
953047
%global fontconf 60-%{fontname}.conf
953047
953047
Name:		%{fontname}-fonts
953047
Version:	4.1.0
953047
Release:	2%{?dist}
953047
Summary:	Iconic font set
953047
License:	OFL
953047
URL:		http://fontawesome.io/
953047
Source0:	http://fontawesome.io/assets/font-awesome-%{version}.zip
953047
Source1:	%{name}-fontconfig.conf
953047
Source2:	README-Trademarks.txt
953047
BuildArch:	noarch
953047
BuildRequires:	fontpackages-devel
953047
BuildRequires:	ttembed
953047
Requires:	fontpackages-filesystem
953047
953047
953047
%description
953047
Font Awesome gives you scalable vector icons that can instantly be
953047
customized — size, color, drop shadow, and anything that can be done with the
953047
power of CSS.
953047
953047
This package contains OpenType and TrueType font files which are typically used
953047
locally.
953047
953047
%package web
953047
License:	MIT
953047
Requires:	%{fontname}-fonts = %{version}-%{release}
953047
Summary:	Iconic font set, web files
953047
953047
%description web
953047
Font Awesome gives you scalable vector icons that can instantly be
953047
customized — size, color, drop shadow, and anything that can be done with the
953047
power of CSS.
953047
953047
This package contains CSS, SCSS and LESS style files as well as Web Open Font
953047
Format versions 1, Embedded OpenType and SVG font files which are
953047
typically used on the web.
953047
953047
%prep
953047
%setup -q -n font-awesome-%{version}
953047
cp -p %SOURCE2 .
953047
953047
%build
953047
ttembed fonts/*.ttf fonts/*.otf
953047
953047
%install
953047
install -m 0755 -d %{buildroot}%{_fontdir}
953047
install -m 0644 -p fonts/*.ttf fonts/*.otf fonts/*.woff fonts/*.svg fonts/*.eot %{buildroot}%{_fontdir}
953047
953047
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
953047
		%{buildroot}%{_fontconfig_confdir}
953047
953047
install -m 0644 -p %{SOURCE1} \
953047
		%{buildroot}%{_fontconfig_templatedir}/%{fontconf}
953047
953047
ln -s %{_fontconfig_templatedir}/%{fontconf} \
953047
		%{buildroot}%{_fontconfig_confdir}/%{fontconf}
953047
953047
mkdir -p %{buildroot}%{_datadir}/font-awesome-web/
953047
cp -a css less scss %{buildroot}%{_datadir}/font-awesome-web/
953047
953047
# files:
953047
%_font_pkg -f %{fontconf} *.ttf *.otf
953047
%exclude %{_datadir}/fonts/fontawesome/fontawesome-webfont.svg
953047
%exclude %{_datadir}/fonts/fontawesome/fontawesome-webfont.woff
953047
%exclude %{_datadir}/fonts/fontawesome/fontawesome-webfont.eot
953047
953047
%doc README-Trademarks.txt
953047
953047
%files web
953047
%{_datadir}/font-awesome-web/
953047
%{_datadir}/fonts/fontawesome/fontawesome-webfont.svg
953047
%{_datadir}/fonts/fontawesome/fontawesome-webfont.woff
953047
%{_datadir}/fonts/fontawesome/fontawesome-webfont.eot
953047
953047
%changelog
953047
* Tue Jun 19 2018 Petr Vobornik <pvoborni@redhat.com> - 4.1.0-2
953047
- Resolves #1492884: include .svg, .woff, .eot font files in web package
953047
953047
* Fri Sep 12 2014 Petr Vobornik <pvoborni@redhat.com> - 4.1.0-1
953047
- initial RHEL package