# s=/dev/null=/home/services/xdm= in %%trigger for gracefull upgrade from xdm/kdm/gdm 2.2
# check /etc/pam.d/gdm-autologin
#
+# Conditiional build:
+%bcond_without selinux # without selinux
+#
Summary: GNOME Display Manager
Summary(es): Administrador de Entrada del GNOME
Summary(ja): GNOME ¥Ç¥£¥¹¥×¥ì¥¤¥Þ¥Í¡¼¥¸¥ã
Summary(ru): äÉÓÐÌÅÊÎÙÊ ÍÅÎÅÄÖÅÒ GNOME
Summary(uk): äÉÓÐÌÅÊÎÉÊ ÍÅÎÅÄÖÅÒ GNOME
Name: gdm
-Version: 2.6.0.7
+Version: 2.6.0.9
Release: 1
Epoch: 1
License: GPL/LGPL
Group: X11/Applications
-Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.6/%{name}-%{version}.tar.bz2
-# Source0-md5: d3c7d5e605fb5a27f59e228d49469fd6
+Source0: http://ftp.gnome.org/pub/GNOME/sources/gdm/2.6/%{name}-%{version}.tar.bz2
+# Source0-md5: d845fe205412bb101d4c66d1e88a317d
Source1: %{name}.pamd
Source2: %{name}.init
Source3: %{name}-pld-logo.png
Patch3: %{name}-logdir.patch
Patch4: %{name}-default_theme.patch
Patch5: %{name}-desktop.patch
+patch6: %{name}-vt_9.patch
URL: http://www.jirka.org/gdm.html
BuildRequires: attr-devel
BuildRequires: autoconf
BuildRequires: libglade2-devel >= 1:2.4.1
BuildRequires: libgnome-devel >= 2.6.1
BuildRequires: libgnomecanvas-devel >= 2.6.1
-BuildRequires: libgnomeui-devel >= 2.6.1
+BuildRequires: libgnomeui-devel >= 2.10.0-2
BuildRequires: libgsf-devel >= 1.9.0
BuildRequires: librsvg-devel >= 1:2.6.5
-BuildRequires: libselinux-devel
+%{?with_selinux:BuildRequires: libselinux-devel}
BuildRequires: libtool
BuildRequires: libxml2-devel >= 2.5.11
BuildRequires: pam-devel
BuildRequires: perl-modules
-BuildRequires: rpmbuild(macros) >= 1.159
-BuildRequires: scrollkeeper
+BuildRequires: rpmbuild(macros) >= 1.197
Requires(pre): /bin/id
Requires(pre): /usr/sbin/groupadd
Requires(pre): /usr/sbin/useradd
%patch3 -p1
%patch4 -p1
%patch5 -p1
+%patch6 -p1
%build
-rm -f missing
%{__libtoolize}
-glib-gettextize --copy --force
-intltoolize --copy --force
+%{__glib_gettextize}
+%{__intltoolize}
%{__aclocal}
%{__autoconf}
%{__automake}
--with-tcp-wrappers=yes \
--enable-authentication-scheme=pam \
--disable-console-helper \
- --with-selinux
+ --with%{!?with_selinux:out}-selinux
%{__make}
fi
%post
-/usr/bin/scrollkeeper-update
+%scrollkeeper_update_post
%postun
-/usr/bin/scrollkeeper-update
+%scrollkeeper_update_postun
if [ "$1" = "0" ]; then
%userremove xdm
%groupremove xdm