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
|
|
|
#
|
2013-03-13 23:54:20 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
2006-12-27 12:49:58 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-02-08 11:58:34 +01:00
|
|
|
|
2012-11-18 16:33:56 +01:00
|
|
|
%define with_systemd 1
|
|
|
|
|
2006-12-27 12:49:58 +01:00
|
|
|
Name: gnome-session
|
2013-07-31 20:56:15 +02:00
|
|
|
Version: 3.9.5
|
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
|
2011-12-21 05:54:04 +01:00
|
|
|
License: GPL-2.0+
|
2009-09-03 16:01:46 +02:00
|
|
|
Group: System/GUI/GNOME
|
2011-12-21 05:54:04 +01:00
|
|
|
Url: http://www.gnome.org
|
2013-07-31 20:56:15 +02:00
|
|
|
Source: http://download.gnome.org/sources/gnome-session/3.9/%{name}-%{version}.tar.xz
|
2006-12-27 12:49:58 +01:00
|
|
|
Source1: gnome
|
|
|
|
Source2: gnome.desktop
|
2008-08-14 01:14:49 +02:00
|
|
|
# PATCH-FIX-UPSTREAM gnome-session-ice-auth-for-suid.patch hpj@novell.com -- Carries ICE auth over to other UIDs in this session using an env var.
|
2008-07-25 00:53:09 +02:00
|
|
|
Patch0: gnome-session-ice-auth-for-suid.patch
|
2008-08-14 01:14:49 +02:00
|
|
|
# PATCH-FIX-UPSTREAM gnome-session-kdm-support.patch hpj@novell.com -- Adds support for KDM logout commands.
|
2008-07-25 00:53:09 +02:00
|
|
|
Patch1: gnome-session-kdm-support.patch
|
2009-09-03 16:01:46 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gnome-common
|
|
|
|
BuildRequires: hicolor-icon-theme
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: tcpd-devel
|
2010-06-05 12:47:26 +02:00
|
|
|
BuildRequires: translation-update-upstream
|
2009-09-03 16:01:46 +02:00
|
|
|
BuildRequires: update-desktop-files
|
2012-09-07 18:45:52 +02:00
|
|
|
BuildRequires: pkgconfig(dbus-glib-1) >= 0.76
|
|
|
|
# Support gconf-based autostart
|
2011-04-25 16:54:04 +02:00
|
|
|
BuildRequires: pkgconfig(gconf-2.0)
|
2013-03-13 23:54:20 +01:00
|
|
|
BuildRequires: pkgconfig(gio-unix-2.0) >= 2.35.0
|
2011-04-25 16:54:04 +02:00
|
|
|
BuildRequires: pkgconfig(gl)
|
2013-03-13 23:54:20 +01:00
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.35.0
|
|
|
|
BuildRequires: pkgconfig(gnome-desktop-3.0) >= 3.7.90
|
2012-09-07 18:45:52 +02:00
|
|
|
BuildRequires: pkgconfig(gtk+-3.0) >= 2.90.7
|
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
|
2012-04-06 17:24:40 +02:00
|
|
|
%if 0%{?suse_version} >= 1220
|
2012-02-08 11:58:34 +01:00
|
|
|
BuildRequires: pkgconfig(libsystemd-daemon)
|
2012-09-07 18:45:52 +02:00
|
|
|
BuildRequires: pkgconfig(libsystemd-login)
|
2012-04-06 17:24:40 +02:00
|
|
|
%endif
|
2011-04-25 16:54:04 +02:00
|
|
|
BuildRequires: pkgconfig(sm)
|
2012-09-07 18:45:52 +02:00
|
|
|
BuildRequires: pkgconfig(upower-glib) >= 0.9.0
|
2013-03-13 23:54:20 +01:00
|
|
|
BuildRequires: pkgconfig(x11)
|
2011-04-25 16:54:04 +02:00
|
|
|
BuildRequires: pkgconfig(xau)
|
|
|
|
BuildRequires: pkgconfig(xcomposite)
|
|
|
|
BuildRequires: pkgconfig(xext)
|
|
|
|
BuildRequires: pkgconfig(xrender)
|
|
|
|
BuildRequires: pkgconfig(xtst)
|
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}
|
2011-02-13 22:10:18 +01:00
|
|
|
Recommends: %{name}-lang
|
2009-09-03 16:01:46 +02:00
|
|
|
Obsoletes: gnome-core
|
2009-07-31 19:35:33 +02:00
|
|
|
# There's no splash anymore, so no branding package.
|
|
|
|
Provides: %{name}-branding = %{version}
|
2010-01-28 01:01:13 +01:00
|
|
|
Obsoletes: %{name}-branding < %{version}
|
2010-08-06 09:52:56 +02:00
|
|
|
# Obsolete helpers that were in subpackages and that have been removed
|
|
|
|
Obsoletes: gnome-session-gtk1-support <= 2.31
|
|
|
|
Obsoletes: gnome-session-splash <= 2.31
|
2013-03-20 19:00:54 +01:00
|
|
|
# the fallback session was dropped in gnome 3.8.
|
|
|
|
Obsoletes: gnome-session-fallback-session < 3.8
|
2013-04-13 18:09:44 +02:00
|
|
|
# Since GNOME 3.8.0, the 'classic' mode is provided by gnome-shell-extensions.
|
|
|
|
Obsoletes: gnome2-look-and-feel <= 3.8.0
|
2009-09-03 16:01:46 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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
|
|
|
|
Summary: Session Manager for GNOME -- Default GNOME Session
|
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.
|
|
|
|
|
2010-05-28 00:23:57 +02:00
|
|
|
%package core
|
|
|
|
Summary: Session Manager for GNOME -- Minimal Version
|
2012-02-08 11:58:34 +01:00
|
|
|
Group: System/GUI/GNOME
|
2012-11-18 16:33:56 +01:00
|
|
|
%if ! %{with_systemd}
|
2010-05-28 00:23:57 +02:00
|
|
|
Requires: ConsoleKit
|
2012-11-18 16:33:56 +01:00
|
|
|
%endif
|
2010-05-28 00:23:57 +02:00
|
|
|
Requires: dbus-1-x11
|
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
|
2011-04-25 16:54:04 +02:00
|
|
|
%glib2_gsettings_schema_requires
|
2010-05-28 00:23:57 +02:00
|
|
|
|
|
|
|
%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
|
2006-12-27 12:49:58 +01:00
|
|
|
%prep
|
2007-01-08 13:58:47 +01:00
|
|
|
%setup -q
|
2013-05-14 20:03:41 +02:00
|
|
|
# Disabled, as it fails
|
|
|
|
#translation-update-upstream
|
2008-07-25 00:53:09 +02:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
2006-12-27 12:49:58 +01:00
|
|
|
|
|
|
|
%build
|
2009-07-31 19:35:33 +02:00
|
|
|
NOCONFIGURE=1 gnome-autogen.sh
|
2011-04-25 16:54:04 +02:00
|
|
|
%configure
|
|
|
|
%__make %{?jobs:-j%jobs} V=1
|
2006-12-27 12:49:58 +01:00
|
|
|
|
|
|
|
%install
|
2008-02-08 18:31:56 +01:00
|
|
|
%makeinstall
|
2010-01-28 01:01:13 +01:00
|
|
|
%if 0%{?suse_version} <= 1110
|
|
|
|
%{__rm} %{buildroot}%{_datadir}/locale/ha/LC_MESSAGES/*
|
|
|
|
%{__rm} %{buildroot}%{_datadir}/locale/ig/LC_MESSAGES/*
|
|
|
|
%endif
|
2010-02-11 20:31:59 +01:00
|
|
|
%if 0%{?suse_version} <= 1120
|
|
|
|
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
|
|
|
|
%endif
|
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}
|
|
|
|
install -m755 %SOURCE1 %{buildroot}%{_bindir}/gnome
|
|
|
|
install -d -m755 %{buildroot}%{_datadir}/xsessions
|
|
|
|
install -m644 %SOURCE2 %{buildroot}%{_datadir}/xsessions/gnome.desktop
|
2010-09-13 12:39:40 +02:00
|
|
|
%suse_update_desktop_file session-properties X-SuSE-ControlCenter-Personal
|
2009-09-03 16:01:46 +02:00
|
|
|
%suse_update_desktop_file %{buildroot}%{_datadir}/xsessions/gnome.desktop
|
2011-04-25 16:54:04 +02:00
|
|
|
%find_lang %{name}-3.0 %{?no_lang_C}
|
2009-09-03 16:01:46 +02:00
|
|
|
%fdupes %{buildroot}
|
2006-12-27 12:49:58 +01:00
|
|
|
|
|
|
|
%clean
|
2009-09-03 16:01:46 +02:00
|
|
|
rm -rf %{buildroot}
|
2006-12-27 12:49:58 +01:00
|
|
|
|
2011-02-13 22:10:18 +01:00
|
|
|
%post
|
|
|
|
%desktop_database_post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
|
|
|
|
%post core
|
2011-04-25 16:54:04 +02:00
|
|
|
%glib2_gsettings_schema_post
|
2011-02-13 22:10:18 +01:00
|
|
|
%icon_theme_cache_post
|
|
|
|
|
|
|
|
%postun core
|
2011-04-25 16:54:04 +02:00
|
|
|
%glib2_gsettings_schema_postun
|
2011-02-13 22:10:18 +01:00
|
|
|
%icon_theme_cache_postun
|
|
|
|
|
2010-05-28 00:23:57 +02:00
|
|
|
%files
|
2006-12-27 12:49:58 +01:00
|
|
|
%defattr (-, root, root)
|
2010-05-28 00:23:57 +02:00
|
|
|
%{_bindir}/gnome
|
2011-07-02 22:49:59 +02:00
|
|
|
%{_datadir}/xsessions/gnome.desktop
|
|
|
|
# gnome-session-properties
|
2010-05-28 00:23:57 +02:00
|
|
|
%{_bindir}/gnome-session-properties
|
2011-07-02 22:49:59 +02:00
|
|
|
%{_datadir}/applications/session-properties.desktop
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/session-properties.*
|
2010-05-28 00:23:57 +02:00
|
|
|
%{_datadir}/gnome-session/session-properties.ui
|
2011-07-02 22:49:59 +02:00
|
|
|
%doc %{_mandir}/man1/gnome-session-properties.1%{?ext_man}
|
|
|
|
|
|
|
|
%files default-session
|
|
|
|
%defattr (-, root, root)
|
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
|
|
|
|
|
|
|
%files core
|
2010-05-28 00:23:57 +02:00
|
|
|
%defattr (-, root, root)
|
|
|
|
%doc AUTHORS COPYING ChangeLog NEWS README
|
|
|
|
%{_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
|
2010-05-28 00:23:57 +02:00
|
|
|
%{_datadir}/gnome-session/gsm-inhibit-dialog.ui
|
2013-03-13 23:54:20 +01:00
|
|
|
%doc %{_mandir}/man1/gnome-session.1%{?ext_man}
|
|
|
|
%doc %{_mandir}/man1/gnome-session-inhibit.1%{?ext_man}
|
|
|
|
%doc %{_mandir}/man1/gnome-session-quit.1%{?ext_man}
|
2011-10-20 15:29:10 +02:00
|
|
|
# Helper for the session definitions, to know if hardware is accelerated
|
|
|
|
%{_libexecdir}/gnome-session-check-accelerated
|
|
|
|
%{_libexecdir}/gnome-session-check-accelerated-helper
|
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
|
2010-01-28 01:01:13 +01:00
|
|
|
|
2011-04-25 16:54:04 +02:00
|
|
|
%files lang -f %{name}-3.0.lang
|
2008-01-31 02:40:03 +01:00
|
|
|
|
2007-03-03 12:47:15 +01:00
|
|
|
%changelog
|