2006-12-28 23:05:20 +00:00
#
2011-01-14 14:26:58 +00:00
# spec file for package gdm
2006-12-28 23:05:20 +00:00
#
2012-01-17 13:47:10 +00:00
# Copyright (c) 2012 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/
#
2012-02-20 22:12:07 +00:00
2012-03-28 08:21:22 +00:00
# We cannot enable systemd support right now, as it means starting X with
# --seat, which doesn't work until we get xorg 1.12
%define with_systemd 0
2011-09-07 03:49:36 +00:00
# FIXME: need to check what should be done to enable this (at least adapt the pam files). See bnc#699999
%define enable_split_authentication 0
2008-03-21 03:03:15 +00:00
2006-12-28 23:05:20 +00:00
Name : gdm
2012-04-18 15:21:49 +00:00
Version : 3.4.1
2011-12-21 04:35:05 +00:00
Release : 0
2010-12-21 11:07:40 +00:00
Summary : The GNOME Display Manager
2011-12-21 04:35:05 +00:00
License : GPL-2.0+
Group : System/GUI/GNOME
2011-07-06 17:05:29 +00:00
Url : http://projects.gnome.org/gdm/
2012-03-28 06:01:09 +00:00
Source : http://download.gnome.org/sources/gdm/3.4/%{name} -%{version} .tar.xz
2006-12-28 23:05:20 +00:00
Source1 : gdm.pamd
Source2 : gdm-autologin.pamd
2011-09-07 03:49:36 +00:00
Source3 : gdm-welcome.pamd
# gdmflexiserver wrapper, to enable other display managers to abuse the gdmflexiserver namespace (like lightdm)
Source4 : gdmflexiserver-wrapper
# /etc/xinit.d/xdm integration script
Source5 : X11-displaymanager-gdm
2010-12-21 11:07:40 +00:00
# PATCH-FEATURE-UPSTREAM gdm-plymouth.patch vuntz@opensuse.org -- Get a nice transition from plymouth; taken from Fedora
Patch0 : gdm-plymouth.patch
2011-09-07 12:34:54 +00:00
# PATCH-FIX-UPSTREAM gdm-helper-directory.patch bgo582320 vuntz@novell.com -- Add --with-consolekit-directory, --with-check-accelerated-directory
2010-12-21 11:07:40 +00:00
Patch2 : gdm-helper-directory.patch
2010-09-23 22:26:45 +00:00
# PATCH-FIX-OPENSUSE gdm-is-not-unstable-unless.patch vuntz@opensuse.org -- Make gdm think it's never running a development version unless SUSE_ENABLE_UNSTABLE_CHECK is set. This disables fatal warnings as well as abusive log
2010-12-21 11:07:40 +00:00
Patch3 : gdm-is-not-unstable-unless.patch
2011-01-14 17:58:21 +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
2011-07-22 13:05:39 +00:00
# WARNING: do not remove/significantly change patch8 without updating the relevant patch in accountsservice too
# PATCH-FIX-OPENSUSE gdm-sysconfig-settings.patch bnc432360 hpj@novell.com -- Read autologin options from /etc/sysconfig/displaymanager; note that accountsservice has a similar patch (accountsservice-sysconfig.patch)
2010-01-18 14:27:14 +00:00
Patch8 : gdm-sysconfig-settings.patch
2010-10-15 14:46:24 +00:00
# PATCH-FEATURE-OPENSUSE gdm-passwordless-login.patch vuntz@opensuse.org -- Support DISPLAYMANAGER_PASSWORD_LESS_LOGIN sysconfig option
Patch9 : gdm-passwordless-login.patch
2010-08-09 21:51:59 +00:00
# PATCH-NEEDS-REBASE gdm-domain-logon.patch hpj@novell.com -- Add UI to log in a specific domain (was: PATCH_FEATURE-SLED bnc#627575)
2010-10-15 14:46:24 +00:00
Patch10 : gdm-domain-logon.patch
2012-03-22 06:09:55 +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)
2009-10-05 23:59:05 +00:00
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-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-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
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
2011-04-25 09:22:25 +00:00
BuildRequires : check-devel
2011-09-07 03:49:36 +00:00
BuildRequires : dbus-1-glib-devel
2011-04-25 09:22:25 +00:00
# needed for directory ownership
BuildRequires : dconf
BuildRequires : gnome-doc-utils-devel
BuildRequires : gnome-patch-translation
# needed for directory ownership
BuildRequires : gnome-session-core
2011-09-07 03:49:36 +00:00
BuildRequires : gobject-introspection-devel >= 0.9.12
2011-04-25 09:22:25 +00:00
BuildRequires : intltool
BuildRequires : iso-codes-devel
2012-02-20 22:12:07 +00:00
BuildRequires : libXdmcp-devel
BuildRequires : libXi-devel
BuildRequires : libXinerama-devel
2011-04-25 09:22:25 +00:00
BuildRequires : libattr-devel
BuildRequires : libcanberra-devel
BuildRequires : libselinux-devel
2012-03-21 15:00:19 +00:00
BuildRequires : libtool
2011-04-25 09:22:25 +00:00
BuildRequires : libupower-glib-devel
BuildRequires : libxklavier-devel
BuildRequires : pam-devel
BuildRequires : pwdutils
BuildRequires : tcpd-devel
BuildRequires : translation-update-upstream
BuildRequires : update-desktop-files
BuildRequires : xorg-x11-server
BuildRequires : xorg-x11-server-extra
BuildRequires : pkgconfig(accountsservice)
2012-03-28 08:21:22 +00:00
%if %{with_systemd}
2012-03-21 15:00:19 +00:00
BuildRequires : pkgconfig(libsystemd-daemon)
BuildRequires : pkgconfig(libsystemd-login)
2012-03-28 08:21:22 +00:00
%endif
2011-06-17 07:02:57 +00:00
BuildRequires : pkgconfig(nss)
2012-02-20 22:12:07 +00:00
BuildRequires : pkgconfig(x11)
BuildRequires : pkgconfig(xau)
BuildRequires : pkgconfig(xrandr)
2011-07-06 17:05:29 +00:00
Requires : %{name} -branding = %{version}
2008-11-04 16:37:03 +00:00
Requires : ConsoleKit-x11
2011-09-07 03:49:36 +00:00
Requires : gdmflexiserver
2010-05-27 22:29:17 +00:00
Requires : gnome-session-core
2008-11-04 16:37:03 +00:00
Requires : klogd
Requires : xorg-x11-server-extra
2011-09-07 03:49:36 +00:00
### Packages for the gdm session (see /usr/share/gnome-session/sessions/{gdm,gdm-fallback}.session and /usr/share/gdm/greeter/applications)
## Fallback
2011-07-02 11:09:18 +00:00
Requires : metacity
Requires : polkit-gnome
2011-09-07 03:49:36 +00:00
## Non-fallback
# Use Recommends, since we do not want to force people to install gnome-shell, and if it's not there, the fallback session will be used
Recommends: gnome-shell
## All sessions
Requires : gnome-settings-daemon
2012-01-17 13:47:10 +00:00
Requires(post) : dconf
2011-09-07 03:49:36 +00:00
# Those accessibility features rely on deprecated modules that we don't ship :/ See bgo#658429.
#Recommends: gnome-mag
#Recommends: gok
Recommends: orca
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
2011-02-13 21:06:10 +00:00
Recommends: %{name} -lang
2011-01-14 17:58:21 +00:00
Recommends: iso-codes
2011-04-25 09:22:25 +00:00
Provides : gdm2 = %{version}
Obsoletes : gdm2 < %{version}
Provides : gnome-applets-gdm = %{version}
Obsoletes : gnome-applets-gdm < %{version}
BuildRoot : %{_tmppath} /%{name} -%{version} -build
DocDir: %{_defaultdocdir}
2012-03-22 06:09:55 +00:00
%glib2_gsettings_schema_requires
2006-12-28 23:05:20 +00:00
%description
2011-06-17 07:02:57 +00:00
The GNOME Display Manager is a system service that is responsible for
providing graphical log-ins and managing local and remote displays.
2011-09-07 03:49:36 +00:00
%package -n libgdmgreeter1
Summary : Client Library for Communicating with GDM Greeter Server
Group : System/Libraries
Recommends: gdm
%description -n libgdmgreeter1
The GNOME Display Manager is a system service that is responsible for
providing graphical log-ins and managing local and remote displays.
2011-12-21 04:35:05 +00:00
%package -n typelib-1_0-GdmGreeter-1_0
Summary : Client Library for Communicating with GDM Greeter Server -- Introspection bindings
2011-06-17 07:02:57 +00:00
Group : System/Libraries
2011-12-21 04:35:05 +00:00
%description -n typelib-1_0-GdmGreeter-1_0
2011-06-17 07:02:57 +00:00
The GNOME Display Manager is a system service that is responsible for
providing graphical log-ins and managing local and remote displays.
2011-12-21 04:35:05 +00:00
This package provides the GObject Introspection bindings for
communicating with the GDM greeter server.
%package -n libgdmsimplegreeter1
2011-12-12 15:55:49 +00:00
Summary : Library for GDM Simple Greeter Extensions
Group : System/Libraries
2011-12-21 04:35:05 +00:00
Recommends: gdm
2011-12-12 15:55:49 +00:00
2011-12-21 04:35:05 +00:00
%description -n libgdmsimplegreeter1
2011-12-12 15:55:49 +00:00
The GNOME Display Manager is a system service that is responsible for
providing graphical log-ins and managing local and remote displays.
2011-09-07 03:49:36 +00:00
%if %{enable_split_authentication}
2011-09-09 10:01:55 +00:00
2011-09-07 03:49:36 +00:00
%package simple-greeter-extensions
Summary : GDM Simple Greeter Extensions -- Fingerprint and Smartcard Support
Group : System/Libraries
Supplements: gdm
%description simple-greeter-extensions
The GNOME Display Manager is a system service that is responsible for
providing graphical log-ins and managing local and remote displays.
%endif
%package devel
Summary : Libraries for GDM -- Development Files
2011-06-17 07:02:57 +00:00
Group : Development/Libraries/GNOME
2011-09-07 03:49:36 +00:00
Requires : libgdmgreeter1 = %{version}
2011-06-17 07:02:57 +00:00
Requires : libgdmsimplegreeter1 = %{version}
2011-12-21 04:35:05 +00:00
Requires : typelib-1_0-GdmGreeter-1_0 = %{version}
2011-09-07 03:49:36 +00:00
Provides : libgdmsimplegreeter-devel = %{version}
Obsoletes : libgdmsimplegreeter-devel < %{version}
2011-06-17 07:02:57 +00:00
2011-09-07 03:49:36 +00:00
%description devel
2011-06-17 07:02:57 +00:00
The GNOME Display Manager is a system service that is responsible for
providing graphical log-ins and managing local and remote displays.
2006-12-28 23:05:20 +00:00
2008-04-16 16:33:05 +00:00
%package branding-upstream
2011-07-06 17:05:29 +00:00
Summary : The GNOME Display Manager -- Upstream default configuration
2008-04-16 16:33:05 +00:00
Group : System/GUI/GNOME
2011-07-06 17:05:29 +00:00
Requires : %{name} = %{version}
2008-04-16 16:33:05 +00:00
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)
2011-07-06 17:05:29 +00:00
BuildArch : noarch
2011-07-07 09:16:38 +00:00
#BRAND: Provide one file:
#BRAND: /etc/gdm/custom.conf
#BRAND: Default configuration of gdm
2008-04-16 16:33:05 +00:00
%description branding-upstream
2011-06-17 07:02:57 +00:00
The GNOME Display Manager is a system service that is responsible for
providing graphical log-ins and managing local and remote displays.
2008-04-16 16:33:05 +00:00
2011-07-06 17:05:29 +00:00
This package provides the upstream default configuration for gdm.
2011-09-07 01:01:35 +00:00
%package -n gdmflexiserver
2011-09-07 03:49:36 +00:00
Summary : Gdmflexiserver Compatibility Wrapper for Display Managers
2011-09-07 01:01:35 +00:00
Group : System/GUI/GNOME
2011-09-07 03:49:36 +00:00
Suggests : gdm
2011-09-07 01:01:35 +00:00
BuildArch : noarch
%description -n gdmflexiserver
2011-09-07 03:49:36 +00:00
The gdmflexiserver tool interacts with the display manager to
enable fast user switching. This package contains a wrapper that
selects the correct gdmflexiserver implementatoin, based on the
running display manager.
2011-09-07 01:01:35 +00:00
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
2011-10-07 12:10:57 +00:00
#disabled, needed for patch10
2012-03-22 06:09:55 +00:00
#gnome-patch-translation-prepare
2010-12-21 11:07:40 +00:00
%patch0 -p1
2008-08-13 23:48:24 +00:00
%patch2 -p1
2010-12-21 11:07:40 +00:00
%patch3 -p1
2008-08-13 23:48:24 +00:00
%patch4 -p1
2008-09-24 13:25:23 +00:00
%patch6 -p1
%patch7 -p1
2010-01-18 14:27:14 +00:00
%patch8 -p1
2010-10-15 14:46:24 +00:00
%patch9 -p1
2011-09-07 03:49:36 +00:00
#%%patch10 -p1
2012-03-22 06:09:55 +00:00
%patch15 -p1
2008-11-24 15:02:35 +00:00
%patch18 -p1
2009-09-28 16:08:57 +00:00
%patch34 -p1
2010-05-13 22:43:13 +00:00
%patch35 -p0
2009-12-04 22:47:18 +00:00
%patch40 -p1
2008-08-22 22:26:31 +00:00
%patch60
2012-03-22 06:09:55 +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 \
2011-06-17 07:02:57 +00:00
--disable-static \
2011-04-25 09:10:54 +00:00
--libexecdir=%{_prefix} /lib/gdm \
--localstatedir=%{_localstatedir} \
--with-at-spi-registryd-directory=%{_libexecdir} /at-spi \
--with-consolekit-directory=%{_libexecdir} /ConsoleKit \
2011-09-07 12:34:54 +00:00
--with-check-accelerated-directory=%{_libexecdir} \
2011-04-25 09:10:54 +00:00
--with-selinux \
--enable-ipv6 \
2012-03-28 08:21:22 +00:00
%if %{with_systemd}
2012-03-21 15:00:19 +00:00
--with-systemd \
2012-03-28 08:21:22 +00:00
%endif
2012-03-22 06:09:55 +00:00
--with-console-kit \
2011-09-07 03:49:36 +00:00
%if %{enable_split_authentication}
--enable-split-authentication \
%else
--disable-split-authentication \
%endif
2011-04-25 09:10:54 +00:00
--disable-scrollkeeper
%__make %{?jobs:-j%jobs} V=1
2006-12-28 23:05:20 +00:00
%install
2011-06-17 07:02:57 +00:00
%make_install
2009-12-08 09:25:28 +00:00
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot} %{_datadir} /locale/en@shaw/LC_MESSAGES/*
%endif
2011-06-17 07:02:57 +00:00
find %{buildroot} %{_libdir} -name '*.la' -type f -delete -print
2011-09-07 03:49:36 +00:00
%if ! %{enable_split_authentication}
2011-06-17 07:02:57 +00:00
# Create extensions directory if it's not there yet, so we can package it
test ! -d %{buildroot} %{_libdir} /gdm/simple-greeter/extensions
mkdir -p %{buildroot} %{_libdir} /gdm/simple-greeter/extensions
2011-09-07 03:49:36 +00:00
%endif
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
2012-02-12 20:16:58 +00:00
# dconf database, rebuilt in scriptlets; touch it for %%ghost
touch %{buildroot} %{_sysconfdir} /dconf/db/gdm
2011-09-07 12:34:54 +00:00
## Install PAM files.
2006-12-28 23:05:20 +00:00
mkdir -p $RPM_BUILD_ROOT /etc/pam.d
2011-09-07 12:34:54 +00:00
# Generic pam config
2011-09-07 03:49:36 +00:00
cp %{SOURCE1} $RPM_BUILD_ROOT /etc/pam.d/gdm
2011-09-07 12:34:54 +00:00
# Pam config for autologin
2011-09-07 03:49:36 +00:00
cp %{SOURCE2} $RPM_BUILD_ROOT /etc/pam.d/gdm-autologin
2011-09-07 12:34:54 +00:00
# Pam config for the greeter session
2011-09-07 03:49:36 +00:00
cp %{SOURCE3} $RPM_BUILD_ROOT /etc/pam.d/gdm-welcome
2011-09-07 12:34:54 +00:00
# The default gdm pam configuration is the one to be used as pam-password too
%if %{enable_split_authentication}
rm $RPM_BUILD_ROOT /etc/pam.d/gdm-password
echo " W e a r e n o t r e a d y f o r t h i s , w e n e e d t o k n o w w h a t t o p u t i n g d m - f i n g e r p r i n t a n d g d m - s m a r t c a r d p a m c o n f i g f i l e s . "
false
%endif
ln -s gdm $RPM_BUILD_ROOT /etc/pam.d/gdm-password
## Install other files
2006-12-28 23:05:20 +00:00
# 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
2011-09-07 03:49:36 +00:00
# Move gdmflexiserver to libexecdir and replace it with the compatibility wrapper
2011-09-07 01:01:35 +00:00
mv $RPM_BUILD_ROOT %{_bindir} /gdmflexiserver $RPM_BUILD_ROOT %{_libexecdir} /gdm/gdmflexiserver
2011-09-07 03:49:36 +00:00
install -m 755 %{SOURCE4} $RPM_BUILD_ROOT %{_bindir} /gdmflexiserver
# Install /etc/xinit.d/xdm integration script
2011-09-21 16:12:05 +00:00
install -D -m 644 %{SOURCE5} %{buildroot} %{_libexecdir} /X11/displaymanagers/gdm
2011-09-07 03:49:36 +00:00
# Install other files
mkdir -p $RPM_BUILD_ROOT %{_localstatedir} /log/gdm
mkdir -p $RPM_BUILD_ROOT %{_localstatedir} /run/gdm
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
2011-09-07 03:49:36 +00:00
%find_lang %{name} %{?no_lang_C}
2007-08-05 09:40:20 +00:00
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
2012-03-21 15:00:19 +00:00
%pre
2006-12-28 23:05:20 +00:00
/usr/sbin/groupadd -r gdm 2> /dev/null || :
2011-11-08 08:50:56 +00:00
/usr/sbin/useradd -r -o -g gdm -G video -s /bin/false \
2006-12-28 23:05:20 +00:00
-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 || :
2011-11-08 08:50:56 +00:00
/usr/sbin/usermod -g gdm -G video -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
2010-10-15 14:46:24 +00:00
# Fix how DISPLAYMANAGER_PASSWORD_LESS_LOGIN is used. Before 11.4,
# /etc/pam.d/gdm was changed to use pam_permit. We don't want this anymore.
if test -f /sbin/conf.d/SuSEconfig.gdm; then
grep -q pam_permit.so /etc/pam.d/gdm
if test $? -eq 0; then
# We'll just use the file from the new package
mv /etc/pam.d/gdm /etc/pam.d/gdm.rpmold
fi
fi
2006-12-28 23:05:20 +00:00
2011-02-13 21:06:10 +00:00
%post
2011-09-21 16:12:05 +00:00
%glib2_gsettings_schema_post
2011-02-13 21:06:10 +00:00
%icon_theme_cache_post
2012-03-21 15:00:19 +00:00
%posttrans
2012-01-17 13:47:10 +00:00
# Create dconf database for gdm, to lockdown the gdm session
dconf update
2007-01-23 20:25:59 +00:00
2006-12-28 23:05:20 +00:00
%postun
%insserv_cleanup
2011-09-21 16:12:05 +00:00
%glib2_gsettings_schema_postun
2011-02-13 21:06:10 +00:00
%icon_theme_cache_postun
2006-12-28 23:05:20 +00:00
2011-09-07 03:49:36 +00:00
%post -n libgdmgreeter1 -p /sbin/ldconfig
%postun -n libgdmgreeter1 -p /sbin/ldconfig
2011-06-17 07:02:57 +00:00
%post -n libgdmsimplegreeter1 -p /sbin/ldconfig
%postun -n libgdmsimplegreeter1 -p /sbin/ldconfig
2012-03-21 15:00:19 +00:00
%files
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
2011-02-13 21:06:10 +00:00
%dir %{_datadir} /gnome/
%dir %{_datadir} /gnome/help/
%dir %{_datadir} /gnome/help/%{name} /
%doc %{_datadir} /gnome/help/%{name} /C/
%dir %{_datadir} /omf/
%dir %{_datadir} /omf/%{name} /
%doc %{_datadir} /omf/%{name} /%{name} -C.omf
2007-01-12 15:12:54 +00:00
%dir %config %{_sysconfdir} /gdm
%config %{_sysconfdir} /gdm/[IPXl]*
2010-08-09 21:51:59 +00:00
%{_sbindir} /gdm
2011-09-07 01:01:35 +00:00
%{_bindir} /gdm
%{_bindir} /gdm-screenshot
2010-09-23 22:26:45 +00:00
%{_datadir} /gdm/
2011-09-21 16:12:05 +00:00
%{_datadir} /glib-2.0/schemas/org.gnome.login-screen.gschema.xml
2011-09-07 03:49:36 +00:00
%{_datadir} /gnome-session/sessions/gdm-fallback.session
%{_datadir} /gnome-session/sessions/gdm-shell.session
2011-04-25 09:22:25 +00:00
%{_datadir} /icons/*/*/*/*.*
%{_datadir} /pixmaps/*.png
2010-05-27 23:30:31 +00:00
%dir %{_libexecdir} /gdm
%{_libexecdir} /gdm/gdm-*
2011-09-07 01:01:35 +00:00
%{_libexecdir} /gdm/gdmflexiserver
2007-01-12 15:12:54 +00:00
%attr (750,gdm,gdm) %dir %{_localstatedir} /lib/gdm
2010-10-15 14:46:24 +00:00
%ghost %attr (751,gdm,gdm) %dir %{_localstatedir} /run/gdm
2007-01-12 15:12:54 +00:00
%attr (750,gdm,gdm) %dir %{_localstatedir} /log/gdm
2009-10-05 23:59:05 +00:00
%dir %{_localstatedir} /cache/gdm
2011-09-07 03:49:36 +00:00
%config /etc/pam.d/gdm
%config /etc/pam.d/gdm-autologin
2012-01-17 13:47:10 +00:00
%config /etc/pam.d/gdm-fingerprint
2011-09-07 12:34:54 +00:00
%config /etc/pam.d/gdm-password
2012-01-17 13:47:10 +00:00
%config /etc/pam.d/gdm-smartcard
2011-09-07 03:49:36 +00:00
%config /etc/pam.d/gdm-welcome
2008-08-15 21:19:18 +00:00
%config %{_sysconfdir} /dbus-1/system.d/gdm.conf
2011-09-21 16:12:05 +00:00
%dir %config %{_sysconfdir} /dconf/db/gdm.d
%dir %config %{_sysconfdir} /dconf/db/gdm.d/locks
2012-01-17 13:47:10 +00:00
%{_sysconfdir} /dconf/db/gdm.d/00-upstream-settings
%{_sysconfdir} /dconf/db/gdm.d/locks/00-upstream-settings-locks
2012-02-12 20:16:58 +00:00
%ghost %{_sysconfdir} /dconf/db/gdm
%{_sysconfdir} /dconf/profile/gdm
2011-09-07 03:49:36 +00:00
# /etc/xinit.d/xdm integration
2011-09-21 16:12:05 +00:00
%dir %{_libexecdir} /X11/displaymanagers
%{_libexecdir} /X11/displaymanagers/gdm
2011-09-07 03:49:36 +00:00
# Exclude simple-greeter extensions
%exclude %{_datadir} /gdm/simple-greeter/extensions
%files -n libgdmgreeter1
%defattr (-,root,root)
%{_libdir} /libgdmgreeter.so.*
2011-12-12 15:55:49 +00:00
%files -n typelib-1_0-GdmGreeter-1_0
%defattr (-,root,root)
2011-09-07 03:49:36 +00:00
%{_libdir} /girepository-1.0/GdmGreeter-1.0.typelib
2008-03-21 03:03:15 +00:00
2011-06-17 07:02:57 +00:00
%files -n libgdmsimplegreeter1
%defattr (-,root,root)
%{_libdir} /libgdmsimplegreeter.so.*
# Own directory where extensions are put
%dir %{_datadir} /gdm
%dir %{_datadir} /gdm/simple-greeter
%dir %{_datadir} /gdm/simple-greeter/extensions
%dir %{_libdir} /gdm
%dir %{_libdir} /gdm/simple-greeter
%dir %{_libdir} /gdm/simple-greeter/extensions
2011-09-07 12:34:54 +00:00
# The extension for non-split authentication
%{_datadir} /gdm/simple-greeter/extensions/unified/
2011-09-07 03:49:36 +00:00
%if %{enable_split_authentication}
%{_datadir} /gdm/simple-greeter/extensions/password/
%{_libdir} /gdm/simple-greeter/extensions/libpassword.so
%endif
%if %{enable_split_authentication}
2011-09-09 10:01:55 +00:00
2011-09-07 03:49:36 +00:00
%files simple-greeter-extensions
%defattr (-,root,root)
# fingerprint
%{_datadir} /gdm/simple-greeter/extensions/fingerprint/
%{_libdir} /gdm/simple-greeter/extensions/libfingerprint.so
# smartcard
%{_datadir} /gdm/simple-greeter/extensions/smartcard/
%{_libdir} /gdm/simple-greeter/extensions/libsmartcard.so
%endif
2011-06-17 07:02:57 +00:00
2011-09-07 03:49:36 +00:00
%files devel
2011-06-17 07:02:57 +00:00
%defattr (-,root,root)
%{_includedir} /gdm/
2011-09-07 03:49:36 +00:00
%{_libdir} /libgdmgreeter.so
2011-06-17 07:02:57 +00:00
%{_libdir} /libgdmsimplegreeter.so
2011-09-07 03:49:36 +00:00
%{_libdir} /pkgconfig/gdmgreeter.pc
2011-06-17 07:02:57 +00:00
%{_libdir} /pkgconfig/gdmsimplegreeter.pc
2011-09-07 03:49:36 +00:00
%{_datadir} /gir-1.0/GdmGreeter-1.0.gir
2011-06-17 07:02:57 +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
2011-09-07 01:01:35 +00:00
%files -n gdmflexiserver
%defattr (-,root,root)
%{_bindir} /gdmflexiserver
2008-08-13 23:48:24 +00:00
%files lang -f %{name}.lang
2008-04-16 16:33:05 +00:00
2007-02-27 07:45:46 +00:00
%changelog