2006-12-27 12:49:58 +01:00
#
2009-10-06 01:32:08 +02:00
# spec file for package gnome-session (Version 2.28.0)
2006-12-27 12:49:58 +01:00
#
2009-02-07 00:55:21 +01:00
# Copyright (c) 2009 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
2009-10-06 01:32:08 +02:00
Version : 2.28.0
2009-10-12 20:53:51 +02:00
Release : 2
2009-12-01 16:11:19 +01:00
License : GPL v2 or later
2006-12-27 12:49:58 +01:00
Summary : Session Tools for the GNOME 2.x 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-10-12 20:53:51 +02:00
# PATCH-FIX-UPSTREAM gnome-session-fix-capplet-saving.patch vuntz@opensuse.org -- Fix from upstream
Patch5 : gnome-session-fix-capplet-saving.patch
2009-09-03 16:01:46 +02:00
BuildRequires : DeviceKit-power-devel
BuildRequires : fdupes
BuildRequires : gconf2-devel
BuildRequires : gnome-common
BuildRequires : gnome-patch-translation
BuildRequires : gnome-settings-daemon-devel
BuildRequires : hicolor-icon-theme
BuildRequires : intltool
BuildRequires : tcpd-devel
BuildRequires : update-desktop-files
Requires : %{name} -lang = %{version}
Requires : ConsoleKit
2009-03-02 01:32:23 +01:00
Requires : dbus-1-x11
2007-03-12 01:55:48 +01:00
Requires : hicolor-icon-theme
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
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}
2009-12-01 16:11:19 +01:00
Obsoletes : %{name} -branding < %{version}
2009-09-03 16:01:46 +02:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2007-01-08 13:58:47 +01:00
%gconf_schemas_prereq
2006-12-27 12:49:58 +01:00
%description
This package provides the basic session tools, like session management
functionality, for the GNOME 2.x Desktop.
2009-12-01 16:11:19 +01:00
%package gtk1-support
License : GPL v2 or later
Summary : GTK+ 1.x compatibility layer for gnome-session
Requires : %{name} = %{version}
Supplements: packageand(gnome-session:gtk)
%description gtk1-support
This helper makes GTK+ 1.x applications feel more integrated in
modern GNOME desktops, by setting the GTK_RC_FILES environment
variable during the GNOME session initialization.
%package splash
License : GPL v2 or later
Summary : Splash screen for gnome-session
Requires : %{name} = %{version}
%description splash
The splash screen is displayed to indicate that the GNOME session
is loading. It is not installed by default because the GNOME
session is considered to start fast enough.
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
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
2009-10-12 20:53:51 +02:00
%patch5 -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 \
2009-12-01 16:11:19 +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
2009-12-03 02:50:51 +01:00
%if 0%{?suse_version} <= 1110
%{__rm} %{buildroot} %{_datadir} /locale/ha/LC_MESSAGES/*
%{__rm} %{buildroot} %{_datadir} /locale/ig/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-12-01 16:11:19 +01:00
%suse_update_desktop_file gnome-session-splash
2009-02-07 00:55:21 +01:00
%suse_update_desktop_file gnome-settings-daemon-helper
%suse_update_desktop_file gnome-wm
2006-12-27 12:49:58 +01:00
%suse_update_desktop_file session-properties X-SuSE-ControlCenter-System
2009-09-03 16:01:46 +02:00
%suse_update_desktop_file %{buildroot} %{_datadir} /xsessions/gnome.desktop
2006-12-27 12:49:58 +01:00
%find_lang %{name} -2.0
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
2007-01-08 13:58:47 +01:00
%pre -f %{name}.schemas_pre
2009-07-31 19:35:33 +02:00
2007-01-08 13:58:47 +01:00
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
2009-12-01 16:11:19 +01:00
%files -f %{name}.schemas_list
2006-12-27 12:49:58 +01:00
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
2007-01-08 13:58:47 +01:00
%{_bindir} /*
2009-02-07 00:55:21 +01:00
%{_libdir} /gnome-session
%{_datadir} /gnome-session
%{_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/*/*/*.*
2008-03-10 18:45:34 +01:00
%doc %{_mandir} /man?/*.*
2009-12-01 16:11:19 +01:00
# Exclude files shipped in other subpackages
%exclude %{_libdir} /gnome-session/helpers/gnome-settings-daemon-helper
%exclude %{_libdir} /gnome-session/helpers/gnome-session-splash
%files gtk1-support
%defattr (-, root, root)
%{_sysconfdir} /xdg/autostart/gnome-settings-daemon-helper.desktop
%{_libdir} /gnome-session/helpers/gnome-settings-daemon-helper
%files splash
%defattr (-, root, root)
%{_sysconfdir} /xdg/autostart/gnome-session-splash.desktop
%{_libdir} /gnome-session/helpers/gnome-session-splash
%dir %{_datadir} /pixmaps/splash
%{_datadir} /pixmaps/splash/gnome-splash.png
2008-03-10 18:45:34 +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