Blame SPECS/fontawesome-fonts.spec

3a01f7
%global fontname fontawesome
3a01f7
%global fontconf 60-%{fontname}.conf
3a01f7
3a01f7
Name:		%{fontname}-fonts
3a01f7
Version:	4.7.0
3a01f7
Release:	4%{?dist}
3a01f7
3a01f7
Summary:	Iconic font set
3a01f7
License:	OFL
3a01f7
URL:		http://fontawesome.io
3a01f7
Source0:	http://fontawesome.io/assets/font-awesome-%{version}.zip
3a01f7
Source1:	%{name}-fontconfig.conf
3a01f7
Source2:	README-Trademarks.txt
3a01f7
BuildArch:	noarch
3a01f7
BuildRequires:	fontpackages-devel
3a01f7
BuildRequires:	ttembed
3a01f7
Requires:	fontpackages-filesystem
3a01f7
3a01f7
3a01f7
%description
3a01f7
Font Awesome gives you scalable vector icons that can instantly be
3a01f7
customized — size, color, drop shadow, and anything that can be done with the
3a01f7
power of CSS.
3a01f7
3a01f7
This package contains OpenType and TrueType font files which are typically used
3a01f7
locally.
3a01f7
3a01f7
%package web
3a01f7
License:	OFL and MIT
3a01f7
Requires:	%{fontname}-fonts = %{version}-%{release}
3a01f7
Summary:	Iconic font set, web files
3a01f7
3a01f7
%description web
3a01f7
Font Awesome gives you scalable vector icons that can instantly be
3a01f7
customized — size, color, drop shadow, and anything that can be done with the
3a01f7
power of CSS.
3a01f7
3a01f7
This package contains CSS, SCSS and LESS style files as well as Web Open Font
3a01f7
Format versions 1 and 2, Embedded OpenType and SVG font files which are
3a01f7
typically used on the web.
3a01f7
3a01f7
%prep
3a01f7
%setup -q -n font-awesome-%{version}
3a01f7
cp -p %SOURCE2 .
3a01f7
3a01f7
%build
3a01f7
ttembed fonts/*.ttf fonts/*.otf
3a01f7
3a01f7
%install
3a01f7
install -m 0755 -d %{buildroot}%{_fontdir}
3a01f7
install -m 0644 -p fonts/*.ttf fonts/*.otf fonts/*.woff fonts/*.svg fonts/*.woff2 fonts/*.eot %{buildroot}%{_fontdir}
3a01f7
3a01f7
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
3a01f7
		%{buildroot}%{_fontconfig_confdir}
3a01f7
3a01f7
install -m 0644 -p %{SOURCE1} \
3a01f7
		%{buildroot}%{_fontconfig_templatedir}/%{fontconf}
3a01f7
3a01f7
ln -s %{_fontconfig_templatedir}/%{fontconf} \
3a01f7
		%{buildroot}%{_fontconfig_confdir}/%{fontconf}
3a01f7
3a01f7
mkdir -p %{buildroot}%{_datadir}/font-awesome-web/
3a01f7
cp -a css less scss %{buildroot}%{_datadir}/font-awesome-web/
3a01f7
3a01f7
# files:
3a01f7
%_font_pkg -f %{fontconf} *.ttf *.otf
3a01f7
%exclude %{_datadir}/fonts/fontawesome/fontawesome-webfont.svg
3a01f7
%exclude %{_datadir}/fonts/fontawesome/fontawesome-webfont.woff
3a01f7
%exclude %{_datadir}/fonts/fontawesome/fontawesome-webfont.woff2
3a01f7
%exclude %{_datadir}/fonts/fontawesome/fontawesome-webfont.eot
3a01f7
3a01f7
%doc README-Trademarks.txt
3a01f7
3a01f7
%files web
3a01f7
%{_datadir}/font-awesome-web/
3a01f7
%{_datadir}/fonts/fontawesome/fontawesome-webfont.svg
3a01f7
%{_datadir}/fonts/fontawesome/fontawesome-webfont.woff
3a01f7
%{_datadir}/fonts/fontawesome/fontawesome-webfont.woff2
3a01f7
%{_datadir}/fonts/fontawesome/fontawesome-webfont.eot
3a01f7
3a01f7
%changelog
3a01f7
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.0-4
3a01f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3a01f7
3a01f7
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.0-3
3a01f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3a01f7
3a01f7
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.0-2
3a01f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3a01f7
3a01f7
* Thu Oct 27 2016 Fabio Alessandro Locati <fale@redhat.com> - 4.7.0-1
3a01f7
- Update to 4.7.0
3a01f7
3a01f7
* Sun May 22 2016 Fabio Alessandro Locati <fale@redhat.com> - 4.6.3-1
3a01f7
- Update to 4.6.3
3a01f7
- Update the brand icons list using the script
3a01f7
3a01f7
* Thu May 05 2016 Fabio Alessandro Locati <fale@redhat.com> - 4.6.2-1
3a01f7
- Update to 4.6.1
3a01f7
- Update the brand icons list using a new script
3a01f7
- Add the script to create brand icons list
3a01f7
3a01f7
* Wed Apr 13 2016 Fabio Alessandro Locati <fale@redhat.com> - 4.6.1-1
3a01f7
- Update to 4.6.0
3a01f7
- Update the brand list with the icons new in 4.6.0
3a01f7
3a01f7
* Tue Mar 29 2016 Fabio Alessandro Locati <fale@redhat.com> - 4.5.0-1
3a01f7
- Update to 4.5.0
3a01f7
- Update the brand list with the icons new in 4.5.0
3a01f7
3a01f7
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-3
3a01f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3a01f7
3a01f7
* Wed Nov 04 2015 Nils Philippsen <nils@redhat.com> - 4.4.0-2
3a01f7
- include .eot files
3a01f7
- amend -web license and summary, and descriptions
3a01f7
3a01f7
* Thu Sep 17 2015 Matthias Runge <mrunge@redhat.com> - 4.4.0-1
3a01f7
- update to 4.4.0
3a01f7
3a01f7
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.0-3
3a01f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
3a01f7
3a01f7
* Thu Dec 04 2014 Matthias Runge <mrunge@redhad.com> - 4.1.0-2
3a01f7
- include .woff and .svg files (rhbz#1110646)
3a01f7
3a01f7
* Tue Jul 08 2014 Petr Vobornik <pvoborni@redhat.com> - 4.1.0-1
3a01f7
- update to version 4.1.0
3a01f7
- renamed web packaged dir from font-awesome-$version to font-awesome-web
3a01f7
3a01f7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.3-2
3a01f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
3a01f7
3a01f7
* Thu Jan 02 2014 Petr Vobornik <pvoborni@redhat.com> - 4.0.3-1
3a01f7
- embeddable flag set to installable by ttembed
3a01f7
- web package license updated to MIT
3a01f7
- README-Trademarks.txt added
3a01f7
3a01f7
* Mon Nov 04 2013 Ryan Lerch <ryanlerch@fedoraproject.org> - 4.0.3-0
3a01f7
- initial package based off spot's package