Add g-s-d-server-defaults subpackage for "Server with GUI" overrides

In this subpackage we will be shipping gschema overrides for
server-with-gui deployments.

Related: RHEL-77331
This commit is contained in:
Felipe Borges 2025-01-31 13:51:25 +01:00
parent fb3a206561
commit f86f8c5568
2 changed files with 21 additions and 0 deletions

View File

@ -25,6 +25,9 @@ License: GPL-2.0-or-later AND LGPL-2.1-or-later
URL: https://gitlab.gnome.org/GNOME/gnome-settings-daemon URL: https://gitlab.gnome.org/GNOME/gnome-settings-daemon
Source0: https://download.gnome.org/sources/%{name}/%{major_version}/%{name}-%{tarball_version}.tar.xz Source0: https://download.gnome.org/sources/%{name}/%{major_version}/%{name}-%{tarball_version}.tar.xz
# gsetting overrides for the "Server with GUI" installation
Source1: org.gnome.settings-daemon.plugins.power.gschema.override
# https://issues.redhat.com/browse/RHEL-74248 # https://issues.redhat.com/browse/RHEL-74248
Patch0: housekeeping-disambiguate-mount-names-in-notifications.patch Patch0: housekeeping-disambiguate-mount-names-in-notifications.patch
@ -88,6 +91,14 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
The %{name}-devel package contains libraries and header files for The %{name}-devel package contains libraries and header files for
developing applications that use %{name}. developing applications that use %{name}.
%package server-defaults
Summary: Workstation settings overrides for Server with GUI
Requires: %{name}%{?_isa} = %{version}-%{release}
%description server-defaults
The {%name}-server-defaults package contains gsettings schema overrides
for the default behavior of Workstation in the Server with GUI product.
%prep %prep
%autosetup -p1 -n %{name}-%{tarball_version} %autosetup -p1 -n %{name}-%{tarball_version}
@ -98,6 +109,8 @@ developing applications that use %{name}.
%install %install
%meson_install %meson_install
cp %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas
%find_lang %{name} --with-gnome %find_lang %{name} --with-gnome
%post %post
@ -199,5 +212,8 @@ developing applications that use %{name}.
%{_includedir}/gnome-settings-daemon-%{major_version} %{_includedir}/gnome-settings-daemon-%{major_version}
%{_libdir}/pkgconfig/gnome-settings-daemon.pc %{_libdir}/pkgconfig/gnome-settings-daemon.pc
%files server-defaults
%{_datadir}/glib-2.0/schemas/org.gnome.settings-daemon.plugins.power.gschema.override
%changelog %changelog
%autochangelog %autochangelog

View File

@ -0,0 +1,5 @@
[org.gnome.settings-daemon.plugins.power]
sleep-inactive-ac-timeout=0
[org.gnome.settings-daemon.plugins.power]
power-button-action=nothing