ALT Linux repos
Group :: Graphical desktop/GNOME
RPM: gnome-session
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
# This spec is backported to ALTLinux 4.1 automatically by rpmbph script. Do not edit it.
#
%define ver_major 2.22
Name: gnome-session
Version: %ver_major.3
Release: alt0.M41.1
Summary: The gnome session programs for the GNOME GUI desktop environment
License: GPLv2+
Group: Graphical desktop/GNOME
URL: ftp://ftp.gnome.org
Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>
Source: %gnome_ftp/%name/%ver_major/%name-%version.tar.bz2
Source1: gnome-nautilus.png
Source2: gnome.svg
Source3: gnome-wm
Patch: %name-2.13.4-no-crashes.patch
Conflicts: gnome-core <= 2.10.0
# From configure.in
%define glib_ver 2.13.0
%define libgnomeui_ver 2.2.0
%define gtk_ver 2.11.1
%define dbus_glib_ver 0.35
%define gnome_keyring_ver 2.21.92
%define libnotify_ver 0.2.1
PreReq: GConf2
PreReq: xinitrc
# gnome-session-splash is provided by design-graphics package
Requires: gnome-session-splash xsetroot
# These are needed by the startgnome2 script
Requires: gstreamer dbus-tools-gui
Requires: gnome-filesystem gnome-wm
# This is because since 2.15 gnome-session and
# gnome-control-center/gnome-settings-daemon use DBus instead of Bonobo.
Requires: gnome-settings-daemon >= 2.15.90
BuildPreReq: rpm-build-gnome >= 0.5
BuildPreReq: gnome-common
# From configure.in
BuildPreReq: intltool >= 0.35.0
BuildPreReq: glib2-devel >= %glib_ver
BuildPreReq: libgtk+2-devel >= %gtk_ver
BuildPreReq: libgnomeui-devel >= %libgnomeui_ver
BuildPreReq: libgnome-desktop-devel
BuildPreReq: libdbus-glib-devel >= %dbus_glib_ver
BuildPreReq: gnome-settings-daemon-devel
BuildPreReq: libgnome-keyring-devel >= %gnome_keyring_ver
# For gnome-keyring-daemon
BuildPreReq: gnome-keyring >= %gnome_keyring_ver
BuildPreReq: libnotify-devel >= %libnotify_ver
BuildPreReq: libX11-devel libXau-devel libXrandr-devel libXrender-devel libXt-devel libSM-devel
BuildPreReq: libwrap-devel
BuildRequires: gcc-c++
BuildRequires: GConf2 browser-plugins-npapi-devel perl-XML-Parser
BuildRequires: rpm-build-compat >= 0.95
%description
GNOME (GNU Network Object Model Environment) is a user-friendly
set of applications and desktop tools to be used in conjunction with a
window manager for the X Window System.
This package provides tools for the the gnome desktop.
%prep
%setup -q
%patch -p1
# Overwrite gnome-wm script with our version
cp -f %SOURCE3 gnome-session/gnome-wm
%build
%autoreconf
%configure PATH=$PATH:/sbin \
--disable-schemas-install \
--with-window-manager=metacity \
%make_build
%install
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
%make_install install DESTDIR=%buildroot
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
cat <<__START_GNOME__ >startgnome2
#!/bin/sh
# turn on fonts antialiasing
export GDK_USE_XFT=1
# set default browser to whatever GNOME user likes
export BROWSER=gnome-open
# tell restored browsers where plugins are
export MOZ_PLUGIN_PATH="${MOZ_PLUGIN_PATH:+"$MOZ_PLUGIN_PATH:"}${HOME:+"$HOME/.mozilla/plugins:"}%_libdir/mozilla/plugins:%_libdir/netscape/plugins:%browser_plugins_path"
export HELP_BROWSER=yelp
exec %_bindir/gnome-session "\$ at "
__START_GNOME__
install -pD -m755 startgnome2 %buildroot%_bindir/startgnome2
mkdir -p %buildroot%_sysconfdir/X11/wmsession.d/
cat << __EOF__ > %buildroot%_sysconfdir/X11/wmsession.d/02Gnome2
NAME=Gnome
ICON=%_iconsdir/gnome.svg
DESC=Gnome 2 Environment
EXEC=%_bindir/startgnome2
SCRIPT:
exec %_bindir/startgnome2
__EOF__
install -pD -m644 %SOURCE1 %buildroot%_datadir/pixmaps/gnome-nautilus.png
install -pD -m644 %SOURCE2 %buildroot%_iconsdir/gnome.svg
%find_lang --with-gnome %name-2.0
# custom splash
#ln -sf %_datadir/artworks/gnome/splash/gnome-splash.png \
# %buildroot%_pixmapsdir/splash/gnome-splash.png
%post
%gconf2_install %name
%update_wms
%preun
if [ $1 = 0 ]; then
%gconf2_uninstall %name
fi
%postun
%clean_wms
%files -f %name-2.0.lang
%_bindir/*
%_desktopdir/*.desktop
%_datadir/gnome/default.session
%_datadir/xsessions/gnome.desktop
%_pixmapsdir/*
%_iconsdir/gnome.svg
%_iconsdir/hicolor/*/apps/session-properties.*
%config %_sysconfdir/X11/wmsession.d/*Gnome*
%config %gconf_schemasdir/%name.schemas
%_mandir/man?/*
%doc AUTHORS ChangeLog NEWS README
%changelog
…
Full changelog you can see here
#
%define ver_major 2.22
Name: gnome-session
Version: %ver_major.3
Release: alt0.M41.1
Summary: The gnome session programs for the GNOME GUI desktop environment
License: GPLv2+
Group: Graphical desktop/GNOME
URL: ftp://ftp.gnome.org
Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>
Source: %gnome_ftp/%name/%ver_major/%name-%version.tar.bz2
Source1: gnome-nautilus.png
Source2: gnome.svg
Source3: gnome-wm
Patch: %name-2.13.4-no-crashes.patch
Conflicts: gnome-core <= 2.10.0
# From configure.in
%define glib_ver 2.13.0
%define libgnomeui_ver 2.2.0
%define gtk_ver 2.11.1
%define dbus_glib_ver 0.35
%define gnome_keyring_ver 2.21.92
%define libnotify_ver 0.2.1
PreReq: GConf2
PreReq: xinitrc
# gnome-session-splash is provided by design-graphics package
Requires: gnome-session-splash xsetroot
# These are needed by the startgnome2 script
Requires: gstreamer dbus-tools-gui
Requires: gnome-filesystem gnome-wm
# This is because since 2.15 gnome-session and
# gnome-control-center/gnome-settings-daemon use DBus instead of Bonobo.
Requires: gnome-settings-daemon >= 2.15.90
BuildPreReq: rpm-build-gnome >= 0.5
BuildPreReq: gnome-common
# From configure.in
BuildPreReq: intltool >= 0.35.0
BuildPreReq: glib2-devel >= %glib_ver
BuildPreReq: libgtk+2-devel >= %gtk_ver
BuildPreReq: libgnomeui-devel >= %libgnomeui_ver
BuildPreReq: libgnome-desktop-devel
BuildPreReq: libdbus-glib-devel >= %dbus_glib_ver
BuildPreReq: gnome-settings-daemon-devel
BuildPreReq: libgnome-keyring-devel >= %gnome_keyring_ver
# For gnome-keyring-daemon
BuildPreReq: gnome-keyring >= %gnome_keyring_ver
BuildPreReq: libnotify-devel >= %libnotify_ver
BuildPreReq: libX11-devel libXau-devel libXrandr-devel libXrender-devel libXt-devel libSM-devel
BuildPreReq: libwrap-devel
BuildRequires: gcc-c++
BuildRequires: GConf2 browser-plugins-npapi-devel perl-XML-Parser
BuildRequires: rpm-build-compat >= 0.95
%description
GNOME (GNU Network Object Model Environment) is a user-friendly
set of applications and desktop tools to be used in conjunction with a
window manager for the X Window System.
This package provides tools for the the gnome desktop.
%prep
%setup -q
%patch -p1
# Overwrite gnome-wm script with our version
cp -f %SOURCE3 gnome-session/gnome-wm
%build
%autoreconf
%configure PATH=$PATH:/sbin \
--disable-schemas-install \
--with-window-manager=metacity \
%make_build
%install
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
%make_install install DESTDIR=%buildroot
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
cat <<__START_GNOME__ >startgnome2
#!/bin/sh
# turn on fonts antialiasing
export GDK_USE_XFT=1
# set default browser to whatever GNOME user likes
export BROWSER=gnome-open
# tell restored browsers where plugins are
export MOZ_PLUGIN_PATH="${MOZ_PLUGIN_PATH:+"$MOZ_PLUGIN_PATH:"}${HOME:+"$HOME/.mozilla/plugins:"}%_libdir/mozilla/plugins:%_libdir/netscape/plugins:%browser_plugins_path"
export HELP_BROWSER=yelp
exec %_bindir/gnome-session "\$ at "
__START_GNOME__
install -pD -m755 startgnome2 %buildroot%_bindir/startgnome2
mkdir -p %buildroot%_sysconfdir/X11/wmsession.d/
cat << __EOF__ > %buildroot%_sysconfdir/X11/wmsession.d/02Gnome2
NAME=Gnome
ICON=%_iconsdir/gnome.svg
DESC=Gnome 2 Environment
EXEC=%_bindir/startgnome2
SCRIPT:
exec %_bindir/startgnome2
__EOF__
install -pD -m644 %SOURCE1 %buildroot%_datadir/pixmaps/gnome-nautilus.png
install -pD -m644 %SOURCE2 %buildroot%_iconsdir/gnome.svg
%find_lang --with-gnome %name-2.0
# custom splash
#ln -sf %_datadir/artworks/gnome/splash/gnome-splash.png \
# %buildroot%_pixmapsdir/splash/gnome-splash.png
%post
%gconf2_install %name
%update_wms
%preun
if [ $1 = 0 ]; then
%gconf2_uninstall %name
fi
%postun
%clean_wms
%files -f %name-2.0.lang
%_bindir/*
%_desktopdir/*.desktop
%_datadir/gnome/default.session
%_datadir/xsessions/gnome.desktop
%_pixmapsdir/*
%_iconsdir/gnome.svg
%_iconsdir/hicolor/*/apps/session-properties.*
%config %_sysconfdir/X11/wmsession.d/*Gnome*
%config %gconf_schemasdir/%name.schemas
%_mandir/man?/*
%doc AUTHORS ChangeLog NEWS README
%changelog
…
Full changelog you can see here