2006-12-27 12:49:58 +01:00
#
2011-02-21 23:57:49 +01:00
# spec file for package gnome-session
2006-12-27 12:49:58 +01:00
#
2023-03-20 13:50:02 +01:00
# Copyright (c) 2023 SUSE LLC
2006-12-27 12:49:58 +01:00
#
2008-08-14 01:14:49 +02:00
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
2018-09-26 18:42:41 +02:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2006-12-27 12:49:58 +01:00
#
2012-02-08 11:58:34 +01:00
2023-03-20 13:50:02 +01:00
%define basever 44
2022-03-23 12:46:10 +01:00
2006-12-27 12:49:58 +01:00
Name : gnome-session
2023-03-20 17:16:48 +01:00
Version : 44.0
2011-12-21 05:54:04 +01:00
Release : 0
2011-02-13 22:10:18 +01:00
Summary : Session Tools for the GNOME Desktop
2018-02-27 05:00:45 +01:00
License : GPL-2.0-or-later
2009-09-03 16:01:46 +02:00
Group : System/GUI/GNOME
2018-09-24 09:22:58 +02:00
URL : https://www.gnome.org
2023-03-20 13:50:02 +01:00
Source0 : https://download.gnome.org/sources/gnome-session/44/%{name} -%{version} .tar.xz
2006-12-27 12:49:58 +01:00
Source1 : gnome
Source2 : gnome.desktop
2018-03-14 11:00:20 +01:00
# PATCH-FIX-UPSTREAM gnome-session-better-handle-empty-xdg_session_type.patch bsc#1084756 bgo#794256 yfjiang@suse.com -- solution provided by msrb@suse.com using a more reasonable way to handle gpu acceleration check
Patch0 : gnome-session-better-handle-empty-xdg_session_type.patch
2021-08-19 18:08:17 +02:00
# PATCH-FIX-OPENSUSE gnome-session-s390-not-require-g-s-d_wacom.patch bsc#1129412 yfjiang@suse.com -- Remove the runtime requirement of g-s-d Wacom plugin
Patch2 : gnome-session-s390-not-require-g-s-d_wacom.patch
2018-09-24 09:22:58 +02:00
2018-03-09 11:14:39 +01:00
BuildRequires : docbook-xsl-stylesheets
2009-09-03 16:01:46 +02:00
BuildRequires : fdupes
2018-03-09 11:14:39 +01:00
BuildRequires : meson
2017-09-08 22:29:21 +02:00
BuildRequires : pkgconfig
2016-06-15 13:12:22 +02:00
BuildRequires : xsltproc
2016-09-08 23:24:55 +02:00
BuildRequires : pkgconfig(egl)
2016-11-08 09:56:12 +01:00
BuildRequires : pkgconfig(epoxy)
2018-04-13 08:50:43 +02:00
BuildRequires : pkgconfig(gio-2.0) >= 2.46.0
BuildRequires : pkgconfig(gio-unix-2.0) >= 2.46.0
2011-04-25 16:54:04 +02:00
BuildRequires : pkgconfig(gl)
2016-09-08 23:24:55 +02:00
BuildRequires : pkgconfig(glesv2)
2018-04-13 08:50:43 +02:00
BuildRequires : pkgconfig(glib-2.0) >= 2.46.0
2020-10-26 09:12:37 +01:00
BuildRequires : pkgconfig(gnome-desktop-3.0) >= 3.24.2
BuildRequires : pkgconfig(gtk+-3.0) >= 3.22.0
2011-04-25 16:54:04 +02:00
BuildRequires : pkgconfig(ice)
2011-09-02 02:23:36 +02:00
BuildRequires : pkgconfig(json-glib-1.0) >= 0.10
2016-07-13 10:31:23 +02:00
BuildRequires : pkgconfig(libsystemd) >= 209
2011-04-25 16:54:04 +02:00
BuildRequires : pkgconfig(sm)
2020-10-26 09:12:37 +01:00
BuildRequires : pkgconfig(systemd) >= 242
2013-03-13 23:54:20 +01:00
BuildRequires : pkgconfig(x11)
2011-04-25 16:54:04 +02:00
BuildRequires : pkgconfig(xcomposite)
2014-04-03 22:43:20 +02:00
BuildRequires : pkgconfig(xtrans)
2010-05-28 00:23:57 +02:00
Requires : %{name} -core = %{version}
2011-07-02 22:49:59 +02:00
Requires : %{name} -default-session = %{version}
2016-09-14 12:07:30 +02:00
# gnome-session-wayland not recommended by default yet: causes various issues:
# qemu's default video mode is 'cirrus', which stays black with GNOME Wayland
# YaST cannot be started without additional tricks
# All together this blocks us from passing openQA
2017-08-31 09:43:10 +02:00
# Recommends: %%{name}-wayland
2007-01-08 13:58:47 +01:00
2006-12-27 12:49:58 +01:00
%description
This package provides the basic session tools, like session management
2011-02-13 22:10:18 +01:00
functionality, for the GNOME Desktop.
2006-12-27 12:49:58 +01:00
2011-07-02 22:49:59 +02:00
%package default-session
2017-09-09 12:26:44 +02:00
Summary : Default session support for the GNOME Session Manager
2012-02-08 11:58:34 +01:00
Group : System/GUI/GNOME
2011-07-02 22:49:59 +02:00
Requires : %{name} = %{version}
Requires : gnome-settings-daemon
2012-03-21 10:06:46 +01:00
Requires : gnome-shell
2011-07-02 22:49:59 +02:00
%description default-session
This package contains the definition of the default GNOME session.
2013-09-19 21:20:51 +02:00
%package wayland
2017-09-09 12:26:44 +02:00
Summary : Wayland support for the GNOME Session Manager
2013-09-19 21:20:51 +02:00
Group : System/GUI/GNOME
Requires : %{name} = %{version}
Requires : gnome-settings-daemon
2016-03-30 13:45:16 +02:00
Requires : xorg-x11-server-wayland
2013-09-19 21:20:51 +02:00
%description wayland
This package contains the definition of the default GNOME session on Wayland.
2010-05-28 00:23:57 +02:00
%package core
2017-09-09 12:26:44 +02:00
Summary : Minimal version of the GNOME Session Manager
2012-02-08 11:58:34 +01:00
Group : System/GUI/GNOME
2023-05-22 16:08:14 +02:00
Requires : /usr/bin/dbus-launch
2011-04-25 16:54:04 +02:00
Requires : gsettings-desktop-schemas >= 0.1.7
2010-05-28 00:23:57 +02:00
Requires : hicolor-icon-theme
%description core
2011-07-02 22:49:59 +02:00
This package contains a minimal version of gnome-session, that can be
used for specific cases. The gnome-session package is needed for a fully
functional GNOME desktop.
2010-05-28 00:23:57 +02:00
2007-08-09 17:33:40 +02:00
%lang_package
2016-02-19 15:48:43 +01:00
2006-12-27 12:49:58 +01:00
%prep
2021-08-19 18:08:17 +02:00
%setup -q
%patch0 -p1
%ifarch s390 s390x
%patch2 -p1
%endif
2006-12-27 12:49:58 +01:00
%build
2018-03-09 11:14:39 +01:00
%meson \
2023-03-20 13:50:02 +01:00
-D docbook=false \
-D systemd=true \
-D systemd_journal=true \
-D systemduserunitdir=%{_userunitdir} \
%{nil}
2018-03-09 11:14:39 +01:00
%meson_build
2006-12-27 12:49:58 +01:00
%install
2018-03-09 11:14:39 +01:00
%meson_install
2006-12-27 12:49:58 +01:00
# install startup script and xsession file
2009-09-03 16:01:46 +02:00
install -d -m755 %{buildroot} %{_bindir}
2016-02-19 15:48:43 +01:00
install -m755 %{SOURCE1} %{buildroot} %{_bindir} /gnome
2009-09-03 16:01:46 +02:00
install -d -m755 %{buildroot} %{_datadir} /xsessions
2016-02-19 15:48:43 +01:00
install -m644 %{SOURCE2} %{buildroot} %{_datadir} /xsessions/gnome.desktop
2022-03-23 12:46:10 +01:00
%find_lang %{name} -%{basever} %{?no_lang_C}
2017-09-09 12:26:44 +02:00
%fdupes %{buildroot} /%{_prefix}
2017-07-26 21:15:22 +02:00
# remove wayland files on s390/s390x
%ifarch s390 s390x
rm -fr %{buildroot} %{_datadir} /wayland-sessions
%endif
2006-12-27 12:49:58 +01:00
2017-09-21 12:41:15 +02:00
# Prepare for 'default.desktop' being update-alternative handled, boo#1039756
mkdir -p %{buildroot} %{_sysconfdir} /alternatives
touch %{buildroot} %{_sysconfdir} /alternatives/default-xsession.desktop
ln -s %{_sysconfdir} /alternatives/default-xsession.desktop %{buildroot} %{_datadir} /xsessions/default.desktop
2018-02-27 05:00:05 +01:00
%ifnarch s390 s390x
2017-10-20 16:36:09 +02:00
touch %{buildroot} %{_sysconfdir} /alternatives/default-waylandsession.desktop
ln -s %{_sysconfdir} /alternatives/default-waylandsession.desktop %{buildroot} %{_datadir} /wayland-sessions/default.desktop
2018-02-27 05:00:05 +01:00
%endif
2017-09-21 12:41:15 +02:00
%post
%{_sbindir} /update-alternatives --install %{_datadir} /xsessions/default.desktop \
default-xsession.desktop %{_datadir} /xsessions/gnome.desktop 25
%postun
[ -f %{_datadir} /xsessions/gnome.desktop ] || %{_sbindir} /update-alternatives \
--remove default-xsession.desktop %{_datadir} /xsessions/gnome.desktop
2010-05-28 00:23:57 +02:00
%files
%{_bindir} /gnome
2017-09-21 12:41:15 +02:00
%{_datadir} /xsessions/default.desktop
2011-07-02 22:49:59 +02:00
%{_datadir} /xsessions/gnome.desktop
2016-09-08 23:24:55 +02:00
%{_datadir} /xsessions/gnome-xorg.desktop
2017-09-21 12:41:15 +02:00
%ghost %{_sysconfdir} /alternatives/default-xsession.desktop
2011-07-02 22:49:59 +02:00
%files default-session
2011-04-25 16:54:04 +02:00
%{_datadir} /gnome-session/sessions/gnome.session
2013-03-13 23:54:20 +01:00
%{_datadir} /gnome-session/sessions/gnome-dummy.session
2011-04-25 16:54:04 +02:00
2017-07-26 21:15:22 +02:00
%ifnarch s390 s390x
2017-10-20 16:36:09 +02:00
%post wayland
%{_sbindir} /update-alternatives --install %{_datadir} /wayland-sessions/default.desktop \
default-waylandsession.desktop %{_datadir} /wayland-sessions/gnome.desktop 25
%postun wayland
[ -f %{_datadir} /wayland-sessions/gnome.desktop ] || %{_sbindir} /update-alternatives \
--remove default-waylandsession.desktop %{_datadir} /wayland-sessions/gnome.desktop
2013-09-19 21:20:51 +02:00
%files wayland
2013-09-24 22:04:41 +02:00
%dir %{_datadir} /wayland-sessions
2017-10-20 16:36:09 +02:00
%{_datadir} /wayland-sessions/default.desktop
2016-09-08 23:24:55 +02:00
%{_datadir} /wayland-sessions/gnome.desktop
2022-01-12 20:39:31 +01:00
%{_datadir} /wayland-sessions/gnome-wayland.desktop
2017-10-20 16:36:09 +02:00
%ghost %{_sysconfdir} /alternatives/default-waylandsession.desktop
2016-09-08 23:24:55 +02:00
# Disabled as wayland is now the default session again.
#{_datadir}/wayland-sessions/gnome-wayland.desktop
2017-07-26 21:15:22 +02:00
%endif
2013-09-19 21:20:51 +02:00
2011-04-25 16:54:04 +02:00
%files core
2018-02-27 05:01:10 +01:00
%license COPYING
%doc AUTHORS ChangeLog NEWS README
2010-05-28 00:23:57 +02:00
%{_bindir} /gnome-session
2013-03-13 23:54:20 +01:00
%{_bindir} /gnome-session-inhibit
2011-04-25 16:54:04 +02:00
%{_bindir} /gnome-session-quit
%{_datadir} /GConf/gsettings/gnome-session.convert
%{_datadir} /glib-2.0/schemas/org.gnome.SessionManager.gschema.xml
2010-05-28 00:23:57 +02:00
%dir %{_datadir} /gnome-session
2011-04-25 16:54:04 +02:00
%dir %{_datadir} /gnome-session/sessions
2016-02-19 15:48:43 +01:00
%{_mandir} /man1/gnome-session.1%{?ext_man}
%{_mandir} /man1/gnome-session-inhibit.1%{?ext_man}
%{_mandir} /man1/gnome-session-quit.1%{?ext_man}
2015-10-26 11:38:00 +01:00
%{_libexecdir} /gnome-session-binary
2011-10-20 15:29:10 +02:00
# Helper for the session definitions, to know if hardware is accelerated
%{_libexecdir} /gnome-session-check-accelerated
2016-09-08 23:24:55 +02:00
%{_libexecdir} /gnome-session-check-accelerated-gl-helper
%{_libexecdir} /gnome-session-check-accelerated-gles-helper
2019-10-04 17:46:08 +02:00
%{_libexecdir} /gnome-session-ctl
2013-03-13 23:54:20 +01:00
%{_libexecdir} /gnome-session-failed
2011-10-20 15:29:10 +02:00
%{_datadir} /gnome-session/hardware-compatibility
2020-10-26 09:12:37 +01:00
%dir %{_userunitdir} /gnome-launched-.scope.d
%{_userunitdir} /gnome-launched-.scope.d/override.conf
2019-10-04 17:46:08 +02:00
%{_userunitdir} /gnome-session-failed.service
%{_userunitdir} /gnome-session-failed.target
%{_userunitdir} /gnome-session-initialized.target
%{_userunitdir} /gnome-session-manager.target
%{_userunitdir} /gnome-session-manager@.service
%{_userunitdir} /gnome-session-monitor.service
%{_userunitdir} /gnome-session-pre.target
%{_userunitdir} /gnome-session-restart-dbus.service
%{_userunitdir} /gnome-session-shutdown.target
%{_userunitdir} /gnome-session-signal-init.service
%{_userunitdir} /gnome-session-wayland.target
%{_userunitdir} /gnome-session-wayland@.target
2020-10-26 09:12:37 +01:00
%{_userunitdir} /gnome-session-x11-services-ready.target
%{_userunitdir} /gnome-session-x11-services.target
2019-10-04 17:46:08 +02:00
%{_userunitdir} /gnome-session-x11.target
%{_userunitdir} /gnome-session-x11@.target
%{_userunitdir} /gnome-session.target
%{_userunitdir} /gnome-session@.target
2020-10-26 09:12:37 +01:00
%dir %{_userunitdir} /gnome-session@gnome.target.d
%{_userunitdir} /gnome-session@gnome.target.d/gnome.session.conf
2010-01-28 01:01:13 +01:00
2022-03-23 12:46:10 +01:00
%files lang -f %{name}-%{basever}.lang
2008-01-31 02:40:03 +01:00
2007-03-03 12:47:15 +01:00
%changelog