Conditionalize Xorg session

Resolves: https://issues.redhat.com/browse/RHEL-45697
This commit is contained in:
Florian Müllner 2024-07-01 16:23:14 +02:00
parent bb2ddefbdc
commit 5094036472

View File

@ -5,6 +5,12 @@
%global tarball_version %%(echo %{version} | tr '~' '.')
%global major_version %%(cut -d "." -f 1 <<<%{tarball_version})
%if 0%{?rhel}
%global xsession 0
%else
%global xsession 1
%endif
Name: gnome-shell-extensions
Version: 46.2
Release: %autorelease
@ -111,6 +117,7 @@ This package contains the required components for the GNOME Shell "classic"
mode, which aims to provide a GNOME 2-like user interface.
%if %{xsession}
%package -n gnome-classic-session-xsession
Summary: GNOME "classic" mode session on X11
License: GPL-2.0-or-later
@ -121,6 +128,7 @@ Provides: deprecated()
%description -n gnome-classic-session-xsession
This package contains the required components for the GNOME Shell "classic"
mode on X11, which aims to provide a GNOME 2-like user interface.
%endif
%package -n %{pkg_prefix}-apps-menu
@ -315,6 +323,10 @@ workspaces.
%find_lang %{name}
%if !%{xsession}
rm -rf %{buildroot}/%{_datadir}/xsessions
%endif
%files -n %{pkg_prefix}-common -f %{name}.lang
%doc NEWS README.md
@ -328,9 +340,11 @@ workspaces.
%{_datadir}/glib-2.0/schemas/00_org.gnome.shell.extensions.classic.gschema.override
%if %{xsession}
%files -n gnome-classic-session-xsession
%{_datadir}/xsessions/gnome-classic.desktop
%{_datadir}/xsessions/gnome-classic-xorg.desktop
%endif
%files -n %{pkg_prefix}-apps-menu