Blame SPECS/fontawesome-fonts.spec

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