2 # /etc/X11/dm dir should belong to XFree? It is common for KDE and GNOME
3 # s=/dev/null=/home/services/xdm= in %%trigger for gracefull upgrade from xdm/kdm/gdm 2.2
4 # check /etc/pam.d/gdm-autologin
6 Summary: GNOME Display Manager
7 Summary(es): Administrador de Entrada del GNOME
8 Summary(ja): GNOME ¥Ç¥£¥¹¥×¥ì¥¤¥Þ¥Í¡¼¥¸¥ã
9 Summary(pl): gdm - zarz±dca ekranów GNOME
10 Summary(pt_BR): Gerenciador de Entrada do GNOME
11 Summary(ru): äÉÓÐÌÅÊÎÙÊ ÍÅÎÅÄÖÅÒ GNOME
12 Summary(uk): äÉÓÐÌÅÊÎÉÊ ÍÅÎÅÄÖÅÒ GNOME
18 Group: X11/Applications
19 Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.6/%{name}-%{version}.tar.bz2
20 # Source0-md5: 037435f440c0d179eb10495172d4e872
23 Source3: %{name}-pld-logo.png
24 Patch0: %{name}-xdmcp.patch
25 Patch1: %{name}-conf.patch
26 Patch2: %{name}-xsession.patch
27 Patch3: %{name}-logdir.patch
28 Patch4: %{name}-locale-names.patch
29 URL: http://www.jirka.org/gdm.html
30 BuildRequires: attr-devel
31 BuildRequires: autoconf
32 BuildRequires: automake
33 BuildRequires: gettext-devel
34 BuildRequires: gtk+2-devel >= 2:2.4.1
35 BuildRequires: intltool >= 0.30
36 BuildRequires: libglade2-devel >= 1:2.3.6
37 BuildRequires: libgnome-devel >= 2.6.1
38 BuildRequires: libgnomecanvas-devel >= 2.6.1
39 BuildRequires: libgnomeui-devel >= 2.6.1
40 BuildRequires: libgsf-devel >= 1.9.0
41 BuildRequires: librsvg-devel >= 1:2.6.5
42 BuildRequires: libselinux-devel
43 BuildRequires: libtool
44 BuildRequires: libxml2-devel >= 2.5.11
45 BuildRequires: pam-devel
46 BuildRequires: perl-modules
47 BuildRequires: scrollkeeper
48 Requires(pre): /bin/id
49 Requires(pre): /usr/sbin/groupadd
50 Requires(pre): /usr/sbin/useradd
51 Requires(postun): /usr/sbin/userdel
52 Requires(postun): /usr/sbin/groupdel
53 Requires(post,preun): /sbin/chkconfig
54 Requires(post,postun): /usr/bin/scrollkeeper-update
55 Requires: libgnome >= 2.6.1
58 Requires: pam >= 0.77.3-7
59 Obsoletes: xdm kdm wdm
61 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
63 %define _sysconfdir /etc/X11
64 %define _localstatedir /var/lib
67 Gdm (the GNOME Display Manager) is a highly configurable
68 reimplementation of xdm, the X Display Manager. Gdm allows you to log
69 into your system with the X Window System running and supports running
70 several different X sessions on your local machine at the same time.
73 Administrador de Entrada del GNOME.
76 Gdm (the GNOME Display Manager) ¤Ï¡¢¹âÅÙ¤ËÀßÄê²Äǽ¤Ê xdm X Display
77 Manager ¤ÎºÆ¼ÂÁõÈǤǤ¹¡£ Gdm ¤ò»È¤¦¤È¡¢ X Window System
79 ¥·¥¹¥Æ¥à¤Ë¤¤¤í¤¤¤í¤Ê¥»¥Ã¥·¥ç¥ó¤òÁªÂò¤·¤Æ¥í¥°¥¤¥ó¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
81 ¤³¤Î¥Ð¡¼¥¸¥ç¥ó¤Î Gdm ¤Ç¤Ï¡¢³Æ¼ï¸À¸ì¤ä¡¢XIM ¤òÁªÂò¤¹¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£
84 Gdm jest wysokokonfigurowaln± reimplementacj± xdma. Gdm pozwala
85 logowaæ siê do systemu z poziomu X11 i wspiera jednoczesn± pracê kilku
86 ró¿nych sesji X na lokalnej maszynie.
89 Gerenciador de Entrada do GNOME.
92 GDM (GNOME Display Manager) - ÜÔÏ ÒÅÉÍÐÌÅÍÅÎÔÁÃÉÑ xdm (X Display
93 Manager). GDM ÐÏÚ×ÏÌÑÅÔ ×ÁÍ ×ÈÏÄÉÔØ × ÓÉÓÔÅÍÕ, ÎÁ ËÏÔÏÒÏÊ ÚÁÐÕÝÅÎÏ X
94 Window É ÐÏÄÄÅÒÖÉ×ÁÅÔ ÒÁÂÏÔÕ ÎÅÓËÏÌØÕÉÈ ÒÁÚÎÙÈ X ÓÅÁÎÓÏ× ÏÄÎÏ×ÒÅÍÅÎÎÏ.
97 GDM (GNOME Display Manager) - ÃÅ ÒŦÍÐÌÅÍÅÎÔÁÃ¦Ñ xdm (X Display
98 Manager). GDM ÄÏÚ×ÏÌѤ ×ÁÍ ×ÈÏÄÉÔÉ × ÓÉÓÔÅÍÕ, ÎÁ ÑË¦Ê ÚÁÐÕÝÅÎÏ X
99 Window ÔÁ ЦÄÔÒÉÍÕ¤ ÒÏÂÏÔÕ Ë¦ÌØËÏÈ Ò¦ÚÎÉÈ X ÓÅÁÎÓ¦× ÏÄÎÏÞÁÓÎÏ.
102 Summary: Xnest (ie embedded X) server for GDM
103 Summary(pl): Serwer Xnest dla GDM
104 Group: X11/Applications
105 Requires: %{name} = %{epoch}:%{version}-%{release}
106 Requires: XFree86-Xnest
109 This package add support for Xnest server in gdm.
111 %description Xnest -l pl
112 Ten pakiet dodaje do gdm wsparcie dla Xnest.
115 Summary: Init script for GDM
116 Summary(pl): Skrypt init dla GDM-a
117 Group: X11/Applications
118 Requires: %{name} = %{epoch}:%{version}-%{release}
124 %description init -l pl
125 Skrypt init dla GDM-a.
140 glib-gettextize --copy --force
141 intltoolize --copy --force
146 --with-xinerama=yes \
148 --with-pam-prefix=/etc \
149 --with-tcp-wrappers=yes \
150 --enable-authentication-scheme=pam \
151 --disable-console-helper \
157 rm -rf $RPM_BUILD_ROOT
158 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \
159 $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm}
162 DESTDIR=$RPM_BUILD_ROOT \
165 mv $RPM_BUILD_ROOT%{_datadir}/gdm/BuiltInSessions/default.desktop $RPM_BUILD_ROOT%{_datadir}/xsessions
167 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm
168 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm
170 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
172 touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm
174 %find_lang %{name} --all-name --with-gnome
176 # Remove useless files
177 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.{la,a}
179 # moved to gnome-session
180 rm -f $RPM_BUILD_ROOT%{_datadir}/xsessions/gnome.desktop
183 rm -rf $RPM_BUILD_ROOT
186 if [ -n "`getgid xdm`" ]; then
187 if [ "`getgid xdm`" != "55" ]; then
188 echo "Error: group xdm doesn't have gid=55. Correct this before installing %{name}." 1>&2
192 /usr/sbin/groupadd -g 55 -r -f xdm
196 if [ -z "`id -u xdm 2>/dev/null`" ]; then
197 /usr/sbin/useradd -u 55 -r -d /home/services/xdm -s /bin/false -c 'X Display Manager' -g xdm xdm 1>&2
201 /usr/bin/scrollkeeper-update
204 /usr/bin/scrollkeeper-update
205 if [ "$1" = "0" ]; then
206 if [ -n "`id -u xdm 2>/dev/null`" ]; then
207 /usr/sbin/userdel xdm
209 /usr/sbin/groupdel xdm
213 /sbin/chkconfig --add gdm
214 if [ -f /var/lock/subsys/gdm ]; then
215 echo "Run \"/etc/rc.d/init.d/gdm restart\" to restart gdm." >&2
217 echo "Run \"/etc/rc.d/init.d/gdm start\" to start gdm." >&2
221 if [ "$1" = "0" ]; then
222 if [ -f /var/lock/subsys/gdm ]; then
223 /etc/rc.d/init.d/gdm stop >&2
225 /sbin/chkconfig --del gdm
228 %files -f %{name}.lang
229 %defattr(644,root,root,755)
230 %doc AUTHORS ChangeLog NEWS README TODO
231 %attr(755,root,root) %{_bindir}/gdm
232 %attr(755,root,root) %{_bindir}/gdm-binary
233 %attr(755,root,root) %{_bindir}/gdmchooser
234 %attr(755,root,root) %{_bindir}/gdmflexiserver
235 %attr(755,root,root) %{_bindir}/gdmgreeter
236 %attr(755,root,root) %{_bindir}/gdmlogin
237 %attr(755,root,root) %{_bindir}/gdmphotosetup
238 %attr(755,root,root) %{_bindir}/gdmsetup
239 %attr(755,root,root) %{_bindir}/gdmthemetester
240 %attr(755,root,root) %{_libdir}/gdmaskpass
241 %attr(755,root,root) %{_libdir}/gdmopen
242 %attr(755,root,root) %{_libdir}/gdmtranslate
243 %attr(755,root,root) %{_sbindir}/*
244 %dir %{_sysconfdir}/gdm
245 %dir %{_sysconfdir}/gdm/modules
246 %attr(755,root,root) %config %{_sysconfdir}/gdm/Init
247 %attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession
248 %attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession
249 %attr(755,root,root) %config %{_sysconfdir}/gdm/XKeepsCrashing
250 %attr(755,root,root) %config %{_sysconfdir}/gdm/Xsession
251 %config %{_sysconfdir}/gdm/factory-gdm.conf
252 %config %{_sysconfdir}/gdm/PostLogin/Default.sample
253 %config %{_sysconfdir}/gdm/modules/*
255 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gdm/gdm.conf
256 %config %{_sysconfdir}/gdm/locale.alias
257 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/gdm*
258 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/security/blacklist.gdm
259 %attr(750,xdm,xdm) /var/lib/gdm
260 %attr(750,xdm,xdm) /var/log/gdm
261 %attr(750,xdm,xdm) /home/services/xdm
263 %{_desktopdir}/gdmsetup.desktop
264 %{_desktopdir}/gdmflexiserver.desktop
265 %{_datadir}/gnome/capplets/*
267 #%%{_datadir}/xsessions - moved to gnome-session
268 %{_datadir}/xsessions/default.desktop
270 %attr(755,root,root) %{_libdir}/gtk-2.0/modules/lib*.so
274 %defattr(644,root,root,755)
275 %attr(755,root,root) %{_bindir}/gdmXnestchooser
276 %{_desktopdir}/gdmflexiserver-xnest.desktop
279 %defattr(644,root,root,755)
280 %attr(754,root,root) /etc/rc.d/init.d/gdm