Репозитории ALT
S: | 45.0-alt1 |
5.1: | 2.26.2-alt5 |
4.1: | 2.22.3-alt0.M41.1 |
4.0: | 2.16.0-alt3 |
3.0: | 2.10.0-alt1 |
Группа :: Графические оболочки/GNOME
Пакет: gnome-session
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define ver_major 2.26
%define _libexecdir /usr/libexec
Name: gnome-session
Version: %ver_major.2
Release: alt5
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
Patch: %name-2.26.2-alt-splash.patch
Patch100: 13fe15fc1ef8a08874ff7c61f1944ae55b0111ce.patch
Conflicts: gnome-core <= 2.10.0
Conflicts: gdm <= 2.20.3-alt1
# From configure.in
%define glib_ver 2.16.0
%define gtk_ver 2.11.1
%define dbus_glib_ver 0.76
%define glade_ver 2.3.6
%define polkit_ver 0.7
PreReq: GConf2 GConf-sanity-check
PreReq: xinitrc
Requires: GConf-sanity-check
# 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 libGConf-devel
BuildPreReq: libgio-devel glib2-devel >= %glib_ver
BuildPreReq: libgtk+2-devel >= %gtk_ver
BuildPreReq: libgnome-desktop-devel
BuildPreReq: libdbus-glib-devel >= %dbus_glib_ver
BuildPreReq: gnome-settings-daemon-devel
BuildPreReq: libglade-devel >= %glade_ver
BuildPreReq: libPolicyKit-gnome-devel >= %polkit_ver
BuildPreReq: libX11-devel libXau-devel libXrandr-devel libXrender-devel libXt-devel
BuildPreReq: libSM-devel libXext-devel libXtst-devel xorg-inputproto-devel
BuildRequires: gcc-c++
BuildRequires: GConf2 browser-plugins-npapi-devel perl-XML-Parser
BuildRequires: libpaper libstartup-notification-devel xorg-cf-files xorg-xtrans-devel
%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
%patch100 -p1
%build
%configure PATH=$PATH:/sbin \
--disable-schemas-install \
--with-at-spi-registryd-directory=%_libexecdir
%make_build
%install
%make_install install DESTDIR=%buildroot
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
# use prefixed .menu files
export XDG_MENU_PREFIX="gnome-"
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/design %buildroot%_pixmapsdir/design
%post
%gconf2_install %name
%preun
if [ $1 = 0 ]; then
%gconf2_uninstall %name
fi
%files -f %name-2.0.lang
%_bindir/*
%_desktopdir/*.desktop
%dir %_libdir/gnome-session
%dir %_libdir/gnome-session/helpers
%_libdir/gnome-session/helpers/at-spi-registryd-wrapper
%_libdir/gnome-session/helpers/gnome-session-splash
%_libdir/gnome-session/helpers/gnome-settings-daemon-helper
%dir %_datadir/gnome-session
%_datadir/gnome-session/*.glade
%_sysconfdir/xdg/autostart/at-spi-registryd-wrapper.desktop
%_sysconfdir/xdg/autostart/gnome-settings-daemon-helper.desktop
%_datadir/gnome/autostart/gnome-session-splash.desktop
%_pixmapsdir/*
%_iconsdir/gnome.svg
%_iconsdir/hicolor/*/apps/session-properties.*
%_pixmapsdir/design
%config %_sysconfdir/X11/wmsession.d/*Gnome*
%config %gconf_schemasdir/%name.schemas
%_mandir/man?/*
%doc AUTHORS ChangeLog NEWS README
%exclude %_datadir/xsessions/gnome.desktop
%exclude %_bindir/gnome-wm
%changelog
…
Полный changelog можно просмотреть здесь
%define _libexecdir /usr/libexec
Name: gnome-session
Version: %ver_major.2
Release: alt5
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
Patch: %name-2.26.2-alt-splash.patch
Patch100: 13fe15fc1ef8a08874ff7c61f1944ae55b0111ce.patch
Conflicts: gnome-core <= 2.10.0
Conflicts: gdm <= 2.20.3-alt1
# From configure.in
%define glib_ver 2.16.0
%define gtk_ver 2.11.1
%define dbus_glib_ver 0.76
%define glade_ver 2.3.6
%define polkit_ver 0.7
PreReq: GConf2 GConf-sanity-check
PreReq: xinitrc
Requires: GConf-sanity-check
# 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 libGConf-devel
BuildPreReq: libgio-devel glib2-devel >= %glib_ver
BuildPreReq: libgtk+2-devel >= %gtk_ver
BuildPreReq: libgnome-desktop-devel
BuildPreReq: libdbus-glib-devel >= %dbus_glib_ver
BuildPreReq: gnome-settings-daemon-devel
BuildPreReq: libglade-devel >= %glade_ver
BuildPreReq: libPolicyKit-gnome-devel >= %polkit_ver
BuildPreReq: libX11-devel libXau-devel libXrandr-devel libXrender-devel libXt-devel
BuildPreReq: libSM-devel libXext-devel libXtst-devel xorg-inputproto-devel
BuildRequires: gcc-c++
BuildRequires: GConf2 browser-plugins-npapi-devel perl-XML-Parser
BuildRequires: libpaper libstartup-notification-devel xorg-cf-files xorg-xtrans-devel
%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
%patch100 -p1
%build
%configure PATH=$PATH:/sbin \
--disable-schemas-install \
--with-at-spi-registryd-directory=%_libexecdir
%make_build
%install
%make_install install DESTDIR=%buildroot
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
# use prefixed .menu files
export XDG_MENU_PREFIX="gnome-"
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/design %buildroot%_pixmapsdir/design
%post
%gconf2_install %name
%preun
if [ $1 = 0 ]; then
%gconf2_uninstall %name
fi
%files -f %name-2.0.lang
%_bindir/*
%_desktopdir/*.desktop
%dir %_libdir/gnome-session
%dir %_libdir/gnome-session/helpers
%_libdir/gnome-session/helpers/at-spi-registryd-wrapper
%_libdir/gnome-session/helpers/gnome-session-splash
%_libdir/gnome-session/helpers/gnome-settings-daemon-helper
%dir %_datadir/gnome-session
%_datadir/gnome-session/*.glade
%_sysconfdir/xdg/autostart/at-spi-registryd-wrapper.desktop
%_sysconfdir/xdg/autostart/gnome-settings-daemon-helper.desktop
%_datadir/gnome/autostart/gnome-session-splash.desktop
%_pixmapsdir/*
%_iconsdir/gnome.svg
%_iconsdir/hicolor/*/apps/session-properties.*
%_pixmapsdir/design
%config %_sysconfdir/X11/wmsession.d/*Gnome*
%config %gconf_schemasdir/%name.schemas
%_mandir/man?/*
%doc AUTHORS ChangeLog NEWS README
%exclude %_datadir/xsessions/gnome.desktop
%exclude %_bindir/gnome-wm
%changelog
…
Полный changelog можно просмотреть здесь