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