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