Blame SPECS/fontawesome-fonts.spec

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