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