|
|
5f6bb0 |
%global fontname redhat
|
|
|
5f6bb0 |
%global fontconf 64-%{fontname}
|
|
|
5f6bb0 |
%global asfontname com.redhat.%{fontname}
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
%global projname RedHatFont
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
%global desc \
|
|
|
5f6bb0 |
Red Hat Typeface is a fresh take on the geometric sans genre, \
|
|
|
5f6bb0 |
taking inspiration from a range of American sans serifs \
|
|
|
5f6bb0 |
including Tempo and Highway Gothic. \
|
|
|
5f6bb0 |
\
|
|
|
5f6bb0 |
The Display styles, made for headlines and big statements, \
|
|
|
5f6bb0 |
are low contrast and spaced tightly, with a large x-height and open counters. \
|
|
|
5f6bb0 |
\
|
|
|
5f6bb0 |
The Text styles have a slightly smaller x-height and narrower width \
|
|
|
5f6bb0 |
for better legibility, are spaced more generously, and have thinned joins \
|
|
|
5f6bb0 |
for better performance at small sizes. \
|
|
|
5f6bb0 |
\
|
|
|
5f6bb0 |
The Mono styles are similar to the Text styles, but are adapted \
|
|
|
5f6bb0 |
for better performance to render code and similar text. \
|
|
|
5f6bb0 |
\
|
|
|
5f6bb0 |
The three families can be used together seamlessly at a range of sizes. \
|
|
|
5f6bb0 |
\
|
|
|
5f6bb0 |
The fonts were originally commissioned by Paula Scher / Pentagram \
|
|
|
5f6bb0 |
and designed by Jeremy Mickel / MCKL for the new Red Hat identity.
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
Name: %{fontname}-fonts
|
|
|
ca17c8 |
Version: 4.0.3
|
|
|
ca17c8 |
Release: 1%{?dist}
|
|
|
5f6bb0 |
Summary: Red Hat Typeface fonts
|
|
|
5f6bb0 |
# Only the metainfo files are CC-BY-SA
|
|
|
5f6bb0 |
License: OFL and CC-BY-SA
|
|
|
5f6bb0 |
URL: https://github.com/RedHatOfficial/%{projname}
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
Source0: %{url}/archive/%{version}/%{projname}-%{version}.tar.gz
|
|
|
5f6bb0 |
Source1: %{fontconf}-display-fontconfig.conf
|
|
|
5f6bb0 |
Source2: %{fontconf}-text-fontconfig.conf
|
|
|
5f6bb0 |
Source3: %{fontconf}-mono-fontconfig.conf
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
BuildArch: noarch
|
|
|
5f6bb0 |
BuildRequires: %{_bindir}/appstream-util
|
|
|
5f6bb0 |
BuildRequires: fontpackages-devel
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
%description %{desc}
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
%package -n %{fontname}-display-fonts
|
|
|
5f6bb0 |
Summary: Red Hat Display fonts
|
|
|
5f6bb0 |
Requires: fontpackages-filesystem
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
%description -n %{fontname}-display-fonts %{desc}
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
This package provides the Display fonts variant.
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
%package -n %{fontname}-text-fonts
|
|
|
5f6bb0 |
Summary: Red Hat Text fonts
|
|
|
5f6bb0 |
Requires: fontpackages-filesystem
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
%description -n %{fontname}-text-fonts %{desc}
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
This package provides the Text fonts variant.
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
%package -n %{fontname}-mono-fonts
|
|
|
5f6bb0 |
Summary: Red Hat Mono fonts
|
|
|
5f6bb0 |
Requires: fontpackages-filesystem
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
%description -n %{fontname}-mono-fonts %{desc}
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
This package provides the Monospace fonts variant.
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
%prep
|
|
|
5f6bb0 |
%autosetup -n %{projname}-%{version} -p1
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
%build
|
|
|
5f6bb0 |
# Nothing to build
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
%install
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
# Install fonts
|
|
|
5f6bb0 |
install -m 0755 -d %{buildroot}%{_fontdir}
|
|
|
5f6bb0 |
install -m 0644 -p fonts/*/static/otf/*.otf %{buildroot}%{_fontdir}
|
|
|
5f6bb0 |
install -m 0644 -p fonts/*/static/ttf/*.ttf %{buildroot}%{_fontdir}
|
|
|
5f6bb0 |
install -m 0644 -p fonts/*/*.ttf %{buildroot}%{_fontdir}
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
# Install fontconfig data
|
|
|
5f6bb0 |
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
|
|
|
5f6bb0 |
%{buildroot}%{_fontconfig_confdir}
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
install -m 0644 -p %{SOURCE1} \
|
|
|
5f6bb0 |
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-display.conf
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
install -m 0644 -p %{SOURCE2} \
|
|
|
5f6bb0 |
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-text.conf
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
install -m 0644 -p %{SOURCE3} \
|
|
|
5f6bb0 |
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-mono.conf
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
for fconf in %{fontconf}-display.conf %{fontconf}-text.conf %{fontconf}-mono.conf; do
|
|
|
5f6bb0 |
ln -s %{_fontconfig_templatedir}/$fconf %{buildroot}%{_fontconfig_confdir}/$fconf
|
|
|
5f6bb0 |
done
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
# Install AppStream metadata
|
|
|
5f6bb0 |
install -m 0755 -d %{buildroot}%{_datadir}/metainfo
|
|
|
5f6bb0 |
install -m 0644 -p metainfo/*.metainfo.xml %{buildroot}%{_datadir}/metainfo
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
%check
|
|
|
5f6bb0 |
# Validate AppStream metadata
|
|
|
5f6bb0 |
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.metainfo.xml
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
%_font_pkg -n display -f %{fontconf}-display.conf RedHatDisplay*.?tf
|
|
|
5f6bb0 |
%license LICENSE metainfo/LICENSE-METAINFO
|
|
|
5f6bb0 |
%doc README.md CHANGELOG.md *.png
|
|
|
5f6bb0 |
%{_datadir}/metainfo/%{asfontname}-display.metainfo.xml
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
%_font_pkg -n text -f %{fontconf}-text.conf RedHatText*.?tf
|
|
|
5f6bb0 |
%license LICENSE metainfo/LICENSE-METAINFO
|
|
|
5f6bb0 |
%doc README.md CHANGELOG.md *.png
|
|
|
5f6bb0 |
%{_datadir}/metainfo/%{asfontname}-text.metainfo.xml
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
%_font_pkg -n mono -f %{fontconf}-mono.conf RedHatMono*.?tf
|
|
|
5f6bb0 |
%license LICENSE metainfo/LICENSE-METAINFO
|
|
|
5f6bb0 |
%doc README.md CHANGELOG.md *.png
|
|
|
5f6bb0 |
%{_datadir}/metainfo/%{asfontname}-mono.metainfo.xml
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
%changelog
|
|
|
ca17c8 |
* Wed Aug 03 2022 Neal Gompa <ngompa@centosproject.org> - 4.0.3-1
|
|
|
ca17c8 |
- Update to 4.0.3 to fix grave accent rendering issue with Red Hat Mono
|
|
|
ca17c8 |
Resolves: rhbz#2115107
|
|
|
ca17c8 |
|
|
|
5f6bb0 |
* Wed Nov 24 2021 Parag Nemade <pnemade AT redhat DOT com> - 4.0.1-3
|
|
|
5f6bb0 |
- Resolves:rhbz#2021608 - changes blocked until gating tests are added
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-2
|
|
|
5f6bb0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
* Fri Apr 23 2021 Neal Gompa <ngompa13@gmail.com> - 4.0.1-1
|
|
|
5f6bb0 |
- Rebase to 4.0.1 (RH#1917996)
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-4
|
|
|
5f6bb0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-3
|
|
|
5f6bb0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-2
|
|
|
5f6bb0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
* Mon Jul 29 2019 Neal Gompa <ngompa13@gmail.com> - 2.3.2-1
|
|
|
5f6bb0 |
- Update to 2.3.2
|
|
|
5f6bb0 |
- Fix typos in the changelog
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-3
|
|
|
5f6bb0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
* Tue May 14 2019 Ben Cotton <bcotton@fedoraproject.org> - 2.2.0-2
|
|
|
5f6bb0 |
- Add TrueType font files (RHBZ #1709922)
|
|
|
5f6bb0 |
|
|
|
5f6bb0 |
* Sun May 5 2019 Neal Gompa <ngompa13@gmail.com> - 2.2.0-1
|
|
|
5f6bb0 |
- Initial packaging
|