Blame SPECS/fontawesome-fonts.spec

33a46c
Name:		fontawesome-fonts
33a46c
Summary:	Support files for the FontAwesome fonts
33a46c
Epoch:		1
33a46c
Version:	6.7.2
bfe272
Release:	2%{?dist}
bb5b1b
33a46c
License:	MIT
33a46c
URL:		https://fontawesome.com/
33a46c
VCS:		git:https://github.com/FortAwesome/Font-Awesome.git
33a46c
BuildArch:	noarch
bb5b1b
33a46c
%global _desc %{expand:
bb5b1b
Font Awesome gives you scalable vector icons that can instantly be
33a46c
customized - size, color, drop shadow, and anything that can be done
33a46c
with the power of CSS.}
33a46c
33a46c
%global fontlicense	OFL-1.1-RFN
33a46c
%global fontlicenses	LICENSE.txt
33a46c
%global fontdocs	CHANGELOG.md README.md UPGRADING.md
33a46c
%global fontorg		com.fontawesome
33a46c
33a46c
%global fontfamily1	FontAwesome 6 Free
33a46c
%global fontsummary1	Iconic font set
33a46c
%global fonts1		otfs/*Free*
33a46c
%global fontconfs1	%{SOURCE3}
33a46c
%global fontpkgheader1	%{expand:
33a46c
# This can be removed when F42 reaches EOL
33a46c
Obsoletes:	fontawesome5-free-fonts < 5.15.4-5
33a46c
Provides:	fontawesome5-free-fonts = %{version}-%{release}
33a46c
}
33a46c
%global fontdescription1 %{expand:%_desc
33a46c
33a46c
The FontAwesome Free Fonts contain large numbers of icons packaged as
33a46c
font files.}
33a46c
33a46c
%global fontfamily2	FontAwesome 6 Brands Regular
33a46c
%global fontsummary2	Iconic font set
33a46c
%global fonts2		otfs/*Brands*
33a46c
%global fontconfs2	%{SOURCE4}
33a46c
%global fontpkgheader2	%{expand:
33a46c
# This can be removed when F42 reaches EOL
33a46c
Obsoletes:	fontawesome5-brands-fonts < 5.15.4-5
33a46c
Provides:	fontawesome5-brands-fonts = %{version}-%{release}
33a46c
}
33a46c
%global fontdescription2 %{expand:%_desc
33a46c
33a46c
The FontAwesome Brand Fonts contain brand logos packaged as font files.}
33a46c
33a46c
Source0:	https://github.com/FortAwesome/Font-Awesome/archive/%{version}/Font-Awesome-%{version}.tar.gz
33a46c
# Script to generate Source2
33a46c
Source1:	trademarks.py
33a46c
Source2:	README-Trademarks.txt
33a46c
Source3:	60-%{fontpkgname1}.conf
33a46c
Source4:	60-%{fontpkgname2}.conf
33a46c
33a46c
# Not for upstream.  This patch modifies the CSS to point to local OpenType
33a46c
# font files, rather than to the eot, svg, ttf, woff, and woff2 web fonts, as
33a46c
# required by Fedora's font packaging guidelines.
33a46c
Patch:          %{name}-opentype-css.patch
33a46c
33a46c
%description %_desc
bb5b1b
33a46c
%fontpkg -a
33a46c
33a46c
# NOTE: We would like to do this here:
33a46c
#%%fontmetapkg -d %%_desc
33a46c
# However, the fontmetapkg macro has no facility for adding Obsoletes and
33a46c
# Provides, so we expand it by hand.
33a46c
%package all
33a46c
Summary:	Metapackage that requires all Font Awesome fonts
33a46c
Requires:	fontawesome-6-brands-fonts = 1:%{version}-%{release}
33a46c
Requires:	fontawesome-6-free-fonts = 1:%{version}-%{release}
33a46c
33a46c
# This can be removed when F42 reaches EOL
33a46c
Obsoletes:	fontawesome5-fonts-all < 5.15.4-5
33a46c
Provides:	fontawesome5-fonts-all = %{version}-%{release}
33a46c
33a46c
%description all %_desc
33a46c
33a46c
This package is a metapackage that ensures all Font Awesome fonts are
33a46c
installed.
bb5b1b
bb5b1b
%package web
33a46c
License:	CC-BY-4.0
33a46c
Summary:	Iconic font set, JavaScript and SVG files
bb5b1b
33a46c
# This can be removed when F42 reaches EOL
33a46c
Obsoletes:	fontawesome5-fonts < 5.15.4-5
33a46c
Provides:	fontawesome5-fonts = %{version}-%{release}
33a46c
Obsoletes:	fontawesome5-fonts-web < 5.15.4-5
33a46c
Provides:	fontawesome5-fonts-web = %{version}-%{release}
33a46c
33a46c
%description web %_desc
bb5b1b
33a46c
This package contains CSS, SCSS and LESS style files for each of the
33a46c
fonts in the FontAwesome family, as well as JSON and YAML metadata.
33a46c
It also contains JavaScript, TTF, and SVG files, which are typically
33a46c
used on web pages.
bb5b1b
bb5b1b
%prep
33a46c
%autosetup -n Font-Awesome-%{version} -p1
bb5b1b
cp -p %SOURCE2 .
bb5b1b
bb5b1b
%build
33a46c
%fontbuild -a
bb5b1b
bb5b1b
%install
33a46c
%fontinstall -a
bb5b1b
33a46c
# Install the web files
33a46c
mkdir -p %{buildroot}%{_datadir}/fontawesome
33a46c
cp -a css js less metadata scss sprites svgs webfonts \
33a46c
   %{buildroot}%{_datadir}/fontawesome
bb5b1b
bfe272
# Create unversioned fontawesome directory
bfe272
mkdir -p %{buildroot}%{_datadir}/fonts/fontawesome
bfe272
cp %{fonts1} %{buildroot}%{_datadir}/fonts/fontawesome
bfe272
33a46c
# Fix up the generated metainfo; see bz 1943727
33a46c
sed -e 's,updatecontact,update_contact,g' \
33a46c
    -e 's,,\1,g' \
33a46c
    -i %{buildroot}%{_metainfodir}/*.metainfo.xml
bb5b1b
33a46c
%check
33a46c
%fontcheck -a
bb5b1b
33a46c
%fontfiles -a
bb5b1b
33a46c
%files all
bfe272
%{_datadir}/fonts/fontawesome/
bb5b1b
bb5b1b
%files web
33a46c
%doc CHANGELOG.md README* UPGRADING.md
33a46c
%license LICENSE.txt
33a46c
%{_datadir}/fontawesome/
bb5b1b
bb5b1b
%changelog
bfe272
* Mon Mar 10 2024 Joel Capitao <jcapitao@redhat.com> - 1:6.7.2-2
bfe272
- Create unversioned fontawesome directory
bfe272
33a46c
* Tue Dec 17 2024 Jerry James <loganjerry@gmail.com> - 1:6.7.2-1
33a46c
- Version 6.7.2
33a46c
33a46c
* Wed Nov 20 2024 Jerry James <loganjerry@gmail.com> - 1:6.7.1-1
33a46c
- Version 6.7.1
33a46c
33a46c
* Tue Nov 19 2024 Jerry James <loganjerry@gmail.com> - 1:6.7.0-1
33a46c
- Version 6.7.0
33a46c
33a46c
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:6.6.0-2
33a46c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
33a46c
33a46c
* Wed Jul 17 2024 Jerry James <loganjerry@gmail.com> - 1:6.6.0-1
33a46c
- Version 6.6.0
33a46c
33a46c
* Tue Jul 16 2024 Jerry James <loganjerry@gmail.com> - 1:6.5.2-2
33a46c
- Fix VCS field
33a46c
33a46c
* Wed Apr 03 2024 Jerry James <loganjerry@gmail.com> - 1:6.5.2-1
33a46c
- Version 6.5.2
33a46c
33a46c
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:6.5.1-3
33a46c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
33a46c
33a46c
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:6.5.1-2
33a46c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
33a46c
33a46c
* Sat Dec  2 2023 Jerry James <loganjerry@gmail.com> - 1:6.5.1-1
33a46c
- Version 6.5.1
33a46c
33a46c
* Thu Nov 30 2023 Jerry James <loganjerry@gmail.com> - 1:6.5.0-1
33a46c
- Version 6.5.0
33a46c
33a46c
* Thu Aug  3 2023 Jerry James <loganjerry@gmail.com> - 1:6.4.2-1
33a46c
- Version 6.4.2
33a46c
33a46c
* Tue Jul 18 2023 Jerry James <loganjerry@gmail.com> - 1:6.4.0-2
33a46c
- Remove redundant metainfo checks
33a46c
33a46c
* Mon Apr 10 2023 Jerry James <loganjerry@gmail.com> - 1:6.4.0-2
33a46c
- Move obsoletes/provides to the right package (rhbz#2185459)
33a46c
33a46c
* Tue Mar 28 2023 Jerry James <loganjerry@gmail.com> - 1:6.4.0-1
33a46c
- Version 6.4.0
33a46c
- Convert License tags to SPDX
33a46c
- Comply with the font policy
33a46c
- Update trademarks.py for python3
33a46c
33a46c
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.7.0-15
33a46c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
33a46c
33a46c
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.7.0-14
33a46c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
33a46c
33a46c
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.7.0-13
33a46c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
33a46c
33a46c
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.7.0-12
33a46c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
33a46c
33a46c
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.7.0-11
33a46c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
33a46c
33a46c
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.7.0-10
33a46c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
33a46c
33a46c
* Wed Jul 08 2020 Miro HronĨok <mhroncok@redhat.com> - 1:4.7.0-9
33a46c
- Add epoch to inter-subpackages requirement
33a46c
33a46c
* Wed Jul 08 2020 Fabio Alessandro Locati <fale@fedoraproject.org> - 1:4.7.0-8
33a46c
- Rollback to FA4
33a46c
33a46c
* Tue Jul 07 2020 Fabio Alessandro Locati <fale@fedoraproject.org> - 5.13.1-2
33a46c
- Provide the right font configuration
33a46c
- Drop ttf format since upstream affirms that otf is to be preferred
33a46c
33a46c
* Sun Jul 05 2020 Fabio Alessandro Locati <fale@fedoraproject.org> - 5.13.1-1
33a46c
- Update to 5.13.1
33a46c
33a46c
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.0-8
33a46c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
33a46c
33a46c
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.0-7
33a46c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
33a46c
33a46c
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.0-6
33a46c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
33a46c
33a46c
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.0-5
33a46c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
33a46c
bb5b1b
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.0-4
bb5b1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
bb5b1b
bb5b1b
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.0-3
bb5b1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
bb5b1b
bb5b1b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.0-2
bb5b1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
bb5b1b
33a46c
* Thu Oct 27 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 4.7.0-1
bb5b1b
- Update to 4.7.0
bb5b1b
33a46c
* Sun May 22 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 4.6.3-1
bb5b1b
- Update to 4.6.3
bb5b1b
- Update the brand icons list using the script
bb5b1b
33a46c
* Thu May 05 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 4.6.2-1
bb5b1b
- Update to 4.6.1
bb5b1b
- Update the brand icons list using a new script
bb5b1b
- Add the script to create brand icons list
bb5b1b
33a46c
* Wed Apr 13 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 4.6.1-1
bb5b1b
- Update to 4.6.0
bb5b1b
- Update the brand list with the icons new in 4.6.0
bb5b1b
33a46c
* Tue Mar 29 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 4.5.0-1
bb5b1b
- Update to 4.5.0
bb5b1b
- Update the brand list with the icons new in 4.5.0
bb5b1b
bb5b1b
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-3
bb5b1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
bb5b1b
bb5b1b
* Wed Nov 04 2015 Nils Philippsen <nils@redhat.com> - 4.4.0-2
bb5b1b
- include .eot files
bb5b1b
- amend -web license and summary, and descriptions
bb5b1b
bb5b1b
* Thu Sep 17 2015 Matthias Runge <mrunge@redhat.com> - 4.4.0-1
bb5b1b
- update to 4.4.0
bb5b1b
bb5b1b
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.0-3
bb5b1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
bb5b1b
bb5b1b
* Thu Dec 04 2014 Matthias Runge <mrunge@redhad.com> - 4.1.0-2
bb5b1b
- include .woff and .svg files (rhbz#1110646)
bb5b1b
bb5b1b
* Tue Jul 08 2014 Petr Vobornik <pvoborni@redhat.com> - 4.1.0-1
bb5b1b
- update to version 4.1.0
bb5b1b
- renamed web packaged dir from font-awesome-$version to font-awesome-web
bb5b1b
bb5b1b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.3-2
bb5b1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
bb5b1b
bb5b1b
* Thu Jan 02 2014 Petr Vobornik <pvoborni@redhat.com> - 4.0.3-1
bb5b1b
- embeddable flag set to installable by ttembed
bb5b1b
- web package license updated to MIT
bb5b1b
- README-Trademarks.txt added
bb5b1b
bb5b1b
* Mon Nov 04 2013 Ryan Lerch <ryanlerch@fedoraproject.org> - 4.0.3-0
bb5b1b
- initial package based off spot's package