Blame SPECS/redhat-fonts.spec

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