]>
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 | |
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 | |
24e9d020 MB |
17 | Version: 3.3.92.1 |
18 | Release: 1 | |
81d695a5 | 19 | Epoch: 2 |
20 | License: GPL/LGPL | |
21 | Group: X11/Applications | |
24e9d020 | 22 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gdm/3.3/%{name}-%{version}.tar.xz |
81d695a5 | 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 | Source9: %{name}.tmpfiles | |
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/ | |
81d695a5 | 38 | BuildRequires: accountsservice-devel >= 0.6.12 |
39 | BuildRequires: attr-devel | |
40 | BuildRequires: audit-libs-devel | |
41 | BuildRequires: autoconf >= 2.60 | |
42 | BuildRequires: automake >= 1:1.11 | |
43 | BuildRequires: check >= 0.9.4 | |
44 | BuildRequires: dbus-glib-devel >= 0.74 | |
45 | BuildRequires: docbook-dtd412-xml | |
46 | BuildRequires: fontconfig-devel >= 2.5.0 | |
47 | BuildRequires: gettext-devel | |
24e9d020 | 48 | BuildRequires: glib2-devel >= 1:2.30.0 |
81d695a5 | 49 | BuildRequires: gnome-doc-utils |
50 | BuildRequires: gtk+3-devel >= 3.0.0 | |
51 | BuildRequires: intltool >= 0.40.0 | |
52 | BuildRequires: iso-codes | |
53 | BuildRequires: libcanberra-gtk3-devel >= 0.4 | |
54 | %{?with_selinux:BuildRequires: libselinux-devel} | |
55 | BuildRequires: libtool | |
56 | BuildRequires: libwrap-devel | |
57 | BuildRequires: libxklavier-devel >= 4.0-2 | |
58 | BuildRequires: nss-devel >= 3.11.1 | |
59 | BuildRequires: pam-devel | |
60 | BuildRequires: pango-devel >= 1.3.0 | |
61 | BuildRequires: perl-modules | |
62 | BuildRequires: pkgconfig | |
63 | BuildRequires: polkit-devel >= 0.93 | |
64 | BuildRequires: rpmbuild(find_lang) >= 1.23 | |
65 | BuildRequires: rpmbuild(macros) >= 1.627 | |
81d695a5 | 66 | BuildRequires: tar >= 1:1.22 |
67 | BuildRequires: upower-devel >= 0.9.0 | |
68 | BuildRequires: xorg-lib-libX11-devel | |
69 | BuildRequires: xorg-lib-libXau-devel | |
70 | BuildRequires: xorg-lib-libXdmcp-devel | |
71 | BuildRequires: xorg-lib-libXft-devel | |
72 | BuildRequires: xorg-lib-libXi-devel | |
73 | BuildRequires: xorg-lib-libXinerama-devel | |
74 | BuildRequires: xorg-lib-libXrandr-devel | |
75 | BuildRequires: xz | |
24e9d020 | 76 | Requires(post,postun): glib2 >= 1:2.26.0 |
81d695a5 | 77 | Requires(post,postun): gtk-update-icon-cache |
81d695a5 | 78 | Requires(postun): /usr/sbin/groupdel |
79 | Requires(postun): /usr/sbin/userdel | |
80 | Requires(pre): /bin/id | |
81 | Requires(pre): /usr/sbin/groupadd | |
82 | Requires(pre): /usr/sbin/useradd | |
83 | Requires(posttrans): dconf | |
84 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
85 | Requires: /usr/bin/X | |
86 | Requires: ConsoleKit-x11 >= 0.4.1 | |
87 | Requires: accountsservice >= 0.6.12 | |
88 | Requires: dbus-x11 | |
89 | Requires: gdm-wm >= 3.2.1 | |
90 | Requires: gnome-session >= 2.91.91.1 | |
91 | Requires: gnome-settings-daemon >= 2.91.91 | |
92 | Requires: hicolor-icon-theme | |
93 | Requires: pam >= 0.99.7.1 | |
94 | Requires: polkit-gnome >= 0.93 | |
95 | Requires: systemd-units >= 37-0.10 | |
96 | Requires: which | |
97 | Requires: xinitrc-ng >= 1.0 | |
98 | Requires: xorg-app-sessreg | |
99 | Requires: xorg-app-xmodmap | |
100 | Suggests: pam-pam_gnome_keyring | |
101 | Suggests: zenity | |
102 | Provides: XDM | |
103 | Provides: group(xdm) | |
104 | Provides: user(xdm) | |
105 | Obsoletes: gdm-Xnest | |
106 | Obsoletes: gdm-systemd | |
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 | %prep | |
214 | %setup -q | |
215 | %patch0 -p1 | |
216 | %patch1 -p1 | |
217 | %patch2 -p1 | |
218 | %patch3 -p1 | |
219 | %patch4 -p1 | |
220 | ||
221 | %build | |
222 | touch data/gdm.schemas.in.in | |
223 | %{__libtoolize} | |
224 | %{__glib_gettextize} | |
225 | %{__intltoolize} | |
226 | %{__aclocal} | |
227 | %{__autoheader} | |
228 | %{__autoconf} | |
229 | %{__automake} | |
230 | %configure \ | |
231 | --disable-console-helper \ | |
232 | --disable-scrollkeeper \ | |
233 | --disable-silent-rules \ | |
234 | --with-console-kit \ | |
235 | --enable-authentication-scheme=pam \ | |
236 | --with-pam-prefix=/etc \ | |
237 | --with-tcp-wrappers=yes \ | |
238 | --with%{!?with_selinux:out}-selinux \ | |
239 | --with-xdmcp=yes \ | |
240 | --with-xinerama=yes \ | |
241 | --with-user=xdm \ | |
242 | --with-group=xdm | |
243 | ||
244 | %{__make} | |
245 | ||
246 | %install | |
247 | rm -rf $RPM_BUILD_ROOT | |
248 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security,init} \ | |
249 | $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm} \ | |
250 | $RPM_BUILD_ROOT{%{_datadir}/xsessions,%{systemdunitdir}} \ | |
251 | $RPM_BUILD_ROOT/usr/lib/tmpfiles.d | |
252 | ||
253 | %{__make} install \ | |
254 | DESTDIR=$RPM_BUILD_ROOT \ | |
255 | PAM_PREFIX=/etc | |
256 | ||
257 | cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm | |
258 | cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm-password | |
259 | cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin | |
260 | install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm | |
261 | cp -p %{SOURCE7} $RPM_BUILD_ROOT/etc/init/%{name}.conf | |
262 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir} | |
263 | ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/gdm.service | |
264 | install %{SOURCE9} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf | |
265 | ||
266 | touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm | |
267 | ||
268 | %find_lang %{name} --with-gnome --with-omf --all-name | |
269 | ||
270 | # allow executing ~/.Xclients and ~/.xsession | |
271 | cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/xsessions/custom.desktop | |
272 | cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/xsessions/default.desktop | |
273 | ||
274 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gdm/simple-greeter/extensions/*.{a,la} \ | |
275 | $RPM_BUILD_ROOT%{_libdir}/*.la | |
276 | ||
277 | %clean | |
278 | rm -rf $RPM_BUILD_ROOT | |
279 | ||
280 | %posttrans | |
281 | umask 022 | |
282 | /usr/bin/dconf update | |
283 | ||
284 | %pre | |
285 | %groupadd -g 55 -r -f xdm | |
286 | %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm | |
287 | ||
288 | %post | |
289 | %glib_compile_schemas | |
81d695a5 | 290 | %update_icon_cache hicolor |
291 | %systemd_reload | |
292 | ||
81d695a5 | 293 | %postun |
81d695a5 | 294 | %update_icon_cache hicolor |
295 | %systemd_reload | |
296 | ||
297 | if [ "$1" = "0" ]; then | |
298 | %glib_compile_schemas | |
299 | %userremove xdm | |
300 | %groupremove xdm | |
301 | fi | |
302 | ||
303 | %triggerpostun -- %{name} < 2:3.2.1.1-10 | |
304 | if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then | |
305 | mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf | |
306 | fi | |
307 | ||
308 | %post init | |
309 | /sbin/chkconfig --add gdm | |
310 | # -n skips restarting as it would otherise terminate all sessions opened from gdm! | |
311 | %service -n gdm restart | |
312 | ||
313 | %preun init | |
314 | if [ "$1" = "0" ]; then | |
315 | %service gdm stop | |
316 | /sbin/chkconfig --del gdm | |
317 | fi | |
318 | ||
319 | %post libs -p /sbin/ldconfig | |
320 | %postun libs -p /sbin/ldconfig | |
321 | ||
322 | %files -f %{name}.lang | |
323 | %defattr(644,root,root,755) | |
324 | %doc AUTHORS ChangeLog NEWS README TODO | |
325 | %attr(755,root,root) %{_sbindir}/gdm | |
326 | %attr(755,root,root) %{_sbindir}/gdm-binary | |
327 | %attr(755,root,root) %{_bindir}/gdm-screenshot | |
328 | %attr(755,root,root) %{_bindir}/gdmflexiserver | |
329 | %dir %{_libdir}/gdm | |
330 | %dir %{_libdir}/gdm/simple-greeter | |
331 | %dir %{_libdir}/gdm/simple-greeter/extensions | |
332 | %attr(755,root,root) %{_libdir}/gdm/simple-greeter/extensions/libfingerprint.so | |
333 | %attr(755,root,root) %{_libdir}/gdm/simple-greeter/extensions/libpassword.so | |
334 | %attr(755,root,root) %{_libdir}/gdm/simple-greeter/extensions/libsmartcard.so | |
335 | %attr(755,root,root) %{_libexecdir}/gdm-crash-logger | |
336 | %attr(755,root,root) %{_libexecdir}/gdm-factory-slave | |
337 | %attr(755,root,root) %{_libexecdir}/gdm-host-chooser | |
338 | %attr(755,root,root) %{_libexecdir}/gdm-product-slave | |
339 | %attr(755,root,root) %{_libexecdir}/gdm-session-worker | |
340 | %attr(755,root,root) %{_libexecdir}/gdm-simple-chooser | |
341 | %attr(755,root,root) %{_libexecdir}/gdm-simple-greeter | |
342 | %attr(755,root,root) %{_libexecdir}/gdm-simple-slave | |
343 | %attr(755,root,root) %{_libexecdir}/gdm-xdmcp-chooser-slave | |
344 | %attr(755,root,root) %{_libexecdir}/gdm-smartcard-worker | |
345 | %dir %{_sysconfdir}/gdm | |
346 | %dir %{_sysconfdir}/gdm/Init | |
347 | %attr(755,root,root) %config %{_sysconfdir}/gdm/Init/Default | |
348 | %attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession | |
349 | %attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession | |
350 | %attr(755,root,root) %config %{_sysconfdir}/gdm/Xsession | |
351 | %dir %{_sysconfdir}/gdm/PostLogin | |
352 | %config %{_sysconfdir}/gdm/PostLogin/Default.sample | |
353 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/custom.conf | |
81d695a5 | 354 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/* |
355 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm* | |
356 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm | |
357 | %{_sysconfdir}/dconf/db/gdm.d | |
358 | %{_sysconfdir}/dconf/profile/gdm | |
359 | %attr(1755,root,xdm) %dir /var/cache/gdm | |
360 | %attr(1770,root,xdm) %dir /var/gdm | |
361 | %attr(1770,root,xdm) %dir /var/lib/gdm | |
362 | %dir /var/lib/gdm/.config | |
363 | %attr(755,xdm,xdm) %dir /var/lib/gdm/.config/dconf | |
81d695a5 | 364 | %attr(755,xdm,xdm) /var/lib/gdm/.local |
365 | %attr(750,xdm,xdm) %dir /var/log/gdm | |
366 | %attr(711,root,xdm) %dir /var/run/gdm | |
367 | %attr(755,xdm,xdm) %dir /var/run/gdm/greeter | |
368 | %attr(750,xdm,xdm) /home/services/xdm | |
369 | /usr/lib/tmpfiles.d/%{name}.conf | |
370 | %{_pixmapsdir}/* | |
371 | %{_datadir}/gdm | |
372 | %{_datadir}/polkit-1/actions/gdm.policy | |
373 | %{_datadir}/gnome-session/sessions/gdm-fallback.session | |
374 | %{_datadir}/gnome-session/sessions/gdm-shell.session | |
375 | %{_datadir}/xsessions/custom.desktop | |
376 | %{_datadir}/xsessions/default.desktop | |
377 | %{_iconsdir}/hicolor/*/apps/*.png | |
378 | %{_datadir}/glib-2.0/schemas/org.gnome.login-screen.gschema.xml | |
379 | %{systemdunitdir}/gdm.service | |
380 | ||
381 | %files libs | |
382 | %defattr(644,root,root,755) | |
383 | %attr(755,root,root) %{_libdir}/libgdmgreeter.so.1.0.0 | |
384 | %attr(755,root,root) %ghost %{_libdir}/libgdmgreeter.so.1 | |
385 | %attr(755,root,root) %{_libdir}/libgdmsimplegreeter.so.1.0.0 | |
386 | %attr(755,root,root) %ghost %{_libdir}/libgdmsimplegreeter.so.1 | |
387 | %{_libdir}/girepository-1.0/GdmGreeter-1.0.typelib | |
388 | ||
389 | %files devel | |
390 | %defattr(644,root,root,755) | |
391 | %dir %{_includedir}/gdm | |
392 | %dir %{_includedir}/gdm/greeter | |
393 | %{_includedir}/gdm/greeter/gdm-greeter-client.h | |
394 | %{_includedir}/gdm/greeter/gdm-greeter-sessions.h | |
395 | %dir %{_includedir}/gdm/simple-greeter | |
396 | %{_includedir}/gdm/simple-greeter/gdm-login-extension.h | |
397 | %{_pkgconfigdir}/gdmgreeter.pc | |
398 | %{_pkgconfigdir}/gdmsimplegreeter.pc | |
399 | %{_libdir}/libgdmgreeter.so | |
400 | %{_libdir}/libgdmsimplegreeter.so | |
401 | %{_datadir}/gir-1.0/GdmGreeter-1.0.gir | |
402 | ||
403 | %files static | |
404 | %defattr(644,root,root,755) | |
405 | %{_libdir}/libgdmgreeter.a | |
406 | %{_libdir}/libgdmsimplegreeter.a | |
407 | ||
408 | %files init | |
409 | %defattr(644,root,root,755) | |
410 | %attr(754,root,root) /etc/rc.d/init.d/gdm | |
411 | ||
412 | %files upstart | |
413 | %defattr(644,root,root,755) | |
414 | %config(noreplace) %verify(not md5 mtime size) /etc/init/%{name}.conf |