]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # TODO: | |
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 | |
5 | # | |
6 | # Conditiional build: | |
7 | %bcond_without selinux # without selinux | |
8 | ||
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 | |
16 | Name: gdm | |
17 | Version: 3.2.1.1 | |
18 | Release: 8 | |
19 | Epoch: 2 | |
20 | License: GPL/LGPL | |
21 | Group: X11/Applications | |
22 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gdm/3.2/%{name}-%{version}.tar.xz | |
23 | # Source0-md5: df3f38061066f5e0816676b4eef7854a | |
24 | Source1: %{name}.pamd | |
25 | Source2: %{name}.init | |
26 | Source3: %{name}-pld-logo.png | |
27 | Source4: %{name}-autologin.pamd | |
28 | Source5: %{name}-custom.desktop | |
29 | Source6: %{name}-default.desktop | |
30 | Source7: %{name}.upstart | |
31 | Source8: %{name}.service | |
32 | Patch0: %{name}-xdmcp.patch | |
33 | Patch1: %{name}-polkit.patch | |
34 | Patch2: %{name}-xsession.patch | |
35 | Patch3: %{name}-defaults.patch | |
36 | Patch4: shell-check.patch | |
37 | URL: http://www.gnome.org/projects/gdm/ | |
38 | BuildRequires: GConf2-devel >= 2.32.0 | |
39 | BuildRequires: accountsservice-devel >= 0.6.12 | |
40 | BuildRequires: attr-devel | |
41 | BuildRequires: audit-libs-devel | |
42 | BuildRequires: autoconf >= 2.60 | |
43 | BuildRequires: automake >= 1:1.11 | |
44 | BuildRequires: check >= 0.9.4 | |
45 | BuildRequires: dbus-glib-devel >= 0.74 | |
46 | BuildRequires: docbook-dtd412-xml | |
47 | BuildRequires: fontconfig-devel >= 2.5.0 | |
48 | BuildRequires: gettext-devel | |
49 | BuildRequires: glib2-devel >= 1:2.28.0 | |
50 | BuildRequires: gnome-doc-utils | |
51 | BuildRequires: gtk+3-devel >= 3.0.0 | |
52 | BuildRequires: intltool >= 0.40.0 | |
53 | BuildRequires: iso-codes | |
54 | BuildRequires: libcanberra-gtk3-devel >= 0.4 | |
55 | %{?with_selinux:BuildRequires: libselinux-devel} | |
56 | BuildRequires: libtool | |
57 | BuildRequires: libwrap-devel | |
58 | BuildRequires: libxklavier-devel >= 4.0-2 | |
59 | BuildRequires: nss-devel >= 3.11.1 | |
60 | BuildRequires: pam-devel | |
61 | BuildRequires: pango-devel >= 1.3.0 | |
62 | BuildRequires: perl-modules | |
63 | BuildRequires: pkgconfig | |
64 | BuildRequires: polkit-devel >= 0.93 | |
65 | BuildRequires: rpmbuild(find_lang) >= 1.23 | |
66 | BuildRequires: rpmbuild(macros) >= 1.627 | |
67 | BuildRequires: scrollkeeper >= 0.1.4 | |
68 | BuildRequires: tar >= 1:1.22 | |
69 | BuildRequires: upower-devel >= 0.9.0 | |
70 | BuildRequires: xorg-lib-libX11-devel | |
71 | BuildRequires: xorg-lib-libXau-devel | |
72 | BuildRequires: xorg-lib-libXdmcp-devel | |
73 | BuildRequires: xorg-lib-libXft-devel | |
74 | BuildRequires: xorg-lib-libXi-devel | |
75 | BuildRequires: xorg-lib-libXinerama-devel | |
76 | BuildRequires: xorg-lib-libXrandr-devel | |
77 | BuildRequires: xz | |
78 | Requires(post,postun): /usr/bin/scrollkeeper-update | |
79 | Requires(post,postun): gtk-update-icon-cache | |
80 | Requires(post,preun): GConf2 | |
81 | Requires(postun): /usr/sbin/groupdel | |
82 | Requires(postun): /usr/sbin/userdel | |
83 | Requires(pre): /bin/id | |
84 | Requires(pre): /usr/sbin/groupadd | |
85 | Requires(pre): /usr/sbin/useradd | |
86 | Requires(posttrans): dconf | |
87 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
88 | Requires: /usr/bin/X | |
89 | Requires: ConsoleKit-x11 >= 0.4.1 | |
90 | Requires: accountsservice >= 0.6.12 | |
91 | Requires: dbus-x11 | |
92 | Requires: gdm-wm >= 3.2.1 | |
93 | Requires: gnome-session >= 2.91.91.1 | |
94 | Requires: gnome-settings-daemon >= 2.91.91 | |
95 | Requires: hicolor-icon-theme | |
96 | Requires: pam >= 0.99.7.1 | |
97 | Requires: polkit-gnome >= 0.93 | |
98 | Requires: which | |
99 | Requires: xorg-app-sessreg | |
100 | Requires: xorg-app-xmodmap | |
101 | Suggests: pam-pam_gnome_keyring | |
102 | Suggests: zenity | |
103 | Provides: XDM | |
104 | Provides: group(xdm) | |
105 | Provides: user(xdm) | |
106 | Obsoletes: gdm-Xnest | |
107 | Obsoletes: gdm-user-switch-applet | |
108 | Obsoletes: gnome-applet-fast-user-switch | |
109 | Conflicts: gdkxft | |
110 | # sr@Latn vs. sr@latin | |
111 | Conflicts: glibc-misc < 6:2.7 | |
112 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
113 | ||
114 | %description | |
115 | Gdm (the GNOME Display Manager) is a highly configurable | |
116 | reimplementation of xdm, the X Display Manager. Gdm allows you to log | |
117 | into your system with the X Window System running and supports running | |
118 | several different X sessions on your local machine at the same time. | |
119 | ||
120 | %description -l es.UTF-8 | |
121 | Administrador de Entrada del GNOME. | |
122 | ||
123 | %description -l ja.UTF-8 | |
124 | Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display Manager | |
125 | の再実装版です。 Gdm を使うと、 X Window System が動いているあなたの | |
126 | システムにいろいろなセッションを選択してログインすることができます。 | |
127 | ||
128 | このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。 | |
129 | ||
130 | %description -l pl.UTF-8 | |
131 | Gdm jest wysokokonfigurowalną reimplementacją xdma. Gdm pozwala | |
132 | logować się do systemu z poziomu X11 i wspiera jednoczesną pracę kilku | |
133 | różnych sesji X na lokalnej maszynie. | |
134 | ||
135 | %description -l pt_BR.UTF-8 | |
136 | Gerenciador de Entrada do GNOME. | |
137 | ||
138 | %description -l ru.UTF-8 | |
139 | GDM (GNOME Display Manager) - это реимплементация xdm (X Display | |
140 | Manager). GDM позволяет вам входить в систему, на которой запущено X | |
141 | Window и поддерживает работу нескольуих разных X сеансов одновременно. | |
142 | ||
143 | %description -l uk.UTF-8 | |
144 | GDM (GNOME Display Manager) - це реімплементація xdm (X Display | |
145 | Manager). GDM дозволяє вам входити в систему, на якій запущено X | |
146 | Window та підтримує роботу кількох різних X сеансів одночасно. | |
147 | ||
148 | %package libs | |
149 | Summary: GDM libraries | |
150 | Summary(pl.UTF-8): Biblioteki GDM | |
151 | Group: Libraries | |
152 | ||
153 | %description libs | |
154 | GDM libraries. | |
155 | ||
156 | %description libs -l pl.UTF-8 | |
157 | Biblioteki GDM. | |
158 | ||
159 | %package devel | |
160 | Summary: Header files for GDM | |
161 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja | |
162 | Group: X11/Development/Libraries | |
163 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
164 | ||
165 | %description devel | |
166 | This package contains the files necessary to develop applications | |
167 | using GDM's libraries. | |
168 | ||
169 | %description devel -l pl.UTF-8 | |
170 | Pakiet zawiera pliki potrzebne do rozwoju aplikacji używających | |
171 | bibliotek programu GDM. | |
172 | ||
173 | %package static | |
174 | Summary: Static libraries for GDM | |
175 | Summary(pl.UTF-8): Biblioteki statyczne dla GDM | |
176 | Group: X11/Development/Libraries | |
177 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
178 | ||
179 | %description static | |
180 | This package contains static libraries for GDM. | |
181 | ||
182 | %description static -l pl.UTF-8 | |
183 | Pakiet zawiera statyczne biblioteki GDM. | |
184 | ||
185 | %package init | |
186 | Summary: Init script for GDM | |
187 | Summary(pl.UTF-8): Skrypt init dla GDM-a | |
188 | Group: X11/Applications | |
189 | Requires(post,preun): /sbin/chkconfig | |
190 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
191 | Requires: open | |
192 | Requires: rc-scripts >= 0.4.3.0 | |
193 | ||
194 | %description init | |
195 | Init script for GDM. | |
196 | ||
197 | %description init -l pl.UTF-8 | |
198 | Skrypt init dla GDM-a. | |
199 | ||
200 | %package upstart | |
201 | Summary: Upstart job description for GDM | |
202 | Summary(pl.UTF-8): Opis zadania Upstart dla GDM | |
203 | Group: Daemons | |
204 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
205 | Requires: upstart >= 0.6 | |
206 | ||
207 | %description upstart | |
208 | Upstart job description for GDM. | |
209 | ||
210 | %description upstart -l pl.UTF-8 | |
211 | Opis zadania Upstart dla GDM. | |
212 | ||
213 | %package systemd | |
214 | Summary: systemd unit for GDM | |
215 | Group: Daemons | |
216 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
217 | Requires: accountsservice-systemd | |
218 | Requires: systemd-units >= 37-0.10 | |
219 | ||
220 | %description systemd | |
221 | systemd unit for GDM | |
222 | ||
223 | %prep | |
224 | %setup -q | |
225 | %patch0 -p1 | |
226 | %patch1 -p1 | |
227 | %patch2 -p1 | |
228 | %patch3 -p1 | |
229 | %patch4 -p1 | |
230 | ||
231 | %build | |
232 | touch data/gdm.schemas.in.in | |
233 | %{__libtoolize} | |
234 | %{__glib_gettextize} | |
235 | %{__intltoolize} | |
236 | %{__aclocal} | |
237 | %{__autoheader} | |
238 | %{__autoconf} | |
239 | %{__automake} | |
240 | %configure \ | |
241 | --disable-console-helper \ | |
242 | --disable-scrollkeeper \ | |
243 | --disable-silent-rules \ | |
244 | --with-console-kit \ | |
245 | --enable-authentication-scheme=pam \ | |
246 | --with-pam-prefix=/etc \ | |
247 | --with-tcp-wrappers=yes \ | |
248 | --with%{!?with_selinux:out}-selinux \ | |
249 | --with-xdmcp=yes \ | |
250 | --with-xinerama=yes \ | |
251 | --with-user=xdm \ | |
252 | --with-group=xdm | |
253 | ||
254 | %{__make} | |
255 | ||
256 | %install | |
257 | rm -rf $RPM_BUILD_ROOT | |
258 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security,init} \ | |
259 | $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm} \ | |
260 | $RPM_BUILD_ROOT{%{_datadir}/xsessions,%{systemdunitdir}} | |
261 | ||
262 | %{__make} install \ | |
263 | DESTDIR=$RPM_BUILD_ROOT \ | |
264 | PAM_PREFIX=/etc | |
265 | ||
266 | cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm | |
267 | cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm-password | |
268 | cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin | |
269 | install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm | |
270 | cp -p %{SOURCE7} $RPM_BUILD_ROOT/etc/init/%{name}.conf | |
271 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir} | |
272 | cp -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/gdm.service | |
273 | touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm | |
274 | ||
275 | %find_lang %{name} --with-gnome --with-omf --all-name | |
276 | ||
277 | # allow executing ~/.Xclients and ~/.xsession | |
278 | cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/xsessions/custom.desktop | |
279 | cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/xsessions/default.desktop | |
280 | ||
281 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gdm/simple-greeter/extensions/*.{a,la} \ | |
282 | $RPM_BUILD_ROOT%{_libdir}/*.la | |
283 | ||
284 | %clean | |
285 | rm -rf $RPM_BUILD_ROOT | |
286 | ||
287 | %posttrans | |
288 | umask 022 | |
289 | /usr/bin/dconf update | |
290 | ||
291 | %pre | |
292 | %groupadd -g 55 -r -f xdm | |
293 | %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm | |
294 | ||
295 | %post | |
296 | %glib_compile_schemas | |
297 | %gconf_schema_install gdm-simple-greeter.schemas | |
298 | %scrollkeeper_update_post | |
299 | %update_icon_cache hicolor | |
300 | ||
301 | %preun | |
302 | %gconf_schema_uninstall gdm-simple-greeter.schemas | |
303 | ||
304 | %postun | |
305 | %scrollkeeper_update_postun | |
306 | %update_icon_cache hicolor | |
307 | ||
308 | if [ "$1" = "0" ]; then | |
309 | %glib_compile_schemas | |
310 | %userremove xdm | |
311 | %groupremove xdm | |
312 | fi | |
313 | ||
314 | %triggerpostun -- %{name} < 1:2.13.0.8-1 | |
315 | if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then | |
316 | mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf | |
317 | fi | |
318 | ||
319 | %post init | |
320 | /sbin/chkconfig --add gdm | |
321 | # -n skips restarting as it would otherise terminate all sessions opened from gdm! | |
322 | %service -n gdm restart | |
323 | ||
324 | %preun init | |
325 | if [ "$1" = "0" ]; then | |
326 | %service gdm stop | |
327 | /sbin/chkconfig --del gdm | |
328 | fi | |
329 | ||
330 | %post libs -p /sbin/ldconfig | |
331 | %postun libs -p /sbin/ldconfig | |
332 | ||
333 | %post systemd | |
334 | NORESTART=1 | |
335 | %systemd_post gdm.service | |
336 | ||
337 | %preun systemd | |
338 | %systemd_preun gdm.service | |
339 | ||
340 | %postun systemd | |
341 | %systemd_reload | |
342 | ||
343 | %files -f %{name}.lang | |
344 | %defattr(644,root,root,755) | |
345 | %doc AUTHORS ChangeLog NEWS README TODO | |
346 | %attr(755,root,root) %{_sbindir}/gdm | |
347 | %attr(755,root,root) %{_sbindir}/gdm-binary | |
348 | %attr(755,root,root) %{_bindir}/gdm-screenshot | |
349 | %attr(755,root,root) %{_bindir}/gdmflexiserver | |
350 | %dir %{_libdir}/gdm | |
351 | %dir %{_libdir}/gdm/simple-greeter | |
352 | %dir %{_libdir}/gdm/simple-greeter/extensions | |
353 | %attr(755,root,root) %{_libdir}/gdm/simple-greeter/extensions/libfingerprint.so | |
354 | %attr(755,root,root) %{_libdir}/gdm/simple-greeter/extensions/libpassword.so | |
355 | %attr(755,root,root) %{_libdir}/gdm/simple-greeter/extensions/libsmartcard.so | |
356 | %attr(755,root,root) %{_libexecdir}/gdm-crash-logger | |
357 | %attr(755,root,root) %{_libexecdir}/gdm-factory-slave | |
358 | %attr(755,root,root) %{_libexecdir}/gdm-host-chooser | |
359 | %attr(755,root,root) %{_libexecdir}/gdm-product-slave | |
360 | %attr(755,root,root) %{_libexecdir}/gdm-session-worker | |
361 | %attr(755,root,root) %{_libexecdir}/gdm-simple-chooser | |
362 | %attr(755,root,root) %{_libexecdir}/gdm-simple-greeter | |
363 | %attr(755,root,root) %{_libexecdir}/gdm-simple-slave | |
364 | %attr(755,root,root) %{_libexecdir}/gdm-xdmcp-chooser-slave | |
365 | %attr(755,root,root) %{_libexecdir}/gdm-smartcard-worker | |
366 | %dir %{_sysconfdir}/gdm | |
367 | %dir %{_sysconfdir}/gdm/Init | |
368 | %attr(755,root,root) %config %{_sysconfdir}/gdm/Init/Default | |
369 | %attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession | |
370 | %attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession | |
371 | %attr(755,root,root) %config %{_sysconfdir}/gdm/Xsession | |
372 | %dir %{_sysconfdir}/gdm/PostLogin | |
373 | %config %{_sysconfdir}/gdm/PostLogin/Default.sample | |
374 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/custom.conf | |
375 | %{_sysconfdir}/gconf/schemas/gdm-simple-greeter.schemas | |
376 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/* | |
377 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm* | |
378 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm | |
379 | %{_sysconfdir}/dconf/db/gdm.d | |
380 | %{_sysconfdir}/dconf/profile/gdm | |
381 | %attr(1755,root,xdm) %dir /var/cache/gdm | |
382 | %attr(1770,root,xdm) %dir /var/gdm | |
383 | %attr(1770,root,xdm) %dir /var/lib/gdm | |
384 | %dir /var/lib/gdm/.config | |
385 | %attr(755,xdm,xdm) %dir /var/lib/gdm/.config/dconf | |
386 | %attr(1750,root,xdm) %dir /var/lib/gdm/.gconf.mandatory | |
387 | %attr(1640,root,xdm) /var/lib/gdm/.gconf.mandatory/*.xml | |
388 | %attr(644,root,xdm) /var/lib/gdm/.gconf.path | |
389 | %attr(755,xdm,xdm) /var/lib/gdm/.local | |
390 | %attr(750,xdm,xdm) %dir /var/log/gdm | |
391 | %attr(711,root,xdm) %dir /var/run/gdm | |
392 | %attr(755,xdm,xdm) %dir /var/run/gdm/greeter | |
393 | %attr(750,xdm,xdm) /home/services/xdm | |
394 | %{_pixmapsdir}/* | |
395 | %{_datadir}/gdm | |
396 | %{_datadir}/polkit-1/actions/gdm.policy | |
397 | %{_datadir}/gnome-session/sessions/gdm-fallback.session | |
398 | %{_datadir}/gnome-session/sessions/gdm-shell.session | |
399 | %{_datadir}/xsessions/custom.desktop | |
400 | %{_datadir}/xsessions/default.desktop | |
401 | %{_iconsdir}/hicolor/*/apps/*.png | |
402 | %{_datadir}/glib-2.0/schemas/org.gnome.login-screen.gschema.xml | |
403 | ||
404 | %files libs | |
405 | %defattr(644,root,root,755) | |
406 | %attr(755,root,root) %{_libdir}/libgdmgreeter.so.1.0.0 | |
407 | %attr(755,root,root) %ghost %{_libdir}/libgdmgreeter.so.1 | |
408 | %attr(755,root,root) %{_libdir}/libgdmsimplegreeter.so.1.0.0 | |
409 | %attr(755,root,root) %ghost %{_libdir}/libgdmsimplegreeter.so.1 | |
410 | %{_libdir}/girepository-1.0/GdmGreeter-1.0.typelib | |
411 | ||
412 | %files devel | |
413 | %defattr(644,root,root,755) | |
414 | %dir %{_includedir}/gdm | |
415 | %dir %{_includedir}/gdm/greeter | |
416 | %{_includedir}/gdm/greeter/gdm-greeter-client.h | |
417 | %{_includedir}/gdm/greeter/gdm-greeter-sessions.h | |
418 | %dir %{_includedir}/gdm/simple-greeter | |
419 | %{_includedir}/gdm/simple-greeter/gdm-login-extension.h | |
420 | %{_pkgconfigdir}/gdmgreeter.pc | |
421 | %{_pkgconfigdir}/gdmsimplegreeter.pc | |
422 | %{_libdir}/libgdmgreeter.so | |
423 | %{_libdir}/libgdmsimplegreeter.so | |
424 | %{_datadir}/gir-1.0/GdmGreeter-1.0.gir | |
425 | ||
426 | %files static | |
427 | %defattr(644,root,root,755) | |
428 | %{_libdir}/libgdmgreeter.a | |
429 | %{_libdir}/libgdmsimplegreeter.a | |
430 | ||
431 | %files init | |
432 | %defattr(644,root,root,755) | |
433 | %attr(754,root,root) /etc/rc.d/init.d/gdm | |
434 | ||
435 | %files upstart | |
436 | %defattr(644,root,root,755) | |
437 | %config(noreplace) %verify(not md5 mtime size) /etc/init/%{name}.conf | |
438 | ||
439 | %files systemd | |
440 | %defattr(644,root,root,755) | |
441 | %{systemdunitdir}/gdm.service |