# # spec file for package gnome-session # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # 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. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: gnome-session Version: 3.26.1 Release: 0 Summary: Session Tools for the GNOME Desktop License: GPL-2.0+ Group: System/GUI/GNOME Url: http://www.gnome.org Source: http://download.gnome.org/sources/gnome-session/3.26/%{name}-%{version}.tar.xz Source1: gnome Source2: gnome.desktop # PATCH-FEATURE-UPSTREAM gnome-session-logging-to-systemd-journal-configurable.patch bsc#876685 bgo#768982 fezhang@suse.com -- Add a new configure switch for systemd journal support. Patch0: gnome-session-logging-to-systemd-journal-configurable.patch BuildRequires: fdupes BuildRequires: intltool BuildRequires: pkgconfig BuildRequires: tcpd-devel BuildRequires: update-desktop-files BuildRequires: xsltproc BuildRequires: pkgconfig(dbus-glib-1) >= 0.76 BuildRequires: pkgconfig(egl) BuildRequires: pkgconfig(epoxy) BuildRequires: pkgconfig(gio-unix-2.0) >= 2.35.0 BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(glesv2) BuildRequires: pkgconfig(glib-2.0) >= 2.35.0 BuildRequires: pkgconfig(gnome-desktop-3.0) >= 3.9.91 BuildRequires: pkgconfig(gtk+-3.0) >= 2.90.7 BuildRequires: pkgconfig(ice) BuildRequires: pkgconfig(json-glib-1.0) >= 0.10 BuildRequires: pkgconfig(libsystemd) >= 209 BuildRequires: pkgconfig(sm) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xau) BuildRequires: pkgconfig(xcomposite) BuildRequires: pkgconfig(xext) BuildRequires: pkgconfig(xrender) BuildRequires: pkgconfig(xtrans) BuildRequires: pkgconfig(xtst) Requires: %{name}-core = %{version} Requires: %{name}-default-session = %{version} Recommends: %{name}-lang %if !0%{?is_opensuse} BuildRequires: translation-update-upstream %endif # 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 # Recommends: %%{name}-wayland %description This package provides the basic session tools, like session management functionality, for the GNOME Desktop. %package default-session Summary: Default session support for the GNOME Session Manager Group: System/GUI/GNOME Requires: %{name} = %{version} Requires: gnome-settings-daemon Requires: gnome-shell %description default-session This package contains the definition of the default GNOME session. %package wayland Summary: Wayland support for the GNOME Session Manager Group: System/GUI/GNOME Requires: %{name} = %{version} Requires: gnome-settings-daemon Requires: xorg-x11-server-wayland %description wayland This package contains the definition of the default GNOME session on Wayland. %package core Summary: Minimal version of the GNOME Session Manager Group: System/GUI/GNOME Requires: dbus-1-x11 Requires: gsettings-desktop-schemas >= 0.1.7 Requires: hicolor-icon-theme %glib2_gsettings_schema_requires %description core 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. %lang_package %prep %setup -q %patch0 -p1 %if !0%{?is_opensuse} translation-update-upstream %endif %build %configure \ --enable-systemd \ %if !0%{?is_opensuse} --disable-systemd-journal \ %endif --disable-gconf make %{?_smp_mflags} %install make DESTDIR=%{buildroot} install %{?_smp_mflags} # install startup script and xsession file install -d -m755 %{buildroot}%{_bindir} install -m755 %{SOURCE1} %{buildroot}%{_bindir}/gnome install -d -m755 %{buildroot}%{_datadir}/xsessions install -m644 %{SOURCE2} %{buildroot}%{_datadir}/xsessions/gnome.desktop %suse_update_desktop_file %{buildroot}%{_datadir}/xsessions/gnome.desktop %find_lang %{name}-3.0 %{?no_lang_C} %fdupes %{buildroot}/%{_prefix} # remove wayland files on s390/s390x %ifarch s390 s390x rm -fr %{buildroot}%{_datadir}/wayland-sessions %endif # 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 %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 %files %defattr (-, root, root) %{_bindir}/gnome %{_datadir}/xsessions/default.desktop %{_datadir}/xsessions/gnome.desktop %{_datadir}/xsessions/gnome-xorg.desktop %ghost %{_sysconfdir}/alternatives/default-xsession.desktop %files default-session %defattr (-, root, root) %{_datadir}/gnome-session/sessions/gnome.session %{_datadir}/gnome-session/sessions/gnome-dummy.session %ifnarch s390 s390x %files wayland %defattr (-, root, root) %dir %{_datadir}/wayland-sessions %{_datadir}/wayland-sessions/gnome.desktop # Disabled as wayland is now the default session again. #{_datadir}/wayland-sessions/gnome-wayland.desktop %endif %files core %defattr (-, root, root) %doc AUTHORS COPYING ChangeLog NEWS README %{_bindir}/gnome-session %{_bindir}/gnome-session-inhibit %{_bindir}/gnome-session-quit %{_datadir}/GConf/gsettings/gnome-session.convert %{_datadir}/glib-2.0/schemas/org.gnome.SessionManager.gschema.xml %dir %{_datadir}/gnome-session %dir %{_datadir}/gnome-session/sessions %{_mandir}/man1/gnome-session.1%{?ext_man} %{_mandir}/man1/gnome-session-inhibit.1%{?ext_man} %{_mandir}/man1/gnome-session-quit.1%{?ext_man} %{_libexecdir}/gnome-session-binary # Helper for the session definitions, to know if hardware is accelerated %{_libexecdir}/gnome-session-check-accelerated %{_libexecdir}/gnome-session-check-accelerated-gl-helper %{_libexecdir}/gnome-session-check-accelerated-gles-helper %{_libexecdir}/gnome-session-failed %{_datadir}/gnome-session/hardware-compatibility %files lang -f %{name}-3.0.lang %defattr(-,root,root) %changelog