4 # Merged to HEAD with RM's permission. If you need GDM 2.20,
5 # create a separate spec for your personal use (like gdm-220.spec)
8 # - s=/dev/null=/home/services/xdm= in %%trigger for graceful upgrade from xdm/kdm/gdm 2.2
9 # - check /etc/pam.d/gdm-autologin
12 %bcond_without selinux # without selinux
14 Summary: GNOME Display Manager
15 Summary(es.UTF-8): Administrador de Entrada del GNOME
16 Summary(ja.UTF-8): GNOME ディスプレイマネージャ
17 Summary(pl.UTF-8): gdm - zarządca ekranów GNOME
18 Summary(pt_BR.UTF-8): Gerenciador de Entrada do GNOME
19 Summary(ru.UTF-8): Дисплейный менеджер GNOME
20 Summary(uk.UTF-8): Дисплейний менеджер GNOME
26 Group: X11/Applications
27 Source0: http://ftp.gnome.org/pub/GNOME/sources/gdm/2.28/%{name}-%{version}.tar.bz2
28 # Source0-md5: 7724929a6b75ba269fd519d4a4995bbb
31 Source3: %{name}-pld-logo.png
32 #Source4: %{name}-autologin.pamd
33 Patch0: %{name}-xdmcp.patch
34 Patch1: %{name}-polkit.patch
35 Patch2: %{name}-xsession.patch
36 Patch4: %{name}-defaults.patch
37 URL: http://www.gnome.org/projects/gdm/
38 BuildRequires: ConsoleKit-devel >= 0.4.1
39 BuildRequires: GConf2-devel >= 2.24.0
40 BuildRequires: attr-devel
41 BuildRequires: audit-libs-devel
42 BuildRequires: autoconf >= 2.60
43 BuildRequires: automake >= 1:1.9
44 BuildRequires: check >= 0.9.4
45 BuildRequires: dbus-glib-devel >= 0.74
46 BuildRequires: gettext-devel
47 BuildRequires: glib2-devel >= 1:2.16.0
48 BuildRequires: gnome-doc-utils
49 BuildRequires: gnome-panel-devel >= 2.24.0
50 BuildRequires: gtk+2-devel >= 2:2.14.0
51 BuildRequires: intltool >= 0.40.0
52 BuildRequires: libcanberra-gtk-devel >= 0.4
53 BuildRequires: libglade2-devel >= 1:2.6.2
54 %{?with_selinux:BuildRequires: libselinux-devel}
55 BuildRequires: libtool
56 BuildRequires: libxklavier-devel >= 4.0-2
57 BuildRequires: pam-devel
58 BuildRequires: perl-modules
59 BuildRequires: pkgconfig
60 BuildRequires: polkit-gnome-devel >= 0.92
61 BuildRequires: rpmbuild(find_lang) >= 1.23
62 BuildRequires: rpmbuild(macros) >= 1.311
63 BuildRequires: scrollkeeper
64 BuildRequires: xorg-lib-libXdmcp-devel
65 BuildRequires: xorg-lib-libXi-devel
66 BuildRequires: xorg-lib-libXinerama-devel
67 BuildRequires: xorg-lib-libdmx-devel
68 BuildRequires: docbook-dtd412-xml
69 Requires(post,postun): gtk+2
70 Requires(post,postun): hicolor-icon-theme
71 Requires(post,postun): /usr/bin/scrollkeeper-update
72 Requires(postun): /usr/sbin/groupdel
73 Requires(postun): /usr/sbin/userdel
74 Requires(pre): /bin/id
75 Requires(pre): /usr/sbin/groupadd
76 Requires(pre): /usr/sbin/useradd
77 Requires: /usr/bin/Xorg
78 Requires: gnome-session >= 2.24.0
79 Requires: gnome-settings-daemon >= 2.24.0
80 Requires: libgnomeui >= 2.24.0
81 Requires: pam >= 0.99.7.1
82 Requires: polkit-gnome >= 0.92
84 Requires: xorg-app-sessreg
85 Requires: xorg-app-xmodmap
91 # sr@Latn vs. sr@latin
92 Conflicts: glibc-misc < 6:2.7
93 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
96 Gdm (the GNOME Display Manager) is a highly configurable
97 reimplementation of xdm, the X Display Manager. Gdm allows you to log
98 into your system with the X Window System running and supports running
99 several different X sessions on your local machine at the same time.
101 %description -l es.UTF-8
102 Administrador de Entrada del GNOME.
104 %description -l ja.UTF-8
105 Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display
106 Manager の再実装版です。 Gdm を使うと、 X Window System
108 システムにいろいろなセッションを選択してログインすることができます。
110 このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。
112 %description -l pl.UTF-8
113 Gdm jest wysokokonfigurowalną reimplementacją xdma. Gdm pozwala
114 logować się do systemu z poziomu X11 i wspiera jednoczesną pracę kilku
115 różnych sesji X na lokalnej maszynie.
117 %description -l pt_BR.UTF-8
118 Gerenciador de Entrada do GNOME.
120 %description -l ru.UTF-8
121 GDM (GNOME Display Manager) - это реимплементация xdm (X Display
122 Manager). GDM позволяет вам входить в систему, на которой запущено X
123 Window и поддерживает работу нескольуих разных X сеансов одновременно.
125 %description -l uk.UTF-8
126 GDM (GNOME Display Manager) - це реімплементація xdm (X Display
127 Manager). GDM дозволяє вам входити в систему, на якій запущено X
128 Window та підтримує роботу кількох різних X сеансів одночасно.
131 Summary: Init script for GDM
132 Summary(pl.UTF-8): Skrypt init dla GDM-a
133 Group: X11/Applications
134 Requires(post,preun): /sbin/chkconfig
135 Requires: %{name} = %{epoch}:%{version}-%{release}
141 %description init -l pl.UTF-8
142 Skrypt init dla GDM-a.
150 rm -f data/gdm.schemas.in
161 --disable-console-helper \
162 --disable-scrollkeeper \
164 --enable-authentication-scheme=pam \
165 --with-pam-prefix=/etc \
166 --with-tcp-wrappers=yes \
167 --with%{!?with_selinux:out}-selinux \
169 --with-xinerama=yes \
176 rm -rf $RPM_BUILD_ROOT
177 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \
178 $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm} \
181 DESTDIR=$RPM_BUILD_ROOT \
184 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm
185 #install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin
186 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm
188 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
190 touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm
192 %find_lang %{name} --with-gnome --with-omf --all-name
194 # Remove useless files
195 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.{la,a}
197 # moved to gnome-session
198 rm -f $RPM_BUILD_ROOT%{_datadir}/xsessions/gnome.desktop
201 rm -rf $RPM_BUILD_ROOT
204 %groupadd -g 55 -r -f xdm
205 %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm
208 %gconf_schema_install gdm-simple-greeter.schemas
209 %scrollkeeper_update_post
210 %update_icon_cache hicolor
213 %gconf_schema_uninstall gdm-simple-greeter.schemas
216 %scrollkeeper_update_postun
217 %update_icon_cache hicolor
219 if [ "$1" = "0" ]; then
224 %triggerpostun -- %{name} < 1:2.13.0.8-1
225 if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then
226 mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf
230 /sbin/chkconfig --add gdm
231 if [ -f /var/lock/subsys/gdm ]; then
232 echo "Run \"/sbin/service gdm restart\" to restart gdm." >&2
233 echo "WARNING: it will terminate all sessions opened from gdm!" >&2
235 echo "Run \"/sbin/service gdm start\" to start gdm." >&2
239 if [ "$1" = "0" ]; then
241 /sbin/chkconfig --del gdm
244 %files -f %{name}.lang
245 %defattr(644,root,root,755)
246 %doc AUTHORS ChangeLog NEWS README TODO
247 %attr(755,root,root) %{_libexecdir}/gdm-crash-logger
248 %attr(755,root,root) %{_libexecdir}/gdm-factory-slave
249 %attr(755,root,root) %{_libexecdir}/gdm-host-chooser
250 %attr(755,root,root) %{_libexecdir}/gdm-product-slave
251 %attr(755,root,root) %{_libexecdir}/gdm-session-worker
252 %attr(755,root,root) %{_libexecdir}/gdm-simple-chooser
253 %attr(755,root,root) %{_libexecdir}/gdm-simple-greeter
254 %attr(755,root,root) %{_libexecdir}/gdm-simple-slave
255 %attr(755,root,root) %{_libexecdir}/gdm-user-switch-applet
256 %attr(755,root,root) %{_libexecdir}/gdm-xdmcp-chooser-slave
257 %attr(755,root,root) %{_sbindir}/*
258 %attr(755,root,root) %{_bindir}/*
259 %dir %{_sysconfdir}/gdm
260 %dir %{_sysconfdir}/gdm/Init
261 %attr(755,root,root) %config %{_sysconfdir}/gdm/Init/Default
262 %attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession
263 %attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession
264 %attr(755,root,root) %config %{_sysconfdir}/gdm/Xsession
265 %dir %{_sysconfdir}/gdm/PostLogin
266 %config %{_sysconfdir}/gdm/PostLogin/Default.sample
267 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/custom.conf
268 %{_sysconfdir}/gdm/gdm.schemas
269 %{_sysconfdir}/gconf/schemas/gdm-simple-greeter.schemas
270 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
271 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm*
272 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm
273 %attr(750,xdm,xdm) %{_localstatedir}/gdm
274 %attr(750,xdm,xdm) %{_localstatedir}/log/gdm
275 %attr(750,xdm,xdm) /home/services/xdm
278 %{_datadir}/gnome-2.0/ui/GNOME_FastUserSwitchApplet.xml
279 %{_datadir}/polkit-1/actions/gdm.policy
280 %{_iconsdir}/hicolor/*/apps/*.png
281 %{_libdir}/bonobo/servers/*.server
282 %{_localstatedir}/lib/gdm
283 %attr(750,xdm,xdm) %dir /var/cache/gdm
286 %defattr(644,root,root,755)
287 %attr(754,root,root) /etc/rc.d/init.d/gdm