2006-12-27 12:49:58 +01:00
#
2010-11-17 16:04:58 +01:00
# spec file for package gnome-session (Version 2.32.1)
2006-12-27 12:49:58 +01:00
#
2010-02-11 20:31:59 +01:00
# Copyright (c) 2010 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/
#
2008-02-21 01:52:50 +01:00
2006-12-27 12:49:58 +01:00
Name : gnome-session
2010-11-17 16:04:58 +01:00
Version : 2.32.1
2010-10-15 16:45:44 +02:00
Release : 1
2010-01-28 01:01:13 +01:00
License : GPLv2+
2011-02-13 22:10:18 +01:00
Summary : Session Tools for the GNOME Desktop
2008-07-25 00:53:09 +02:00
Url : http://www.gnome.org
2009-09-03 16:01:46 +02:00
Group : System/GUI/GNOME
2007-01-08 13:58:47 +01:00
Source : %{name} -%{version} .tar.bz2
2006-12-27 12:49:58 +01:00
Source1 : gnome
Source2 : gnome.desktop
2008-09-05 02:07:13 +02:00
# Temporarly needed until we get upstream to ship the right icon for suspend
Source7 : gnome-session-sleep.svg
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-03-11 21:41:59 +01:00
# PATCH-NEEDS-REBASE gnome-session-wm-switch.patch bnc180506 danw@novell.com -- Fixes legacy sessions to use gnome-wm instead of metacity/compiz. Legacy sessions are not really supported anymore -- do we need to handle a similar case for current saved sessions, though? (was PATCH-FIX-OPENSUSE)
2008-07-25 00:53:09 +02:00
Patch2 : gnome-session-wm-switch.patch
2008-10-22 17:58:32 +02:00
# PATCH-FIX-UPSTREAM gnome-session-bgo507101-tile-ui.patch bgo507101 vuntz@novell.com -- Tile UI for logout dialog.
2008-09-05 02:07:13 +02:00
Patch3 : gnome-session-bgo507101-tile-ui.patch
2009-07-31 19:35:33 +02:00
# PATCH-FEATURE-OPENSUSE gnome-session-enable-disable-compiz.patch vuntz@novell.com -- Integration with enable-compiz/disable-compiz files generated by ccsm
Patch4 : gnome-session-enable-disable-compiz.patch
2009-09-03 16:01:46 +02:00
BuildRequires : fdupes
2010-01-28 01:01:13 +01:00
BuildRequires : gconf-sanity-check
2009-09-03 16:01:46 +02:00
BuildRequires : gconf2-devel
BuildRequires : gnome-common
BuildRequires : gnome-patch-translation
BuildRequires : gnome-settings-daemon-devel
BuildRequires : hicolor-icon-theme
BuildRequires : intltool
2010-08-06 09:52:56 +02:00
BuildRequires : libupower-glib-devel
2009-09-03 16:01:46 +02:00
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
2010-05-28 00:23:57 +02:00
Requires : %{name} -core = %{version}
2009-08-07 16:52:31 +02:00
# Programs that are in the default session (we use Requires since Recommends
# might make it possible for some people to get an empty gnome-session, and
# give the impression that it's broken)
Requires : gnome-panel
Requires : gnome-settings-daemon
Requires : metacity
Requires : nautilus
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
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
2010-05-28 00:23:57 +02:00
%package core
License : GPLv2+
Summary : Session Manager for GNOME -- Minimal Version
Requires : ConsoleKit
Requires : dbus-1-x11
Requires : gconf-sanity-check
Requires : hicolor-icon-theme
%gconf_schemas_prereq
%description core
This packages contain 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.
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
2010-06-05 12:47:26 +02:00
translation-update-upstream
2008-11-20 15:23:32 +01:00
gnome-patch-translation-prepare
2008-07-25 00:53:09 +02:00
%patch0 -p1
%patch1 -p1
2009-03-11 21:41:59 +01:00
# needs-rebase
#%patch2 -p1
2008-10-22 17:58:32 +02:00
%patch3 -p0
2008-07-25 00:53:09 +02:00
%patch4 -p1
2008-11-20 15:23:32 +01:00
gnome-patch-translation-update
2006-12-27 12:49:58 +01:00
%build
2009-07-31 19:35:33 +02:00
NOCONFIGURE=1 gnome-autogen.sh
2008-10-06 18:06:57 +02:00
%configure \
2010-01-28 01:01:13 +01:00
--with-default-wm=gnome-wm \
--enable-splash
2008-02-08 18:31:56 +01:00
%__make %{?jobs:-j%jobs}
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
install -m644 %{S:7} %{buildroot} %{_datadir} /icons/hicolor/scalable/apps/
2009-02-07 00:55:21 +01:00
%suse_update_desktop_file gnome-wm
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-02-13 22:10:18 +01:00
%find_lang %{name} -2.0 %{?no_lang_C}
2007-01-08 13:58:47 +01:00
%find_gconf_schemas
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
2010-05-28 00:23:57 +02:00
%pre core -f %{name}.schemas_pre
2009-07-31 19:35:33 +02:00
2011-02-13 22:10:18 +01:00
%post core
%icon_theme_cache_post
2010-05-28 00:23:57 +02:00
%posttrans core -f %{name}.schemas_posttrans
2007-01-08 13:58:47 +01:00
2010-05-28 00:23:57 +02:00
%preun core -f %{name}.schemas_preun
2007-01-08 13:58:47 +01:00
2011-02-13 22:10:18 +01:00
%postun core
%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
%{_bindir} /gnome-wm
%{_bindir} /gnome-session-properties
2009-02-07 00:55:21 +01:00
%{_datadir} /applications/*.desktop
2007-01-08 13:58:47 +01:00
%{_datadir} /xsessions/*.desktop
2007-03-12 01:55:48 +01:00
%{_datadir} /icons/hicolor/*/*/*.*
2010-05-28 00:23:57 +02:00
%exclude %{_datadir} /icons/hicolor/scalable/apps/gnome-session-sleep.svg
%{_datadir} /gnome-session/session-properties.ui
%doc %{_mandir} /man1/gnome-session-properties.1*
%doc %{_mandir} /man1/gnome-wm.1*
%files core -f %{name}.schemas_list
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir} /gnome-session
%{_bindir} /gnome-session-save
%dir %{_datadir} /gnome-session
%{_datadir} /gnome-session/gsm-inhibit-dialog.ui
%{_datadir} /icons/hicolor/scalable/apps/gnome-session-sleep.svg
%doc %{_mandir} /man1/gnome-session.1*
%doc %{_mandir} /man1/gnome-session-save.1*
2010-01-28 01:01:13 +01:00
2007-08-09 17:33:40 +02:00
%files lang -f %{name}-2.0.lang
2008-01-31 02:40:03 +01:00
2007-03-03 12:47:15 +01:00
%changelog