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 URL: http://www.gnome.org/projects/gdm/
36 BuildRequires: ConsoleKit-devel
37 BuildRequires: attr-devel
38 BuildRequires: audit-libs-devel
39 BuildRequires: autoconf >= 2.52
40 BuildRequires: automake
41 BuildRequires: dbus-glib-devel >= 0.73
42 BuildRequires: docbook-dtd412-xml
43 BuildRequires: gettext-devel
44 BuildRequires: gnome-common
45 BuildRequires: gnome-doc-utils
46 BuildRequires: gtk+2-devel >= 2:2.12.0
47 BuildRequires: intltool >= 0.36.1
48 BuildRequires: libart_lgpl-devel >= 2.3.19
49 BuildRequires: libglade2-devel >= 1:2.6.2
50 BuildRequires: libgnomeui-devel >= 2.20.0
51 BuildRequires: libgsf-devel >= 1.14.6
52 BuildRequires: librsvg-devel >= 1:2.18.1
53 %{?with_selinux:BuildRequires: libselinux-devel}
54 BuildRequires: libtool
55 BuildRequires: libxml2-devel >= 1:2.6.29
56 BuildRequires: pam-devel
57 BuildRequires: perl-modules
58 BuildRequires: pkgconfig
59 BuildRequires: rpmbuild(find_lang) >= 1.23
60 BuildRequires: rpmbuild(macros) >= 1.627
61 BuildRequires: scrollkeeper
62 BuildRequires: sed >= 4.0
63 BuildRequires: xorg-lib-libXdmcp-devel
64 BuildRequires: xorg-lib-libXi-devel
65 BuildRequires: xorg-lib-libXinerama-devel
66 BuildRequires: xorg-lib-libdmx-devel
68 Requires(post,postun): /usr/bin/scrollkeeper-update
69 Requires(post,postun): gtk-update-icon-cache
70 Requires(post,postun): hicolor-icon-theme
71 Requires(postun): /usr/sbin/groupdel
72 Requires(postun): /usr/sbin/userdel
73 Requires(pre): /bin/id
74 Requires(pre): /usr/sbin/groupadd
75 Requires(pre): /usr/sbin/useradd
76 Requires: libgnomeui >= 2.20.0
77 Requires: pam >= 0.99.7.1
78 Requires: systemd-units >= 37-0.10
80 Requires: xinitrc-ng >= 1.0
81 Requires: xorg-app-sessreg
82 Requires: xorg-app-xmodmap
85 Provides: gdm = 2:%{version}
88 Obsoletes: gdm <= 2:%{version}
90 Conflicts: gdm > 2:%{version}
91 # sr@Latn vs. sr@latin
92 Conflicts: glibc-misc < 6:2.7
93 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
95 %define _localstatedir /var/lib
98 Gdm (the GNOME Display Manager) is a highly configurable
99 reimplementation of xdm, the X Display Manager. Gdm allows you to log
100 into your system with the X Window System running and supports running
101 several different X sessions on your local machine at the same time.
103 %description -l es.UTF-8
104 Administrador de Entrada del GNOME.
106 %description -l ja.UTF-8
107 Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display
108 Manager の再実装版です。 Gdm を使うと、 X Window System
110 システムにいろいろなセッションを選択してログインすることができます。
112 このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。
114 %description -l pl.UTF-8
115 Gdm jest wysokokonfigurowalną reimplementacją xdma. Gdm pozwala
116 logować się do systemu z poziomu X11 i wspiera jednoczesną pracę kilku
117 różnych sesji X na lokalnej maszynie.
119 %description -l pt_BR.UTF-8
120 Gerenciador de Entrada do GNOME.
122 %description -l ru.UTF-8
123 GDM (GNOME Display Manager) - это реимплементация xdm (X Display
124 Manager). GDM позволяет вам входить в систему, на которой запущено X
125 Window и поддерживает работу нескольуих разных X сеансов одновременно.
127 %description -l uk.UTF-8
128 GDM (GNOME Display Manager) - це реімплементація xdm (X Display
129 Manager). GDM дозволяє вам входити в систему, на якій запущено X
130 Window та підтримує роботу кількох різних X сеансів одночасно.
133 Summary: Xnest (ie embedded X) server for GDM
134 Summary(pl.UTF-8): Serwer Xnest dla GDM
135 Group: X11/Applications
136 Requires: %{name} = %{version}-%{release}
137 Requires: xorg-xserver-Xnest
138 Obsoletes: gdm-Xnest <= 2:%{version}
141 This package add support for Xnest server in gdm.
143 %description Xnest -l pl.UTF-8
144 Ten pakiet dodaje do gdm wsparcie dla Xnest.
147 Summary: Init script for GDM
148 Summary(pl.UTF-8): Skrypt init dla GDM-a
149 Group: X11/Applications
150 Requires(post,preun): /sbin/chkconfig
151 Requires: %{name} = %{version}-%{release}
153 Obsoletes: gdm-init <= 2:%{version}
154 Conflicts: gdm-init > 2:%{version}
159 %description init -l pl.UTF-8
160 Skrypt init dla GDM-a.
163 %setup -q -a4 -n gdm-%{version}
170 sed -i -e 's#sr@Latn#sr@latin#' po/LINGUAS
171 mv po/sr@{Latn,latin}.po
182 --disable-console-helper \
183 --disable-scrollkeeper \
184 --with-console-kit=yes \
185 --enable-authentication-scheme=pam \
186 --enable-secureremote \
187 --with-pam-prefix=/etc \
188 --with-tcp-wrappers=yes \
189 --with%{!?with_selinux:out}-selinux \
190 --with-libaudit=yes \
192 --with-xinerama=yes \
199 rm -rf $RPM_BUILD_ROOT
200 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \
201 $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm} \
202 $RPM_BUILD_ROOT%{_datadir}/gdm/themes/storky \
203 $RPM_BUILD_ROOT%{systemdunitdir}
206 DESTDIR=$RPM_BUILD_ROOT \
209 mv $RPM_BUILD_ROOT%{_datadir}/gdm/BuiltInSessions/default.desktop \
210 $RPM_BUILD_ROOT%{_datadir}/xsessions
212 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm
213 install %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin
214 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm
216 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
218 ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/gdm.service
220 install storky/*.* $RPM_BUILD_ROOT%{_datadir}/gdm/themes/storky/
222 touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm
224 %find_lang gdm --with-gnome --with-omf --all-name
226 # Remove useless files
227 rm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.{la,a}
229 # moved to gnome-session
230 rm $RPM_BUILD_ROOT%{_datadir}/xsessions/gnome.desktop
233 rm -rf $RPM_BUILD_ROOT
236 %groupadd -g 55 -r -f xdm
237 %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm
240 %scrollkeeper_update_post
241 %update_icon_cache hicolor
245 %scrollkeeper_update_postun
246 %update_icon_cache hicolor
249 if [ "$1" = "0" ]; then
254 %triggerpostun -- gdm < 1:2.13.0.8-1
255 if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then
256 mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf
260 /sbin/chkconfig --add gdm
261 if [ -f /var/lock/subsys/gdm ]; then
262 echo "Run \"/sbin/service gdm restart\" to restart gdm." >&2
263 echo "WARNING: it will terminate all sessions opened from gdm!" >&2
265 echo "Run \"/sbin/service gdm start\" to start gdm." >&2
269 if [ "$1" = "0" ]; then
271 /sbin/chkconfig --del gdm
275 %defattr(644,root,root,755)
276 %doc AUTHORS ChangeLog NEWS README TODO
277 %attr(755,root,root) %{_bindir}/gdm-dmx-reconnect-proxy
278 %attr(755,root,root) %{_bindir}/gdmdynamic
279 %attr(755,root,root) %{_bindir}/gdmflexiserver
280 %attr(755,root,root) %{_bindir}/gdmphotosetup
281 %attr(755,root,root) %{_bindir}/gdmthemetester
282 %attr(755,root,root) %{_libdir}/gdm-ssh-session
283 %attr(755,root,root) %{_libdir}/gdmaskpass
284 %attr(755,root,root) %{_libdir}/gdmopen
285 %attr(755,root,root) %{_libdir}/gdmtranslate
286 %attr(755,root,root) %{_libdir}/gdmchooser
287 %attr(755,root,root) %{_libdir}/gdmgreeter
288 %attr(755,root,root) %{_libdir}/gdmlogin
289 %attr(755,root,root) %{_sbindir}/*
291 %{systemdunitdir}/gdm.service
292 %dir %{_sysconfdir}/gdm
293 %dir %{_sysconfdir}/gdm/Init
294 %dir %{_sysconfdir}/gdm/PreSession
295 %dir %{_sysconfdir}/gdm/PostSession
296 %dir %{_sysconfdir}/gdm/PostLogin
297 %dir %{_sysconfdir}/gdm/modules
298 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/Init/Default
299 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/PostLogin/Default.sample
300 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/PostSession/Default
301 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/PreSession/Default
302 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/XKeepsCrashing
303 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/Xsession
304 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/custom.conf
305 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/locale.alias
306 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/modules/*
308 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm*
309 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm
310 %attr(1770,root,xdm) /var/lib/gdm
311 %attr(750,xdm,xdm) /var/log/gdm
312 %attr(750,xdm,xdm) /home/services/xdm
315 %{_datadir}/xsessions/default.desktop
316 %{_datadir}/xsessions/ssh.desktop
317 %{_iconsdir}/hicolor/*/apps/*.png
318 %{_iconsdir}/hicolor/*/apps/*.svg
319 %attr(755,root,root) %{_libdir}/gtk-2.0/modules/lib*.so
323 %defattr(644,root,root,755)
324 %attr(755,root,root) %{_bindir}/gdmXnest
325 %attr(755,root,root) %{_bindir}/gdmXnestchooser
328 %defattr(644,root,root,755)
329 %attr(754,root,root) /etc/rc.d/init.d/gdm