File gnome-session.spec of Package gnome-session
#
# spec file for package gnome-session (Version 2.24.1)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: gnome-session
BuildRequires: PolicyKit-gnome-devel
BuildRequires: control-center2-devel
BuildRequires: fdupes
BuildRequires: gnome-common
BuildRequires: gnome-desktop-devel
BuildRequires: gnome-keyring-devel
BuildRequires: gnome-patch-translation
BuildRequires: gnome-settings-daemon-devel
BuildRequires: hicolor-icon-theme
BuildRequires: intltool
BuildRequires: libglade2-devel
BuildRequires: libgnomekbd
BuildRequires: perl-XML-Parser
BuildRequires: tcpd-devel
BuildRequires: update-desktop-files
License: GPL v2 or later; LGPL v2.1 or later
Group: System/GUI/GNOME
Version: 2.24.1
Release: 6.<RELEASE4>
Summary: Session Tools for the GNOME 2.x Desktop
Url: http://www.gnome.org
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-FIX-OPENSUSE gnome-session-wm-switch.patch bnc180506 danw@novell.com -- Fixes legacy sessions to use gnome-wm instead of metacity/compiz.
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-gnome-wm-compiz-manager.patch vuntz@novell.com -- Launch compiz-manager when configured.
Patch4: gnome-session-gnome-wm-compiz-manager.patch
# PATCH-FIX-OPENSUSE gnome-session-bnc389137-splash-layout.patch bnc389137 vuntz@novell.com -- Improve layout with our splash screen.
Patch5: gnome-session-bnc389137-splash-layout.patch
# PATCH-FEATURE-OPENSUSE gnome-session-compiz-as-default-wm.patch fate304762 rodrigo@novell.com -- Run compiz as default WM whenever possible
Patch6: gnome-session-compiz-as-default-wm.patch
# PATCH-FIX-UPSTREAM gnome-session-bnc486788-ice-shutdown.patch bnc486788 vuntz@novell.com -- Patch taken from upstream to fix a bad bug where gnome-session would use all resources
Patch7: gnome-session-bnc486788-ice-shutdown.patch
Patch8: bug-479060-gnome-wm.diff
Patch9: gnome-session-honor-lockdown.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Recommends: control-center2
Obsoletes: gnome-core
Requires: hicolor-icon-theme
Requires: %{name}-branding
Requires: %{name}-lang = %{version}
Suggests: rsh
# bug-buddy is required for GTK_MODULES=gnomebreakpad:
Requires: bug-buddy
%ifarch x86_64 s390x
Recommends: bug-buddy-32bit
%endif
%gconf_schemas_prereq
%description
This package provides the basic session tools, like session management
functionality, for the GNOME 2.x Desktop.
Authors:
--------
Tom Tromey <tromey@cygnus.com>
Felix Bellaby <felix@pooh.u-net.com>
Ralph Mor, X Consortium
%package branding-upstream
License: GPL v2 or later; LGPL v2.1 or later
Summary: Session Tools for the GNOME 2.x Desktop
Group: System/GUI/GNOME
Provides: %{name}-branding = %{version}
Conflicts: otherproviders(%{name}-branding)
Supplements: packageand(%{name}:branding-upstream)
#BRAND: gnome-splash.png: Splash screen. Bottom 70 pixels are used for
#BRAND: "just starting" icons. This area is bright in the original
#BRAND: branding. Must be png or change system gconf key
#BRAND: /apps/gnome-session/options/splash_image
#BRAND: Upstream uses 420x293 pixels in GNOME 2.20.
%description branding-upstream
This package provides the basic session tools, like session management
functionality, for the GNOME 2.x Desktop.
Authors:
--------
Tom Tromey <tromey@cygnus.com>
Felix Bellaby <felix@pooh.u-net.com>
Ralph Mor, X Consortium
%lang_package
%prep
%setup -q
gnome-patch-translation-prepare
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p0
%patch4 -p1
%patch5 -p1
%patch6 -p0
%patch7 -p2
%patch8 -p1
%patch9 -p1
gnome-patch-translation-update
%build
autoreconf -f -i
# needed for gnome-session--2.17.91:
#export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure \
--with-rsh-command=/usr/bin/rsh \
--with-at-spi-registryd-directory=%{_prefix}/lib/at-spi
%__make %{?jobs:-j%jobs}
%install
%makeinstall
#
# install startup script and xsession file
install -d -m755 $RPM_BUILD_ROOT%{_bindir}
install -m755 %SOURCE1 $RPM_BUILD_ROOT%{_bindir}/gnome
install -d -m755 $RPM_BUILD_ROOT%{_datadir}/xsessions
install -m644 %SOURCE2 $RPM_BUILD_ROOT%{_datadir}/xsessions/gnome.desktop
install -m644 %{S:7} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/
%suse_update_desktop_file -n gnome-wm
%suse_update_desktop_file session-properties X-SuSE-ControlCenter-System
%suse_update_desktop_file $RPM_BUILD_ROOT%{_datadir}/xsessions/gnome.desktop
%find_lang %{name}-2.0
%find_gconf_schemas
cat %{name}.schemas_list >%{name}.lst
%fdupes $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%pre -f %{name}.schemas_pre
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%files -f %{name}.lst
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%dir %{_libdir}/gnome-session
%dir %{_libdir}/gnome-session/helpers
%dir %{_datadir}/gnome-session
%{_bindir}/*
%{_datadir}/applications/gnome-wm.desktop
%{_datadir}/applications/session-properties.desktop
%{_datadir}/xsessions/*.desktop
%{_datadir}/icons/hicolor/*/*/*.*
%{_datadir}/gnome/autostart/*
%{_datadir}/gnome-session/*.glade
%{_libdir}/gnome-session/helpers/*
%dir %{_datadir}/pixmaps/splash
%if %suse_version <= 1020
%dir %{_datadir}/xsessions
%endif
%doc %{_mandir}/man?/*.*
%files branding-upstream
%defattr (-, root, root)
%{_datadir}/pixmaps/splash/gnome-splash.png
%files lang -f %{name}-2.0.lang
%changelog