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(post,preun,postun): systemd-units >= 38
77 Requires: libgnomeui >= 2.20.0
78 Requires: pam >= 0.99.7.1
79 Requires: systemd-units >= 38
81 Requires: xinitrc-ng >= 1.0
82 Requires: xorg-app-sessreg
83 Requires: xorg-app-xmodmap
86 Provides: gdm = 2:%{version}
89 Obsoletes: gdm <= 2:%{version}
91 Conflicts: gdm > 2:%{version}
92 # sr@Latn vs. sr@latin
93 Conflicts: glibc-misc < 6:2.7
94 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
96 %define _localstatedir /var/lib
99 Gdm (the GNOME Display Manager) is a highly configurable
100 reimplementation of xdm, the X Display Manager. Gdm allows you to log
101 into your system with the X Window System running and supports running
102 several different X sessions on your local machine at the same time.
104 %description -l es.UTF-8
105 Administrador de Entrada del GNOME.
107 %description -l ja.UTF-8
108 Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display
109 Manager の再実装版です。 Gdm を使うと、 X Window System
111 システムにいろいろなセッションを選択してログインすることができます。
113 このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。
115 %description -l pl.UTF-8
116 Gdm jest wysokokonfigurowalną reimplementacją xdma. Gdm pozwala
117 logować się do systemu z poziomu X11 i wspiera jednoczesną pracę kilku
118 różnych sesji X na lokalnej maszynie.
120 %description -l pt_BR.UTF-8
121 Gerenciador de Entrada do GNOME.
123 %description -l ru.UTF-8
124 GDM (GNOME Display Manager) - это реимплементация xdm (X Display
125 Manager). GDM позволяет вам входить в систему, на которой запущено X
126 Window и поддерживает работу нескольуих разных X сеансов одновременно.
128 %description -l uk.UTF-8
129 GDM (GNOME Display Manager) - це реімплементація xdm (X Display
130 Manager). GDM дозволяє вам входити в систему, на якій запущено X
131 Window та підтримує роботу кількох різних X сеансів одночасно.
134 Summary: Xnest (ie embedded X) server for GDM
135 Summary(pl.UTF-8): Serwer Xnest dla GDM
136 Group: X11/Applications
137 Requires: %{name} = %{version}-%{release}
138 Requires: xorg-xserver-Xnest
139 Obsoletes: gdm-Xnest <= 2:%{version}
142 This package add support for Xnest server in gdm.
144 %description Xnest -l pl.UTF-8
145 Ten pakiet dodaje do gdm wsparcie dla Xnest.
148 Summary: Init script for GDM
149 Summary(pl.UTF-8): Skrypt init dla GDM-a
150 Group: X11/Applications
151 Requires(post,preun): /sbin/chkconfig
152 Requires: %{name} = %{version}-%{release}
154 Obsoletes: gdm-init <= 2:%{version}
155 Conflicts: gdm-init > 2:%{version}
160 %description init -l pl.UTF-8
161 Skrypt init dla GDM-a.
164 %setup -q -a4 -n gdm-%{version}
171 sed -i -e 's#sr@Latn#sr@latin#' po/LINGUAS
172 mv po/sr@{Latn,latin}.po
183 --disable-console-helper \
184 --disable-scrollkeeper \
185 --with-console-kit=yes \
186 --enable-authentication-scheme=pam \
187 --enable-secureremote \
188 --with-pam-prefix=/etc \
189 --with-tcp-wrappers=yes \
190 --with%{!?with_selinux:out}-selinux \
191 --with-libaudit=yes \
193 --with-xinerama=yes \
200 rm -rf $RPM_BUILD_ROOT
201 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \
202 $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm} \
203 $RPM_BUILD_ROOT%{_datadir}/gdm/themes/storky \
204 $RPM_BUILD_ROOT%{systemdunitdir}
207 DESTDIR=$RPM_BUILD_ROOT \
210 mv $RPM_BUILD_ROOT%{_datadir}/gdm/BuiltInSessions/default.desktop \
211 $RPM_BUILD_ROOT%{_datadir}/xsessions
213 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm
214 install %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin
215 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm
217 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
219 ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/gdm.service
221 install storky/*.* $RPM_BUILD_ROOT%{_datadir}/gdm/themes/storky/
223 touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm
225 %find_lang gdm --with-gnome --with-omf --all-name
227 # Remove useless files
228 rm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.{la,a}
230 # moved to gnome-session
231 rm $RPM_BUILD_ROOT%{_datadir}/xsessions/gnome.desktop
234 rm -rf $RPM_BUILD_ROOT
237 %groupadd -g 55 -r -f xdm
238 %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm
241 %scrollkeeper_update_post
242 %update_icon_cache hicolor
246 %scrollkeeper_update_postun
247 %update_icon_cache hicolor
250 if [ "$1" = "0" ]; then
255 %triggerpostun -- gdm < 1:2.13.0.8-1
256 if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then
257 mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf
261 /sbin/chkconfig --add gdm
262 if [ -f /var/lock/subsys/gdm ]; then
263 echo "Run \"/sbin/service gdm restart\" to restart gdm." >&2
264 echo "WARNING: it will terminate all sessions opened from gdm!" >&2
266 echo "Run \"/sbin/service gdm start\" to start gdm." >&2
270 if [ "$1" = "0" ]; then
272 /sbin/chkconfig --del gdm
276 %defattr(644,root,root,755)
277 %doc AUTHORS ChangeLog NEWS README TODO
278 %attr(755,root,root) %{_bindir}/gdm-dmx-reconnect-proxy
279 %attr(755,root,root) %{_bindir}/gdmdynamic
280 %attr(755,root,root) %{_bindir}/gdmflexiserver
281 %attr(755,root,root) %{_bindir}/gdmphotosetup
282 %attr(755,root,root) %{_bindir}/gdmthemetester
283 %attr(755,root,root) %{_libdir}/gdm-ssh-session
284 %attr(755,root,root) %{_libdir}/gdmaskpass
285 %attr(755,root,root) %{_libdir}/gdmopen
286 %attr(755,root,root) %{_libdir}/gdmtranslate
287 %attr(755,root,root) %{_libdir}/gdmchooser
288 %attr(755,root,root) %{_libdir}/gdmgreeter
289 %attr(755,root,root) %{_libdir}/gdmlogin
290 %attr(755,root,root) %{_sbindir}/*
292 %{systemdunitdir}/gdm.service
293 %dir %{_sysconfdir}/gdm
294 %dir %{_sysconfdir}/gdm/Init
295 %dir %{_sysconfdir}/gdm/PreSession
296 %dir %{_sysconfdir}/gdm/PostSession
297 %dir %{_sysconfdir}/gdm/PostLogin
298 %dir %{_sysconfdir}/gdm/modules
299 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/Init/Default
300 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/PostLogin/Default.sample
301 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/PostSession/Default
302 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/PreSession/Default
303 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/XKeepsCrashing
304 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/Xsession
305 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/custom.conf
306 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/locale.alias
307 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/modules/*
309 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm*
310 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm
311 %attr(1770,root,xdm) /var/lib/gdm
312 %attr(750,xdm,xdm) /var/log/gdm
313 %attr(750,xdm,xdm) /home/services/xdm
316 %{_datadir}/xsessions/default.desktop
317 %{_datadir}/xsessions/ssh.desktop
318 %{_iconsdir}/hicolor/*/apps/*.png
319 %{_iconsdir}/hicolor/*/apps/*.svg
320 %attr(755,root,root) %{_libdir}/gtk-2.0/modules/lib*.so
324 %defattr(644,root,root,755)
325 %attr(755,root,root) %{_bindir}/gdmXnest
326 %attr(755,root,root) %{_bindir}/gdmXnestchooser
329 %defattr(644,root,root,755)
330 %attr(754,root,root) /etc/rc.d/init.d/gdm