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
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: libglade2-devel >= 1:2.6.2
53 %{?with_selinux:BuildRequires: libselinux-devel}
54 BuildRequires: libtool
55 BuildRequires: libxklavier-devel >= 4.0-2
56 BuildRequires: pam-devel
57 BuildRequires: perl-modules
58 BuildRequires: pkgconfig
59 BuildRequires: polkit-gnome-devel >= 0.92
60 BuildRequires: rpmbuild(find_lang) >= 1.23
61 BuildRequires: rpmbuild(macros) >= 1.311
62 BuildRequires: scrollkeeper
63 BuildRequires: xorg-lib-libXdmcp-devel
64 BuildRequires: xorg-lib-libXi-devel
65 BuildRequires: xorg-lib-libXinerama-devel
66 BuildRequires: xorg-lib-libdmx-devel
67 Requires(post,postun): gtk+2
68 Requires(post,postun): hicolor-icon-theme
69 Requires(post,postun): /usr/bin/scrollkeeper-update
70 Requires(postun): /usr/sbin/groupdel
71 Requires(postun): /usr/sbin/userdel
72 Requires(pre): /bin/id
73 Requires(pre): /usr/sbin/groupadd
74 Requires(pre): /usr/sbin/useradd
75 Requires: /usr/bin/Xorg
76 Requires: gnome-session >= 2.24.0
77 Requires: gnome-settings-daemon >= 2.24.0
78 Requires: libgnomeui >= 2.24.0
79 Requires: pam >= 0.99.7.1
80 Requires: polkit-gnome >= 0.92
82 Requires: xorg-app-sessreg
83 Requires: xorg-app-xmodmap
89 # sr@Latn vs. sr@latin
90 Conflicts: glibc-misc < 6:2.7
91 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
94 Gdm (the GNOME Display Manager) is a highly configurable
95 reimplementation of xdm, the X Display Manager. Gdm allows you to log
96 into your system with the X Window System running and supports running
97 several different X sessions on your local machine at the same time.
99 %description -l es.UTF-8
100 Administrador de Entrada del GNOME.
102 %description -l ja.UTF-8
103 Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display
104 Manager の再実装版です。 Gdm を使うと、 X Window System
106 システムにいろいろなセッションを選択してログインすることができます。
108 このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。
110 %description -l pl.UTF-8
111 Gdm jest wysokokonfigurowalną reimplementacją xdma. Gdm pozwala
112 logować się do systemu z poziomu X11 i wspiera jednoczesną pracę kilku
113 różnych sesji X na lokalnej maszynie.
115 %description -l pt_BR.UTF-8
116 Gerenciador de Entrada do GNOME.
118 %description -l ru.UTF-8
119 GDM (GNOME Display Manager) - это реимплементация xdm (X Display
120 Manager). GDM позволяет вам входить в систему, на которой запущено X
121 Window и поддерживает работу нескольуих разных X сеансов одновременно.
123 %description -l uk.UTF-8
124 GDM (GNOME Display Manager) - це реімплементація xdm (X Display
125 Manager). GDM дозволяє вам входити в систему, на якій запущено X
126 Window та підтримує роботу кількох різних X сеансів одночасно.
129 Summary: Init script for GDM
130 Summary(pl.UTF-8): Skrypt init dla GDM-a
131 Group: X11/Applications
132 Requires(post,preun): /sbin/chkconfig
133 Requires: %{name} = %{epoch}:%{version}-%{release}
139 %description init -l pl.UTF-8
140 Skrypt init dla GDM-a.
148 rm -f data/gdm.schemas.in
159 --disable-console-helper \
160 --disable-scrollkeeper \
162 --enable-authentication-scheme=pam \
163 --with-pam-prefix=/etc \
164 --with-tcp-wrappers=yes \
165 --with%{!?with_selinux:out}-selinux \
167 --with-xinerama=yes \
174 rm -rf $RPM_BUILD_ROOT
175 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \
176 $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm} \
179 DESTDIR=$RPM_BUILD_ROOT \
182 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm
183 #install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin
184 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm
186 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
188 touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm
190 %find_lang %{name} --with-gnome --with-omf --all-name
192 # Remove useless files
193 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.{la,a}
195 # moved to gnome-session
196 rm -f $RPM_BUILD_ROOT%{_datadir}/xsessions/gnome.desktop
199 rm -rf $RPM_BUILD_ROOT
202 %groupadd -g 55 -r -f xdm
203 %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm
206 %gconf_schema_install gdm-simple-greeter.schemas
207 %scrollkeeper_update_post
208 %update_icon_cache hicolor
211 %gconf_schema_uninstall gdm-simple-greeter.schemas
214 %scrollkeeper_update_postun
215 %update_icon_cache hicolor
217 if [ "$1" = "0" ]; then
222 %triggerpostun -- %{name} < 1:2.13.0.8-1
223 if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then
224 mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf
228 /sbin/chkconfig --add gdm
229 if [ -f /var/lock/subsys/gdm ]; then
230 echo "Run \"/sbin/service gdm restart\" to restart gdm." >&2
231 echo "WARNING: it will terminate all sessions opened from gdm!" >&2
233 echo "Run \"/sbin/service gdm start\" to start gdm." >&2
237 if [ "$1" = "0" ]; then
239 /sbin/chkconfig --del gdm
242 %files -f %{name}.lang
243 %defattr(644,root,root,755)
244 %doc AUTHORS ChangeLog NEWS README TODO
245 %attr(755,root,root) %{_libexecdir}/gdm-crash-logger
246 %attr(755,root,root) %{_libexecdir}/gdm-factory-slave
247 %attr(755,root,root) %{_libexecdir}/gdm-host-chooser
248 %attr(755,root,root) %{_libexecdir}/gdm-product-slave
249 %attr(755,root,root) %{_libexecdir}/gdm-session-worker
250 %attr(755,root,root) %{_libexecdir}/gdm-simple-chooser
251 %attr(755,root,root) %{_libexecdir}/gdm-simple-greeter
252 %attr(755,root,root) %{_libexecdir}/gdm-simple-slave
253 %attr(755,root,root) %{_libexecdir}/gdm-user-switch-applet
254 %attr(755,root,root) %{_libexecdir}/gdm-xdmcp-chooser-slave
255 %attr(755,root,root) %{_sbindir}/*
256 %attr(755,root,root) %{_bindir}/*
257 %dir %{_sysconfdir}/gdm
258 %dir %{_sysconfdir}/gdm/Init
259 %attr(755,root,root) %config %{_sysconfdir}/gdm/Init/Default
260 %attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession
261 %attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession
262 %attr(755,root,root) %config %{_sysconfdir}/gdm/Xsession
263 %dir %{_sysconfdir}/gdm/PostLogin
264 %config %{_sysconfdir}/gdm/PostLogin/Default.sample
265 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/custom.conf
266 %{_sysconfdir}/gdm/gdm.schemas
267 %{_sysconfdir}/gconf/schemas/gdm-simple-greeter.schemas
268 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
269 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm*
270 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm
271 %attr(750,xdm,xdm) %{_localstatedir}/gdm
272 %attr(750,xdm,xdm) %{_localstatedir}/log/gdm
273 %attr(750,xdm,xdm) /home/services/xdm
276 %{_datadir}/gnome-2.0/ui/GNOME_FastUserSwitchApplet.xml
277 %{_datadir}/polkit-1/actions/gdm.policy
278 %{_iconsdir}/hicolor/*/apps/*.png
279 %{_libdir}/bonobo/servers/*.server
280 %{_localstatedir}/lib/gdm
283 %defattr(644,root,root,755)
284 %attr(754,root,root) /etc/rc.d/init.d/gdm