gnome-session/gnome-session.spec

178 lines
6.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package gnome-session (Version 2.29.92)
#
# Copyright (c) 2010 SUSE LINUX Products 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: 2.29.92
Release: 1
License: GPLv2+
Summary: Session Tools for the GNOME 2.x Desktop
Url: http://www.gnome.org
Group: System/GUI/GNOME
Source: %{name}-%{version}.tar.bz2
Source1: gnome
Source2: gnome.desktop
# Temporarly needed until we get upstream to ship the right icon for suspend
Source7: gnome-session-sleep.svg
# 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.
Patch0: gnome-session-ice-auth-for-suid.patch
# PATCH-FIX-UPSTREAM gnome-session-kdm-support.patch hpj@novell.com -- Adds support for KDM logout commands.
Patch1: gnome-session-kdm-support.patch
# 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)
Patch2: gnome-session-wm-switch.patch
# PATCH-FIX-UPSTREAM gnome-session-bgo507101-tile-ui.patch bgo507101 vuntz@novell.com -- Tile UI for logout dialog.
Patch3: gnome-session-bgo507101-tile-ui.patch
# 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
BuildRequires: DeviceKit-power-devel
BuildRequires: fdupes
BuildRequires: gconf-sanity-check
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
Requires: dbus-1-x11
Requires: gconf-sanity-check
Requires: hicolor-icon-theme
# 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
Obsoletes: gnome-core
# There's no splash anymore, so no branding package.
Provides: %{name}-branding = %{version}
Obsoletes: %{name}-branding < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq
%description
This package provides the basic session tools, like session management
functionality, for the GNOME 2.x Desktop.
%package gtk1-support
License: GPLv2+
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: GPLv2+
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.
%lang_package
%prep
%setup -q
gnome-patch-translation-prepare
%patch0 -p1
%patch1 -p1
# needs-rebase
#%patch2 -p1
%patch3 -p0
%patch4 -p1
gnome-patch-translation-update
%build
NOCONFIGURE=1 gnome-autogen.sh
%configure \
--with-default-wm=gnome-wm \
--enable-splash
%__make %{?jobs:-j%jobs}
%install
%makeinstall
%if 0%{?suse_version} <= 1110
%{__rm} %{buildroot}%{_datadir}/locale/ha/LC_MESSAGES/*
%{__rm} %{buildroot}%{_datadir}/locale/ig/LC_MESSAGES/*
%endif
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
# 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
install -m644 %{S:7} %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/
%suse_update_desktop_file gnome-session-splash
%suse_update_desktop_file gnome-settings-daemon-helper
%suse_update_desktop_file gnome-wm
%suse_update_desktop_file session-properties X-SuSE-ControlCenter-System
%suse_update_desktop_file %{buildroot}%{_datadir}/xsessions/gnome.desktop
%find_lang %{name}-2.0
%find_gconf_schemas
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%pre -f %{name}.schemas_pre
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%files -f %{name}.schemas_list
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/*
%{_libexecdir}/gnome-session
%{_datadir}/gnome-session
%{_datadir}/applications/*.desktop
%{_datadir}/xsessions/*.desktop
%{_datadir}/icons/hicolor/*/*/*.*
%doc %{_mandir}/man?/*.*
# Exclude files shipped in other subpackages
%exclude %{_libexecdir}/gnome-session/helpers/gnome-settings-daemon-helper
%exclude %{_libexecdir}/gnome-session/helpers/gnome-session-splash
%files gtk1-support
%defattr (-, root, root)
%{_sysconfdir}/xdg/autostart/gnome-settings-daemon-helper.desktop
%{_libexecdir}/gnome-session/helpers/gnome-settings-daemon-helper
%files splash
%defattr (-, root, root)
%{_sysconfdir}/xdg/autostart/gnome-session-splash.desktop
%{_libexecdir}/gnome-session/helpers/gnome-session-splash
%dir %{_datadir}/pixmaps/splash
%{_datadir}/pixmaps/splash/gnome-splash.png
%files lang -f %{name}-2.0.lang
%changelog