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.10
Name: gnome-session
Version: %ver_major.0
Release: alt1
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
%define libgnomecanvas_ver 2.10.0
%define libgnomeui_ver 2.10.0
%define scrollkeeper_ver 0.3.14
%define GConf_ver 2.10.0
%define metacity_ver 2.10.0
%define esound_ver 0.2.34
%define gnome_keyring_ver 0.4.2
PreReq: GConf2 >= %GConf_ver scrollkeeper >= %scrollkeeper_ver
PreReq: xinitrc
# Requires: metacity >= %metacity_ver
Requires: gnome-wm
#this require provided by design-graphics package
Requires: gnome-session-splash
Requires: libgnomecanvas >= %libgnomecanvas_ver
Requires: libgnomeui >= %libgnomeui_ver
Requires: gnome-keyring >= %gnome_keyring_ver
Requires: librsvg2
BuildPreReq: menu-devel
BuildPreReq: GConf2 >= %GConf_ver
BuildPreReq: libgnomecanvas-devel >= %libgnomecanvas_ver
BuildPreReq: libgnomeui-devel >= %libgnomeui_ver
BuildPreReq: libGConf2-devel >= %GConf_ver
BuildPreReq: esound-devel >= %esound_ver
Conflicts: gnome-core
# Automatically added by buildreq on Sun Feb 06 2005
BuildRequires: GConf2 ORBit2-devel XFree86-devel-static XFree86-libs XFree86-utils esound-devel fontconfig freetype2 gcc-c++ gcc-g77 glib2-devel gnome-vfs2-devel libGConf2-devel libart_lgpl-devel libatk-devel libaudiofile-devel libbonobo2-devel libbonoboui-devel libgnome-devel libgnome-keyring libgnomecanvas-devel libgnomeui-devel libgtk+2-devel libpango-devel libpopt-devel libstdc++-devel libwrap-devel libxml2-devel perl-XML-Parser pkgconfig
%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. GNOME is similar in purpose and
scope to CDE and KDE, but GNOME is based completely on free
software. The gnome-core package includes the basic programs and
libraries that are needed to install GNOME.
GNOME session provides the session tools for the the gnome desktop.
%prep
%setup -q
# This hack force configure to use libwrap.
%__subst 's,libwrap.a,libwrap.so,' configure
%build
export ac_cv_path_RSH_COMMAND=/usr/bin/rsh
export ac_cv_path_ESD_SERVER=/usr/bin/esd
export ac_cv_path_GNOME_KEYRING_DAEMON=/usr/bin/gnome-keyring-daemon
%configure PATH=$PATH:/sbin \
--disable-schemas-install \
--with-window-manager=metacity
%make_build
%install
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
export OMF_DIR=%buildroot%_var/lib/scrollkeeper
%makeinstall
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
unset OMF_DIR
%__cat <<__START_GNOME__ >startgnome2
#!/bin/sh
# turn on fonts antialiasing
export GDK_USE_XFT=1
# choose default browser
for browser in epiphany galeon; do
if [ -x "/usr/bin/\$browser" ]; then
export BROWSER="/usr/bin/\$browser"
break
fi
done
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 "/usr/bin/\$wm" ]; then
export WINDOW_MANAGER="/usr/bin/\$wm"
break
fi
done
# update user gstreamer registry
if [ -x /usr/bin/gst-register ]; then
/usr/bin/gst-register --gst-debug-disable >/dev/null 2>&1
fi
/usr/X11R6/bin/xsetroot -cursor_name watch
exec /usr/bin/gnome-session "\$ at "
/usr/X11R6/bin/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
%find_lang --with-gnome %name-2.0
# custom splash
%__rm -rf %buildroot%_datadir/pixmaps/splash/gnome-splash.png
%__ln_s %_datadir/artworks/gnome/splash/gnome-splash.png \
%buildroot%_datadir/pixmaps/splash/gnome-splash.png
# menu
%__mkdir_p %buildroot%_menudir
freedesktop2menu.pl %name "Configuration/Gnome" \
%buildroot%_datadir/applications/session-properties.desktop \
%buildroot%_menudir/%name
%post
%gconf2_install %name
%update_menus
%update_wms
%preun
if [ $1 = 0 ]; then
%gconf2_uninstall %name
fi
%postun
%clean_menus
%clean_wms
%files -f %name-2.0.lang
%_bindir/*
%_datadir/applications/*
%_datadir/gnome/*
%_datadir/pixmaps/*
%_iconsdir/gnome.svg
%_menudir/*
%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: alt1
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
%define libgnomecanvas_ver 2.10.0
%define libgnomeui_ver 2.10.0
%define scrollkeeper_ver 0.3.14
%define GConf_ver 2.10.0
%define metacity_ver 2.10.0
%define esound_ver 0.2.34
%define gnome_keyring_ver 0.4.2
PreReq: GConf2 >= %GConf_ver scrollkeeper >= %scrollkeeper_ver
PreReq: xinitrc
# Requires: metacity >= %metacity_ver
Requires: gnome-wm
#this require provided by design-graphics package
Requires: gnome-session-splash
Requires: libgnomecanvas >= %libgnomecanvas_ver
Requires: libgnomeui >= %libgnomeui_ver
Requires: gnome-keyring >= %gnome_keyring_ver
Requires: librsvg2
BuildPreReq: menu-devel
BuildPreReq: GConf2 >= %GConf_ver
BuildPreReq: libgnomecanvas-devel >= %libgnomecanvas_ver
BuildPreReq: libgnomeui-devel >= %libgnomeui_ver
BuildPreReq: libGConf2-devel >= %GConf_ver
BuildPreReq: esound-devel >= %esound_ver
Conflicts: gnome-core
# Automatically added by buildreq on Sun Feb 06 2005
BuildRequires: GConf2 ORBit2-devel XFree86-devel-static XFree86-libs XFree86-utils esound-devel fontconfig freetype2 gcc-c++ gcc-g77 glib2-devel gnome-vfs2-devel libGConf2-devel libart_lgpl-devel libatk-devel libaudiofile-devel libbonobo2-devel libbonoboui-devel libgnome-devel libgnome-keyring libgnomecanvas-devel libgnomeui-devel libgtk+2-devel libpango-devel libpopt-devel libstdc++-devel libwrap-devel libxml2-devel perl-XML-Parser pkgconfig
%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. GNOME is similar in purpose and
scope to CDE and KDE, but GNOME is based completely on free
software. The gnome-core package includes the basic programs and
libraries that are needed to install GNOME.
GNOME session provides the session tools for the the gnome desktop.
%prep
%setup -q
# This hack force configure to use libwrap.
%__subst 's,libwrap.a,libwrap.so,' configure
%build
export ac_cv_path_RSH_COMMAND=/usr/bin/rsh
export ac_cv_path_ESD_SERVER=/usr/bin/esd
export ac_cv_path_GNOME_KEYRING_DAEMON=/usr/bin/gnome-keyring-daemon
%configure PATH=$PATH:/sbin \
--disable-schemas-install \
--with-window-manager=metacity
%make_build
%install
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
export OMF_DIR=%buildroot%_var/lib/scrollkeeper
%makeinstall
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
unset OMF_DIR
%__cat <<__START_GNOME__ >startgnome2
#!/bin/sh
# turn on fonts antialiasing
export GDK_USE_XFT=1
# choose default browser
for browser in epiphany galeon; do
if [ -x "/usr/bin/\$browser" ]; then
export BROWSER="/usr/bin/\$browser"
break
fi
done
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 "/usr/bin/\$wm" ]; then
export WINDOW_MANAGER="/usr/bin/\$wm"
break
fi
done
# update user gstreamer registry
if [ -x /usr/bin/gst-register ]; then
/usr/bin/gst-register --gst-debug-disable >/dev/null 2>&1
fi
/usr/X11R6/bin/xsetroot -cursor_name watch
exec /usr/bin/gnome-session "\$ at "
/usr/X11R6/bin/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
%find_lang --with-gnome %name-2.0
# custom splash
%__rm -rf %buildroot%_datadir/pixmaps/splash/gnome-splash.png
%__ln_s %_datadir/artworks/gnome/splash/gnome-splash.png \
%buildroot%_datadir/pixmaps/splash/gnome-splash.png
# menu
%__mkdir_p %buildroot%_menudir
freedesktop2menu.pl %name "Configuration/Gnome" \
%buildroot%_datadir/applications/session-properties.desktop \
%buildroot%_menudir/%name
%post
%gconf2_install %name
%update_menus
%update_wms
%preun
if [ $1 = 0 ]; then
%gconf2_uninstall %name
fi
%postun
%clean_menus
%clean_wms
%files -f %name-2.0.lang
%_bindir/*
%_datadir/applications/*
%_datadir/gnome/*
%_datadir/pixmaps/*
%_iconsdir/gnome.svg
%_menudir/*
%config %_sysconfdir/X11/*/*
%config %_sysconfdir/gconf/*/*
%_mandir/man?/*
%doc AUTHORS ChangeLog NEWS README
%changelog
…
Full changelog you can see here