2006-12-28 23:05:20 +00:00
#
2010-03-11 23:03:24 +00:00
# spec file for package gdm (Version 2.29.92)
2006-12-28 23:05:20 +00:00
#
2010-01-18 14:27:14 +00:00
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
2006-12-28 23:05:20 +00:00
#
2008-08-13 23:48:24 +00:00
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
2006-12-28 23:05:20 +00:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
2008-03-21 03:03:15 +00:00
2006-12-28 23:05:20 +00:00
Name : gdm
2009-10-05 23:59:05 +00:00
BuildRequires : DeviceKit-power-devel
2008-09-12 23:22:26 +00:00
BuildRequires : check-devel
BuildRequires : fdupes
BuildRequires : gconf2-devel
BuildRequires : gnome-doc-utils-devel
BuildRequires : gnome-panel-devel
BuildRequires : gnome-patch-translation
BuildRequires : intltool
2008-11-04 16:37:03 +00:00
BuildRequires : iso-codes-devel
2009-09-03 14:06:25 +00:00
BuildRequires : libcanberra-devel
2008-08-22 22:26:31 +00:00
BuildRequires : libselinux-devel
2008-09-12 23:22:26 +00:00
BuildRequires : libxklavier-devel
BuildRequires : pam-devel
BuildRequires : pwdutils
BuildRequires : tcpd-devel
2009-03-26 23:46:39 +00:00
BuildRequires : translation-update-upstream
2008-09-12 23:22:26 +00:00
BuildRequires : update-desktop-files
BuildRequires : xorg-x11-server
BuildRequires : xorg-x11-server-extra
BuildRequires : zenity
2009-12-08 09:25:28 +00:00
License : GPLv2+
2006-12-28 23:05:20 +00:00
Group : System/GUI/GNOME
2010-03-11 23:03:24 +00:00
Version : 2.29.92
2009-12-08 09:25:28 +00:00
Release : 1
2006-12-28 23:05:20 +00:00
Summary : The GNOME 2.x Display Manager
Source : %{name} -%{version} .tar.bz2
Source1 : gdm.pamd
Source2 : gdm-autologin.pamd
2007-01-12 15:12:54 +00:00
# FIXME: See FIXME in the script.
2006-12-28 23:05:20 +00:00
Source3 : SuSEconfig.gdm
2009-12-08 09:25:28 +00:00
# PATCH-FIX-UPSTREAM gdm-helper-directory.patch bgo582320 vuntz@novell.com -- Add --with-gnome-settings-daemon-directory, --with-consolekit-directory, --with-at-spi-registryd-directory
2009-05-20 20:19:00 +00:00
Patch1 : gdm-helper-directory.patch
# PATCH-FIX-OPENSUSE gdm-2.21.9-no-fatal-warnings.patch -- Do not accept fatal warnings in development version: gdm is too critical
2008-08-13 23:48:24 +00:00
Patch2 : gdm-2.21.9-no-fatal-warnings.patch
2009-05-20 20:19:00 +00:00
# PATCH-FIX-UPSTREAM gdm-vt-allocation-hack.patch bgo511168 hpj@novell.com -- Needed for user switching
2008-12-04 11:41:50 +00:00
Patch4 : gdm-vt-allocation-hack.patch
2008-09-24 13:25:23 +00:00
# PATCH-FIX-OPENSUSE gdm-desktop-session-env-pam.patch bnc427744 vuntz@novell.com -- Sets a PAM environment variable to let the pam gnome-keyring module know which session is started
Patch6 : gdm-desktop-session-env-pam.patch
# PATCH-FIX-OPENSUSE gdm-suse-xsession.patch vuntz@novell.com -- Use the /etc/X11/xdm/* scripts
Patch7 : gdm-suse-xsession.patch
2008-11-07 23:56:37 +00:00
# PATCH-FIX-OPENSUSE gdm-sysconfig-settings.patch bnc432360 hpj@novell.com -- Read autologin options from /etc/sysconfig/displaymanager
2010-01-18 14:27:14 +00:00
Patch8 : gdm-sysconfig-settings.patch
# PATCH-FEATURE-SLED gdm-domain-logon.patch hpj@novell.com -- Add UI to log in a specific domain
Patch9 : gdm-domain-logon.patch
2009-10-05 23:59:05 +00:00
# PATCH-FIX-UPSTREAM gdm-greeter-greater-ui.patch bnc436431 bgo560508 vuntz@novell.com -- Improve the layout of the greeter. Note: the patch contains a patched glade file *and* the result glade file (for reference only, in case we need to rebase the patch)
Patch15 : gdm-greeter-greater-ui.patch
2008-11-24 15:02:35 +00:00
# PATCH-FIX-UPSTREAM gdm-always-reflect-keyboard-layout.patch bnc438159 bgo561771 hpj@novell.com -- Make keyboard selector not neglect to apply the selected keyboard in some situations.
Patch18 : gdm-always-reflect-keyboard-layout.patch
2009-12-08 09:25:28 +00:00
# PATCH-FIX-UPSTREAM gdm-save-panel-space-on-low-resolutions.patch bnc449815 bgo603817 hpj@novell.com -- Hide clock and/or selector labels on low resolutions. (needed because of gdm-domain-logon.patch)
2008-12-01 11:07:15 +00:00
Patch19 : gdm-save-panel-space-on-low-resolutions.patch
2009-02-06 22:36:06 +00:00
# PATCH-FIX-UPSTREAM gdm-selecting-desktop-environment.patch bnc460591 mxwu@novell.com -- Selecting the right desktop environment
Patch20 : gdm-selecting-desktop-environment.patch
2009-03-05 23:23:38 +00:00
# PATCH-FIX-OPENSUSE gdm-gconf-path.patch vuntz@novell.com -- Fix gconf paths to be consistent with the ones used in openSUSE
Patch31 : gdm-gconf-path.patch
2009-09-28 16:08:57 +00:00
# PATCH-FIX-OPENSUSE gdm-default-wm.patch vuntz@novell.com -- Use sysconfig to know to which desktop to use by default
2009-09-28 14:41:28 +00:00
Patch34 : gdm-default-wm.patch
2009-10-05 23:59:05 +00:00
# PATCH-FIX-OPENSUSE gdm-xauthlocalhostname.patch bgo555464 vuntz@novell.com -- Set XAUTHLOCALHOSTNAME to localhost for local logins to avoid issues in the session in case the hostname changes
2009-09-28 14:41:28 +00:00
Patch35 : gdm-xauthlocalhostname.patch
2009-10-05 23:59:05 +00:00
# PATCH-FIX-UPSTREAM gdm-autologin-once.patch bgo587606 vuntz@novell.com -- Make autologin work only once
Patch37 : gdm-autologin-once.patch
# PATCH-FIX-UPSTREAM gdm-polkit-gnome-path.patch bgo597050 vuntz@opensuse.org -- Use the right patch for the polkit agent. The current patch is a quick workaround for now, until we know how upstream wants to fix this.
Patch39 : gdm-polkit-gnome-path.patch
2009-12-04 22:47:18 +00:00
# PATCH-FIX-UPSTREAM gdm-look-at-runlevel.patch bnc540482 bgo599180 vuntz@opensuse.org -- Look at the current runlevel before managing the display again, so we don't do this when shutting down or rebooting
Patch40 : gdm-look-at-runlevel.patch
2010-01-18 14:27:14 +00:00
# PATCH-FIX-UPSTREAM gdm-add-missing-locale.patch captain.magnus@opensuse.org -- Add missing locale.alias file. This patch can be removed with the next version update
Patch41 : gdm-add-missing-locale.patch
2009-05-20 20:19:00 +00:00
# PATCH-FIX-OPENSUSE gdm-selinux.patch -- Small changes to make it compile fine with SELinux
2008-08-22 22:26:31 +00:00
Patch60 : gdm-selinux.patch
2007-09-14 14:10:01 +00:00
Url : http://www.gnome.org/
2006-12-28 23:05:20 +00:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2007-09-14 14:10:01 +00:00
DocDir: %{_defaultdocdir}
2009-12-04 22:47:18 +00:00
Provides : gdm2 = %{version}
Obsoletes : gdm2 < %{version}
2008-09-12 23:22:26 +00:00
Obsoletes : fast-user-switch-applet <= 2.22.0
2009-03-26 23:46:39 +00:00
Requires : %{name} -branding
Requires : %{name} -lang = %{version}
2008-11-04 16:37:03 +00:00
Requires : ConsoleKit-x11
Requires : gnome-session
Requires : gnome-themes
Requires : klogd
Requires : xorg-x11-server-extra
2009-04-01 16:23:12 +00:00
# For groupadd, useradd, usermod
PreReq : pwdutils
2009-03-26 23:46:39 +00:00
PreReq : %insserv_prereq
2008-11-04 16:37:03 +00:00
Recommends: gnome-settings-daemon
2008-08-13 23:48:24 +00:00
%gconf_schemas_prereq
2006-12-28 23:05:20 +00:00
%description
This version of GDM, the GNOME display manager, is based on GTK2 and is
suited for the GNOME 2.x Desktop. GDM is a flexible X Window System
display manager that has many options, is usable for remote login, and
provides a good looking graphical interface.
2008-04-16 16:33:05 +00:00
%package branding-upstream
2009-12-08 09:25:28 +00:00
License : GPLv2+
2008-04-16 16:33:05 +00:00
Summary : The GNOME 2.x Display Manager
Group : System/GUI/GNOME
Provides : %{name} -branding = %{version}
2008-10-06 15:44:28 +00:00
Conflicts : otherproviders(%{name} -branding)
2009-12-04 22:47:18 +00:00
Supplements: packageand(%{name} :branding-upstream)
2008-04-16 16:33:05 +00:00
#BRAND: Provide two equal files - /usr/share/gdm/defaults.conf and
#BRAND: factory-defaults.conf with default configuration of gdm.
#BRAND: Branding package requires the package with the default theme.
#NOTE: We may want to create gdm-themes with upstream themes.
%description branding-upstream
This version of GDM, the GNOME display manager, is based on GTK2 and is
suited for the GNOME 2.x Desktop. GDM is a flexible X Window System
display manager that has many options, is usable for remote login, and
provides a good looking graphical interface.
2007-08-09 16:59:15 +00:00
%lang_package
2006-12-28 23:05:20 +00:00
%prep
2007-08-10 15:05:57 +00:00
%setup -q
2009-03-26 23:46:39 +00:00
translation-update-upstream
2009-02-23 11:47:53 +00:00
gnome-patch-translation-prepare
2008-08-13 23:48:24 +00:00
%patch1 -p1
%patch2 -p1
%patch4 -p1
2008-09-24 13:25:23 +00:00
%patch6 -p1
%patch7 -p1
2010-01-18 14:27:14 +00:00
%patch8 -p1
%patch9 -p1
2009-10-05 23:59:05 +00:00
%patch15 -p1
2008-11-24 15:02:35 +00:00
%patch18 -p1
2008-12-01 11:07:15 +00:00
%patch19 -p1
2009-02-06 22:36:06 +00:00
%patch20 -p1
2009-03-05 23:23:38 +00:00
%patch31 -p1
2009-09-28 16:08:57 +00:00
%patch34 -p1
%patch35 -p1
2009-10-05 23:59:05 +00:00
%patch37 -p1
%patch39 -p1
2009-12-04 22:47:18 +00:00
%patch40 -p1
2010-01-18 14:27:14 +00:00
%patch41 -p1
2008-08-22 22:26:31 +00:00
%patch60
2010-01-18 14:27:14 +00:00
gnome-patch-translation-update
2006-12-28 23:05:20 +00:00
%build
2008-11-07 23:56:37 +00:00
libtoolize -f -i
2007-01-12 15:12:54 +00:00
autoreconf -f -i
%configure \
2008-09-12 23:22:26 +00:00
--libexecdir=%{_prefix} /lib/gdm \
2008-08-13 23:48:24 +00:00
--localstatedir=%{_localstatedir} \
2009-12-08 09:25:28 +00:00
--with-at-spi-registryd-directory=%{_libexecdir} /at-spi2 \
--with-gnome-settings-daemon-directory=%{_libexecdir} /gnome-settings-daemon \
--with-consolekit-directory=%{_libexecdir} /ConsoleKit \
2009-12-29 23:19:06 +00:00
--with-polkit-gnome-directory=%{_libexecdir} /polkit-gnome \
2008-08-22 22:26:31 +00:00
--with-selinux \
2007-01-12 15:12:54 +00:00
--enable-ipv6\
2009-02-06 22:36:06 +00:00
--disable-scrollkeeper
2008-09-12 23:22:26 +00:00
%__make %{?jobs:-j%jobs}
2006-12-28 23:05:20 +00:00
%install
2007-04-27 14:44:36 +00:00
%makeinstall
2009-12-08 09:25:28 +00:00
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot} %{_datadir} /locale/en@shaw/LC_MESSAGES/*
%endif
2008-08-13 23:48:24 +00:00
%find_gconf_schemas
2006-12-28 23:05:20 +00:00
# Remove wrapper, it is not needed.
2007-01-12 15:12:54 +00:00
mv $RPM_BUILD_ROOT %{_sbindir} /gdm-binary $RPM_BUILD_ROOT %{_sbindir} /gdm
2006-12-28 23:05:20 +00:00
# Install PAM files and remove examples.
mkdir -p $RPM_BUILD_ROOT /etc/pam.d
cp %{S:1} $RPM_BUILD_ROOT /etc/pam.d/gdm
cp %{S:2} $RPM_BUILD_ROOT /etc/pam.d/gdm-autologin
# Install PostLogin script.
2007-01-12 15:12:54 +00:00
mv $RPM_BUILD_ROOT %{_sysconfdir} /gdm/PostLogin/Default.sample $RPM_BUILD_ROOT %{_sysconfdir} /gdm/PostLogin/Default
2006-12-28 23:05:20 +00:00
# Install SuSEconfig script.
mkdir -p $RPM_BUILD_ROOT /sbin/conf.d
cp %{S:3} $RPM_BUILD_ROOT /sbin/conf.d
chmod +x $RPM_BUILD_ROOT /sbin/conf.d/SuSEconfig.gdm
2008-08-13 23:48:24 +00:00
mkdir -p $RPM_BUILD_ROOT {_localstatedir}/log/gdm
mkdir -p $RPM_BUILD_ROOT {_localstatedir}/run/gdm
2006-12-28 23:05:20 +00:00
%find_lang %{name}
2008-08-13 23:48:24 +00:00
mkdir -p $RPM_BUILD_ROOT %{_bindir}
2007-01-12 15:12:54 +00:00
ln -s ../sbin/gdm $RPM_BUILD_ROOT %{_bindir} /gdm
2007-08-05 09:40:20 +00:00
%fdupes $RPM_BUILD_ROOT
2006-12-28 23:05:20 +00:00
%clean
2007-08-05 09:40:20 +00:00
rm -rf $RPM_BUILD_ROOT
2006-12-28 23:05:20 +00:00
2008-08-13 23:48:24 +00:00
%pre -f %{name}.schemas_pre
2006-12-28 23:05:20 +00:00
/usr/sbin/groupadd -r gdm 2> /dev/null || :
/usr/sbin/useradd -r -o -g gdm -s /bin/false \
-c " G n o m e D i s p l a y M a n a g e r d a e m o n " -d /var/lib/gdm gdm 2> /dev/null || :
/usr/sbin/usermod -g gdm -G gdm -s /bin/false gdm 2> /dev/null
2007-09-06 19:50:10 +00:00
# Fix incorrect interpretation of DISPLAYMANAGER_PASSWORD_LESS_LOGIN (#307566).
# Last done in SLED10&10.1, first fixed in 10.3.
# Can be removed after SLES12:
2009-08-07 14:57:45 +00:00
if test -f sbin/conf.d/SuSEconfig.gdm && grep -q gdm-autologin sbin/conf.d/SuSEconfig.gdm ; then
2007-09-06 19:50:10 +00:00
if grep -q '^DISPLAYMANAGER_PASSWORD_LESS_LOGIN="no"' etc/sysconfig/displaymanager ; then
sed 's/^\(auth[[:space:]][[:space:]]*\)include[[:space:]]\([[:space:]]*\)common-auth/\1required\2pam_permit.so/' <etc/pam.d/gdm-autologin >etc/pam.d/gdm-autologin.new
if cmp -s etc/pam.d/gdm-autologin etc/pam.d/gdm-autologin.new ; then
rm etc/pam.d/gdm-autologin.new
else
mv etc/pam.d/gdm-autologin.new etc/pam.d/gdm-autologin
fi
fi
fi
2006-12-28 23:05:20 +00:00
2008-08-13 23:48:24 +00:00
%preun -f %{name}.schemas_preun
2009-08-04 07:55:25 +00:00
2008-08-13 23:48:24 +00:00
%posttrans -f %{name}.schemas_posttrans
2007-01-23 20:25:59 +00:00
2006-12-28 23:05:20 +00:00
%postun
%insserv_cleanup
2008-08-13 23:48:24 +00:00
%files -f %{name}.schemas_list
2006-12-28 23:05:20 +00:00
%defattr (-,root,root)
2008-11-04 16:37:03 +00:00
%doc AUTHORS COPYING ChangeLog NEWS README
2007-01-12 15:12:54 +00:00
%dir %config %{_sysconfdir} /gdm
%config %{_sysconfdir} /gdm/[IPXl]*
%{_sbindir} /*
%{_bindir} /*
%{_datadir} /gdm
%{_datadir} /pixmaps/*.png
%{_datadir} /pixmaps/faces
%{_datadir} /icons/*/*/*/*.*
2008-09-12 23:22:26 +00:00
%dir %{_prefix} /lib/gdm
%{_prefix} /lib/gdm/gdm-*
2008-08-15 21:19:18 +00:00
%{_libdir} /bonobo/servers/*
2008-08-13 23:48:24 +00:00
%{_datadir} /gnome-2.0/ui/*
2007-01-12 15:12:54 +00:00
%attr (750,gdm,gdm) %dir %{_localstatedir} /lib/gdm
2009-12-08 09:25:28 +00:00
%attr (751,gdm,gdm) %dir %{_localstatedir} /run/gdm
2007-01-12 15:12:54 +00:00
%attr (750,gdm,gdm) %dir %{_localstatedir} /log/gdm
2008-09-12 23:22:26 +00:00
%attr (750,gdm,gdm) %dir %{_localstatedir} /lib/gdm/.gconf.mandatory
%attr (640,gdm,gdm) %{_localstatedir} /lib/gdm/.gconf.mandatory/%gconf-tree.xml
%attr (640,gdm,gdm) %{_localstatedir} /lib/gdm/.gconf.path
2009-10-05 23:59:05 +00:00
%dir %{_localstatedir} /cache/gdm
2006-12-28 23:05:20 +00:00
%config /etc/pam.d/*
/sbin/conf.d/SuSEconfig.gdm
2008-08-15 21:19:18 +00:00
%config %{_sysconfdir} /dbus-1/system.d/gdm.conf
%config %{_sysconfdir} /gdm/gdm.schemas
2008-03-21 03:03:15 +00:00
2008-04-16 16:33:05 +00:00
%files branding-upstream
%defattr (-,root,root)
2008-08-13 23:48:24 +00:00
%config (noreplace) %{_sysconfdir} /gdm/custom.conf
%files lang -f %{name}.lang
2008-04-16 16:33:05 +00:00
2007-02-27 07:45:46 +00:00
%changelog