From 9d26ead6c9030af205a9bf566e203cf61db41fd7 Mon Sep 17 00:00:00 2001 From: Tomas Popela Date: Mon, 8 Apr 2024 16:12:43 +0200 Subject: [PATCH] Move to the Red Hat fonts family for RHEL 10 Resolves: RHEL-14087 --- gsettings-desktop-schemas.spec | 9 +++++++-- org.gnome.desktop.interface.rhel.gschema.override | 4 ++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 org.gnome.desktop.interface.rhel.gschema.override diff --git a/gsettings-desktop-schemas.spec b/gsettings-desktop-schemas.spec index 2c17b03..7336dfc 100644 --- a/gsettings-desktop-schemas.spec +++ b/gsettings-desktop-schemas.spec @@ -11,6 +11,7 @@ License: LGPL-2.1-or-later # no homepage exists for this component URL: https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas Source0: https://download.gnome.org/sources/%{name}/46/%{name}-%{tarball_version}.tar.xz +Source1: org.gnome.desktop.interface.rhel.gschema.override BuildRequires: gettext BuildRequires: glib2-devel >= 2.31.0 @@ -20,8 +21,8 @@ BuildRequires: meson Requires: glib2 >= 2.31.0 # Recommend the default fonts set in the schemas -Recommends: font(cantarell) -Recommends: font(sourcecodepro) +Recommends: font(redhattext) +Recommends: font(redhatmono) %description gsettings-desktop-schemas contains a collection of GSettings schemas for @@ -49,6 +50,10 @@ and header files for developing applications that use %{name}. %install %meson_install +%if 0%{?rhel} +cp %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas +%endif + %find_lang %{name} --with-gnome diff --git a/org.gnome.desktop.interface.rhel.gschema.override b/org.gnome.desktop.interface.rhel.gschema.override new file mode 100644 index 0000000..2ad14e3 --- /dev/null +++ b/org.gnome.desktop.interface.rhel.gschema.override @@ -0,0 +1,4 @@ +[org.gnome.desktop.interface] +document-font-name='Red Hat Text Regular 11' +font-name='Red Hat Text Regular 11' +monospace-font-name='Red Hat Mono Regular 10'