From 93a1f9da3a67ef6f7fdacbd259f11e6f01d214e6 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Tue, 14 May 2024 21:42:16 -0400 Subject: [PATCH] Use Red Hat Text font in RHEL --- plymouth.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plymouth.spec b/plymouth.spec index d64d043..7dd7d28 100644 --- a/plymouth.spec +++ b/plymouth.spec @@ -221,7 +221,11 @@ spins in the shape of an infinity sign. %package theme-spinner Summary: Plymouth "Spinner" theme Requires: %{name}-plugin-two-step = %{version}-%{release} +%if 0%{?rhel} > 9 +Requires: font(redhattextvf) font(redhatmonovf) +%else Requires: font(cantarell) font(cantarelllight) +%endif Requires(post): plymouth-scripts Provides: plymouth(system-theme) = %{version}-%{release} @@ -259,6 +263,10 @@ cp %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge cp $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/glow/{box,bullet,entry,lock}.png $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge %endif +%if 0%{?rhel} > 9 +find -type f -exec sed -i -e 's/Cantarell/Red Hat Text/g' {} \; +%endif + # Drop glow, it's not very Fedora-y rm -rf $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/glow