ALT Linux repos
Group :: Graphical desktop/GNOME
RPM: gnome-session
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define ver_major 2.16
Name: gnome-session
Version: %ver_major.0
Release: alt3
Summary: The gnome session programs for the GNOME GUI desktop environment
License: LGPL
Group: Graphical desktop/GNOME
Url: ftp://ftp.gnome.org
Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.bz2
Source1: gnome-nautilus.png
Source2: gnome.svg
Patch: %name-2.13.4-no-crashes.patch
Conflicts: gnome-core <= 2.10.0
# From configure.in
%define esound_ver 0.2.26
%define libgnomeui_ver 2.2.0
%define gtk_ver 2.3.1
%define dbus_glib_ver 0.35
%define gnome_keyring_ver 0.5.1
%define libnotify_ver 0.2.1
PreReq: GConf2 scrollkeeper
PreReq: xinitrc
#this require 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
# From configure.in
BuildPreReq: intltool >= 0.35.0
BuildPreReq: esound-devel >= %esound_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-control-center-devel
BuildPreReq: gnome-keyring >= %gnome_keyring_ver
BuildPreReq: libnotify-devel >= %libnotify_ver
BuildPreReq: libX11-devel libXrandr-devel libXrender-devel libXt-devel libwrap-devel
BuildRequires: GConf2 browser-plugins-npapi-devel perl-XML-Parser
%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
%build
%configure PATH=$PATH:/sbin \
--disable-schemas-install \
--disable-scrollkeeper \
--with-rsh-command=rsh
%make_build
%install
%makeinstall
%__cat <<__START_GNOME__ >startgnome2
#!/bin/sh
# turn on fonts antialiasing
export GDK_USE_XFT=1
# choose default browser
for browser in epiphany galeon mozilla; do
if [ -x "%_bindir/\$browser" ]; then
export BROWSER="%_bindir/\$browser"
break
fi
done
# 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
# Metacity is a default window manager
for wm in metacity sawfish sawmill enlightenment icewm wmaker fvwm2 qvwm fvwm twm kwm; do
if [ -x "%_bindir/\$wm" ]; then
export WINDOW_MANAGER="%_bindir/\$wm"
break
fi
done
# update user gstreamer registry
#if [ -x %_bindir/gst-register ]; then
#%_bindir/gst-register --gst-debug-disable >/dev/null 2>&1
#fi
#%_bindir/xsetroot -cursor_name watch
exec %_bindir/dbus-launch %_bindir/gnome-session "\$ at "
#%_bindir/xsetroot -cursor_name X_cursor
__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
# Pre-create autostart directory
mkdir -p %buildroot%_datadir/gnome/autostart
%find_lang --with-gnome %name-2.0
# custom splash
ln -sf %_datadir/artworks/gnome/splash/gnome-splash.png \
%buildroot%_datadir/pixmaps/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/*
%_datadir/applications/*
%dir %_datadir/gnome/autostart
%_datadir/gnome/default.session
%_datadir/gnome/default.wm
%_datadir/pixmaps/*
%_iconsdir/gnome.svg
%config %_sysconfdir/X11/*/*
%config %_sysconfdir/gconf/*/*
%_mandir/man?/*
%doc AUTHORS ChangeLog NEWS README
%changelog
…
Full changelog you can see here
Name: gnome-session
Version: %ver_major.0
Release: alt3
Summary: The gnome session programs for the GNOME GUI desktop environment
License: LGPL
Group: Graphical desktop/GNOME
Url: ftp://ftp.gnome.org
Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.bz2
Source1: gnome-nautilus.png
Source2: gnome.svg
Patch: %name-2.13.4-no-crashes.patch
Conflicts: gnome-core <= 2.10.0
# From configure.in
%define esound_ver 0.2.26
%define libgnomeui_ver 2.2.0
%define gtk_ver 2.3.1
%define dbus_glib_ver 0.35
%define gnome_keyring_ver 0.5.1
%define libnotify_ver 0.2.1
PreReq: GConf2 scrollkeeper
PreReq: xinitrc
#this require 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
# From configure.in
BuildPreReq: intltool >= 0.35.0
BuildPreReq: esound-devel >= %esound_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-control-center-devel
BuildPreReq: gnome-keyring >= %gnome_keyring_ver
BuildPreReq: libnotify-devel >= %libnotify_ver
BuildPreReq: libX11-devel libXrandr-devel libXrender-devel libXt-devel libwrap-devel
BuildRequires: GConf2 browser-plugins-npapi-devel perl-XML-Parser
%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
%build
%configure PATH=$PATH:/sbin \
--disable-schemas-install \
--disable-scrollkeeper \
--with-rsh-command=rsh
%make_build
%install
%makeinstall
%__cat <<__START_GNOME__ >startgnome2
#!/bin/sh
# turn on fonts antialiasing
export GDK_USE_XFT=1
# choose default browser
for browser in epiphany galeon mozilla; do
if [ -x "%_bindir/\$browser" ]; then
export BROWSER="%_bindir/\$browser"
break
fi
done
# 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
# Metacity is a default window manager
for wm in metacity sawfish sawmill enlightenment icewm wmaker fvwm2 qvwm fvwm twm kwm; do
if [ -x "%_bindir/\$wm" ]; then
export WINDOW_MANAGER="%_bindir/\$wm"
break
fi
done
# update user gstreamer registry
#if [ -x %_bindir/gst-register ]; then
#%_bindir/gst-register --gst-debug-disable >/dev/null 2>&1
#fi
#%_bindir/xsetroot -cursor_name watch
exec %_bindir/dbus-launch %_bindir/gnome-session "\$ at "
#%_bindir/xsetroot -cursor_name X_cursor
__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
# Pre-create autostart directory
mkdir -p %buildroot%_datadir/gnome/autostart
%find_lang --with-gnome %name-2.0
# custom splash
ln -sf %_datadir/artworks/gnome/splash/gnome-splash.png \
%buildroot%_datadir/pixmaps/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/*
%_datadir/applications/*
%dir %_datadir/gnome/autostart
%_datadir/gnome/default.session
%_datadir/gnome/default.wm
%_datadir/pixmaps/*
%_iconsdir/gnome.svg
%config %_sysconfdir/X11/*/*
%config %_sysconfdir/gconf/*/*
%_mandir/man?/*
%doc AUTHORS ChangeLog NEWS README
%changelog
…
Full changelog you can see here