3 # - s=/dev/null=/home/services/xdm= in %%trigger for graceful upgrade from xdm/kdm/gdm 2.2
4 # - check /etc/pam.d/gdm-autologin
7 %bcond_without selinux # without selinux
9 Summary: GNOME Display Manager
10 Summary(es.UTF-8): Administrador de Entrada del GNOME
11 Summary(ja.UTF-8): GNOME ディスプレイマネージャ
12 Summary(pl.UTF-8): gdm - zarządca ekranów GNOME
13 Summary(pt_BR.UTF-8): Gerenciador de Entrada do GNOME
14 Summary(ru.UTF-8): Дисплейный менеджер GNOME
15 Summary(uk.UTF-8): Дисплейний менеджер GNOME
20 Group: X11/Applications
21 Source0: http://ftp.gnome.org/pub/GNOME/sources/gdm/2.20/gdm-%{version}.tar.bz2
22 # Source0-md5: 67696b64c81c317f61065810a32e8b36
25 Source3: gdm-pld-logo.png
26 # http://cvs.pld-linux.org/cgi-bin/cvsweb/pld-artwork/gdm/storky/
27 Source4: gdm-storky.tar.gz
28 # Source4-md5: e293fbe4a60004056f6894463b874ae8
29 Source5: gdm-autologin.pamd
30 Patch0: gdm-xdmcp.patch
31 Patch1: gdm-conf.patch
32 Patch2: gdm-xsession.patch
33 Patch3: gdm-desktop.patch
34 Patch4: gdm-defaults.patch
35 Patch5: xinit-sh.patch
36 Patch6: missing-prototypes.patch
37 Patch7: gdm-format.patch
38 Patch8: gdm-includes.patch
39 URL: http://www.gnome.org/projects/gdm/
40 BuildRequires: ConsoleKit-devel
41 BuildRequires: attr-devel
42 BuildRequires: audit-libs-devel
43 BuildRequires: autoconf >= 2.52
44 BuildRequires: automake
45 BuildRequires: dbus-glib-devel >= 0.73
46 BuildRequires: docbook-dtd412-xml
47 BuildRequires: gettext-tools
48 BuildRequires: gnome-common
49 BuildRequires: gnome-doc-utils
50 BuildRequires: gtk+2-devel >= 2:2.12.0
51 BuildRequires: intltool >= 0.36.1
52 BuildRequires: libart_lgpl-devel >= 2.3.19
53 BuildRequires: libglade2-devel >= 1:2.6.2
54 BuildRequires: libgnomeui-devel >= 2.20.0
55 BuildRequires: libgsf-devel >= 1.14.6
56 BuildRequires: librsvg-devel >= 1:2.18.1
57 %{?with_selinux:BuildRequires: libselinux-devel}
58 BuildRequires: libtool
59 BuildRequires: libxml2-devel >= 1:2.6.29
60 BuildRequires: pam-devel
61 BuildRequires: perl-modules
62 BuildRequires: pkgconfig
63 BuildRequires: rpmbuild(find_lang) >= 1.23
64 BuildRequires: rpmbuild(macros) >= 1.627
65 BuildRequires: scrollkeeper
66 BuildRequires: sed >= 4.0
67 BuildRequires: xorg-lib-libXdmcp-devel
68 BuildRequires: xorg-lib-libXi-devel
69 BuildRequires: xorg-lib-libXinerama-devel
70 BuildRequires: xorg-lib-libdmx-devel
71 Requires(post,postun): /usr/bin/scrollkeeper-update
72 Requires(post,postun): gtk-update-icon-cache
73 Requires(post,postun): hicolor-icon-theme
74 Requires(postun): /usr/sbin/groupdel
75 Requires(postun): /usr/sbin/userdel
76 Requires(pre): /bin/id
77 Requires(pre): /usr/sbin/groupadd
78 Requires(pre): /usr/sbin/useradd
79 Requires(post,preun,postun): systemd-units >= 38
80 Requires: libgnomeui >= 2.20.0
81 Requires: pam >= 0.99.7.1
82 Requires: systemd-units >= 38
84 Requires: xinitrc-ng >= 1.0
85 Requires: xorg-app-sessreg
86 Requires: xorg-app-xmodmap
89 Provides: gdm = 2:%{version}
92 Obsoletes: gdm <= 2:%{version}
94 Conflicts: gdm > 2:%{version}
95 # sr@Latn vs. sr@latin
96 Conflicts: glibc-misc < 6:2.7
97 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
99 %define _localstatedir /var/lib
102 Gdm (the GNOME Display Manager) is a highly configurable
103 reimplementation of xdm, the X Display Manager. Gdm allows you to log
104 into your system with the X Window System running and supports running
105 several different X sessions on your local machine at the same time.
107 %description -l es.UTF-8
108 Administrador de Entrada del GNOME.
110 %description -l ja.UTF-8
111 Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display
112 Manager の再実装版です。 Gdm を使うと、 X Window System
114 システムにいろいろなセッションを選択してログインすることができます。
116 このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。
118 %description -l pl.UTF-8
119 Gdm jest wysokokonfigurowalną reimplementacją xdma. Gdm pozwala
120 logować się do systemu z poziomu X11 i wspiera jednoczesną pracę kilku
121 różnych sesji X na lokalnej maszynie.
123 %description -l pt_BR.UTF-8
124 Gerenciador de Entrada do GNOME.
126 %description -l ru.UTF-8
127 GDM (GNOME Display Manager) - это реимплементация xdm (X Display
128 Manager). GDM позволяет вам входить в систему, на которой запущено X
129 Window и поддерживает работу нескольуих разных X сеансов одновременно.
131 %description -l uk.UTF-8
132 GDM (GNOME Display Manager) - це реімплементація xdm (X Display
133 Manager). GDM дозволяє вам входити в систему, на якій запущено X
134 Window та підтримує роботу кількох різних X сеансів одночасно.
137 Summary: Faces icons for GDM
138 Summary(pl.UTF-8): Ikony twarzy dla GDM
139 Group: X11/Applications
140 Conflicts: gnome-control-center >= 3
145 %description faces -l pl.UTF-8
146 Ikony twarzy dla GDM.
149 Summary: Xnest (ie embedded X) server for GDM
150 Summary(pl.UTF-8): Serwer Xnest dla GDM
151 Group: X11/Applications
152 Requires: %{name} = %{version}-%{release}
153 Requires: xorg-xserver-Xnest
154 Obsoletes: gdm-Xnest <= 2:%{version}
157 This package add support for Xnest server in gdm.
159 %description Xnest -l pl.UTF-8
160 Ten pakiet dodaje do gdm wsparcie dla Xnest.
163 Summary: Init script for GDM
164 Summary(pl.UTF-8): Skrypt init dla GDM-a
165 Group: X11/Applications
166 Requires(post,preun): /sbin/chkconfig
167 Requires: %{name} = %{version}-%{release}
169 Obsoletes: gdm-init <= 2:%{version}
170 Conflicts: gdm-init > 2:%{version}
175 %description init -l pl.UTF-8
176 Skrypt init dla GDM-a.
179 %setup -q -a4 -n gdm-%{version}
190 %{__sed} -i -e 's#sr@Latn#sr@latin#' po/LINGUAS
191 %{__mv} po/sr@{Latn,latin}.po
202 ZENITY=/usr/bin/zenity \
203 --disable-console-helper \
204 --disable-scrollkeeper \
205 --enable-authentication-scheme=pam \
206 --enable-secureremote \
208 --with-pam-prefix=/etc \
209 --with-tcp-wrappers \
210 --with-selinux%{!?with_selinux:=no} \
220 rm -rf $RPM_BUILD_ROOT
221 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \
222 $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm} \
223 $RPM_BUILD_ROOT%{_datadir}/gdm/themes/storky \
224 $RPM_BUILD_ROOT%{systemdunitdir}
227 DESTDIR=$RPM_BUILD_ROOT \
230 %{__mv} $RPM_BUILD_ROOT%{_datadir}/gdm/BuiltInSessions/default.desktop \
231 $RPM_BUILD_ROOT%{_datadir}/xsessions
233 cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm
234 cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin
235 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm
237 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
239 ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/gdm.service
241 cp -p storky/*.* $RPM_BUILD_ROOT%{_datadir}/gdm/themes/storky/
243 touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm
245 %find_lang gdm --with-gnome --with-omf --all-name
247 # Remove useless files
248 %{__rm} $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.{la,a}
250 # moved to gnome-session
251 %{__rm} $RPM_BUILD_ROOT%{_datadir}/xsessions/gnome.desktop
254 rm -rf $RPM_BUILD_ROOT
257 %groupadd -g 55 -r -f xdm
258 %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm
261 %scrollkeeper_update_post
262 %update_icon_cache hicolor
266 %scrollkeeper_update_postun
267 %update_icon_cache hicolor
270 if [ "$1" = "0" ]; then
275 %triggerpostun -- gdm < 1:2.13.0.8-1
276 if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then
277 mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf
281 /sbin/chkconfig --add gdm
282 if [ -f /var/lock/subsys/gdm ]; then
283 echo "Run \"/sbin/service gdm restart\" to restart gdm." >&2
284 echo "WARNING: it will terminate all sessions opened from gdm!" >&2
286 echo "Run \"/sbin/service gdm start\" to start gdm." >&2
290 if [ "$1" = "0" ]; then
292 /sbin/chkconfig --del gdm
296 %defattr(644,root,root,755)
297 %doc AUTHORS ChangeLog NEWS README TODO
298 %attr(755,root,root) %{_bindir}/gdm-dmx-reconnect-proxy
299 %attr(755,root,root) %{_bindir}/gdmdynamic
300 %attr(755,root,root) %{_bindir}/gdmflexiserver
301 %attr(755,root,root) %{_bindir}/gdmphotosetup
302 %attr(755,root,root) %{_bindir}/gdmthemetester
303 %attr(755,root,root) %{_libdir}/gdm-ssh-session
304 %attr(755,root,root) %{_libdir}/gdmaskpass
305 %attr(755,root,root) %{_libdir}/gdmopen
306 %attr(755,root,root) %{_libdir}/gdmtranslate
307 %attr(755,root,root) %{_libdir}/gdmchooser
308 %attr(755,root,root) %{_libdir}/gdmgreeter
309 %attr(755,root,root) %{_libdir}/gdmlogin
310 %attr(755,root,root) %{_sbindir}/gdm
311 %attr(755,root,root) %{_sbindir}/gdm-binary
312 %attr(755,root,root) %{_sbindir}/gdm-restart
313 %attr(755,root,root) %{_sbindir}/gdm-safe-restart
314 %attr(755,root,root) %{_sbindir}/gdm-stop
315 %attr(755,root,root) %{_sbindir}/gdmsetup
317 %{systemdunitdir}/gdm.service
318 %dir %{_sysconfdir}/gdm
319 %dir %{_sysconfdir}/gdm/Init
320 %dir %{_sysconfdir}/gdm/PreSession
321 %dir %{_sysconfdir}/gdm/PostSession
322 %dir %{_sysconfdir}/gdm/PostLogin
323 %dir %{_sysconfdir}/gdm/modules
324 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/Init/Default
325 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/PostLogin/Default.sample
326 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/PostSession/Default
327 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/PreSession/Default
328 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/XKeepsCrashing
329 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/Xsession
330 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/custom.conf
331 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/locale.alias
332 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/modules/*
334 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm*
335 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm
336 %attr(1770,root,xdm) /var/lib/gdm
337 %attr(750,xdm,xdm) /var/log/gdm
338 %attr(750,xdm,xdm) /home/services/xdm
339 %{_pixmapsdir}/gdm-foot-logo.png
340 %{_pixmapsdir}/gdm-pld-logo.png
341 %{_pixmapsdir}/nobody.png
342 %{_pixmapsdir}/nohost.png
344 %{_datadir}/xsessions/default.desktop
345 %{_datadir}/xsessions/ssh.desktop
346 %{_iconsdir}/hicolor/*x*/apps/gdm*.png
347 %{_iconsdir}/hicolor/scalable/apps/gdm*.svg
348 %attr(755,root,root) %{_libdir}/gtk-2.0/modules/libdwellmouselistener.so
349 %attr(755,root,root) %{_libdir}/gtk-2.0/modules/libkeymouselistener.so
350 %{_mandir}/man1/gdm.1*
353 %defattr(644,root,root,755)
357 %defattr(644,root,root,755)
358 %attr(755,root,root) %{_bindir}/gdmXnest
359 %attr(755,root,root) %{_bindir}/gdmXnestchooser
362 %defattr(644,root,root,755)
363 %attr(754,root,root) /etc/rc.d/init.d/gdm