]>
Commit | Line | Data |
---|---|---|
dbdd08ff | 1 | # |
dc990d82 | 2 | # TODO: |
7ab79c4a MB |
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 | |
dc990d82 | 5 | # |
4210ca61 AG |
6 | # Conditiional build: |
7 | %bcond_without selinux # without selinux | |
c658dfc8 | 8 | |
6a92f230 | 9 | Summary: GNOME Display Manager |
2a014025 ER |
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 | |
2835d411 | 16 | Name: gdm2.20 |
562fd0f8 | 17 | Version: 2.20.11 |
7f198708 JB |
18 | Release: 12 |
19 | License: GPL v2+ | |
a189375e | 20 | Group: X11/Applications |
2835d411 | 21 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gdm/2.20/gdm-%{version}.tar.bz2 |
562fd0f8 | 22 | # Source0-md5: 67696b64c81c317f61065810a32e8b36 |
2835d411 JR |
23 | Source1: gdm.pamd |
24 | Source2: gdm.init | |
25 | Source3: gdm-pld-logo.png | |
26 | # http://cvs.pld-linux.org/cgi-bin/cvsweb/pld-artwork/gdm/storky/ | |
27 | Source4: gdm-storky.tar.gz | |
28 | # Source4-md5: e293fbe4a60004056f6894463b874ae8 | |
29 | Source5: gdm-autologin.pamd | |
30 | Patch0: gdm-xdmcp.patch | |
31 | Patch1: gdm-conf.patch | |
32 | Patch2: gdm-xsession.patch | |
33 | Patch3: gdm-desktop.patch | |
34 | Patch4: gdm-defaults.patch | |
c658dfc8 | 35 | Patch5: xinit-sh.patch |
52694c5c | 36 | Patch6: missing-prototypes.patch |
e4b6a317 JB |
37 | Patch7: gdm-format.patch |
38 | Patch8: gdm-includes.patch | |
f3b794c1 | 39 | URL: http://www.gnome.org/projects/gdm/ |
2835d411 | 40 | BuildRequires: ConsoleKit-devel |
45cf0bda | 41 | BuildRequires: attr-devel |
86da5298 | 42 | BuildRequires: audit-libs-devel |
2835d411 JR |
43 | BuildRequires: autoconf >= 2.52 |
44 | BuildRequires: automake | |
45 | BuildRequires: dbus-glib-devel >= 0.73 | |
1a733adb | 46 | BuildRequires: docbook-dtd412-xml |
32309e8b | 47 | BuildRequires: gettext-tools |
1a733adb | 48 | BuildRequires: gnome-common |
35c8a1b7 | 49 | BuildRequires: gnome-doc-utils |
2835d411 JR |
50 | BuildRequires: gtk+2-devel >= 2:2.12.0 |
51 | BuildRequires: intltool >= 0.36.1 | |
52 | BuildRequires: libart_lgpl-devel >= 2.3.19 | |
53 | BuildRequires: libglade2-devel >= 1:2.6.2 | |
54 | BuildRequires: libgnomeui-devel >= 2.20.0 | |
55 | BuildRequires: libgsf-devel >= 1.14.6 | |
56 | BuildRequires: librsvg-devel >= 1:2.18.1 | |
4210ca61 | 57 | %{?with_selinux:BuildRequires: libselinux-devel} |
3b2c2ccf | 58 | BuildRequires: libtool |
2835d411 | 59 | BuildRequires: libxml2-devel >= 1:2.6.29 |
dc990d82 | 60 | BuildRequires: pam-devel |
4c60841b | 61 | BuildRequires: perl-modules |
1a733adb | 62 | BuildRequires: pkgconfig |
0b34c046 | 63 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
ff971fee | 64 | BuildRequires: rpmbuild(macros) >= 1.627 |
2835d411 JR |
65 | BuildRequires: scrollkeeper |
66 | BuildRequires: sed >= 4.0 | |
c7d57a18 | 67 | BuildRequires: xorg-lib-libXdmcp-devel |
68 | BuildRequires: xorg-lib-libXi-devel | |
69 | BuildRequires: xorg-lib-libXinerama-devel | |
2835d411 | 70 | BuildRequires: xorg-lib-libdmx-devel |
1a733adb | 71 | Requires(post,postun): /usr/bin/scrollkeeper-update |
d3d30ed3 | 72 | Requires(post,postun): gtk-update-icon-cache |
a54cc062 | 73 | Requires(post,postun): hicolor-icon-theme |
c21d8af4 ER |
74 | Requires(postun): /usr/sbin/groupdel |
75 | Requires(postun): /usr/sbin/userdel | |
d812e0fb JB |
76 | Requires(pre): /bin/id |
77 | Requires(pre): /usr/sbin/groupadd | |
78 | Requires(pre): /usr/sbin/useradd | |
9fae1ee9 | 79 | Requires(post,preun,postun): systemd-units >= 38 |
2835d411 | 80 | Requires: libgnomeui >= 2.20.0 |
092e06e5 | 81 | Requires: pam >= 0.99.7.1 |
9fae1ee9 | 82 | Requires: systemd-units >= 38 |
84f5c4bf | 83 | Requires: which |
ff971fee | 84 | Requires: xinitrc-ng >= 1.0 |
2835d411 | 85 | Requires: xorg-app-sessreg |
1a733adb | 86 | Requires: xorg-app-xmodmap |
86da5298 | 87 | Suggests: zenity |
7341e692 | 88 | Provides: XDM |
608c97ed | 89 | Provides: gdm = 2:%{version} |
50e794ab | 90 | Provides: group(xdm) |
91 | Provides: user(xdm) | |
608c97ed | 92 | Obsoletes: gdm <= 2:%{version} |
dc990d82 | 93 | Conflicts: gdkxft |
608c97ed | 94 | Conflicts: gdm > 2:%{version} |
fb77ead8 | 95 | # sr@Latn vs. sr@latin |
96 | Conflicts: glibc-misc < 6:2.7 | |
1e57584d | 97 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
6a92f230 | 98 | |
2835d411 JR |
99 | %define _localstatedir /var/lib |
100 | ||
63a3aacd TP |
101 | %description |
102 | Gdm (the GNOME Display Manager) is a highly configurable | |
103 | reimplementation of xdm, the X Display Manager. Gdm allows you to log | |
104 | into your system with the X Window System running and supports running | |
105 | several different X sessions on your local machine at the same time. | |
264bf23f | 106 | |
3024dcd3 | 107 | %description -l es.UTF-8 |
557c7bf4 | 108 | Administrador de Entrada del GNOME. |
109 | ||
3024dcd3 JR |
110 | %description -l ja.UTF-8 |
111 | Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display | |
112 | Manager の再実装版です。 Gdm を使うと、 X Window System | |
113 | が動いているあなたの | |
114 | システムにいろいろなセッションを選択してログインすることができます。 | |
daf0d1df | 115 | |
3024dcd3 | 116 | このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。 |
daf0d1df | 117 | |
3024dcd3 JR |
118 | %description -l pl.UTF-8 |
119 | Gdm jest wysokokonfigurowalną reimplementacją xdma. Gdm pozwala | |
120 | logować się do systemu z poziomu X11 i wspiera jednoczesną pracę kilku | |
121 | różnych sesji X na lokalnej maszynie. | |
e2ef7640 | 122 | |
3024dcd3 | 123 | %description -l pt_BR.UTF-8 |
557c7bf4 | 124 | Gerenciador de Entrada do GNOME. |
125 | ||
3024dcd3 JR |
126 | %description -l ru.UTF-8 |
127 | GDM (GNOME Display Manager) - это реимплементация xdm (X Display | |
128 | Manager). GDM позволяет вам входить в систему, на которой запущено X | |
129 | Window и поддерживает работу нескольуих разных X сеансов одновременно. | |
daf0d1df | 130 | |
3024dcd3 JR |
131 | %description -l uk.UTF-8 |
132 | GDM (GNOME Display Manager) - це реімплементація xdm (X Display | |
133 | Manager). GDM дозволяє вам входити в систему, на якій запущено X | |
134 | Window та підтримує роботу кількох різних X сеансів одночасно. | |
daf0d1df | 135 | |
e4b6a317 JB |
136 | %package faces |
137 | Summary: Faces icons for GDM | |
138 | Summary(pl.UTF-8): Ikony twarzy dla GDM | |
139 | Group: X11/Applications | |
140 | Conflicts: gnome-control-center >= 3 | |
141 | ||
142 | %description faces | |
143 | Faces icons for GDM. | |
144 | ||
145 | %description faces -l pl.UTF-8 | |
146 | Ikony twarzy dla GDM. | |
147 | ||
2835d411 JR |
148 | %package Xnest |
149 | Summary: Xnest (ie embedded X) server for GDM | |
150 | Summary(pl.UTF-8): Serwer Xnest dla GDM | |
151 | Group: X11/Applications | |
3d1aa7b9 | 152 | Requires: %{name} = %{version}-%{release} |
2835d411 | 153 | Requires: xorg-xserver-Xnest |
608c97ed | 154 | Obsoletes: gdm-Xnest <= 2:%{version} |
2835d411 JR |
155 | |
156 | %description Xnest | |
157 | This package add support for Xnest server in gdm. | |
158 | ||
159 | %description Xnest -l pl.UTF-8 | |
160 | Ten pakiet dodaje do gdm wsparcie dla Xnest. | |
161 | ||
dc990d82 | 162 | %package init |
163 | Summary: Init script for GDM | |
2a014025 | 164 | Summary(pl.UTF-8): Skrypt init dla GDM-a |
dc990d82 | 165 | Group: X11/Applications |
c21d8af4 | 166 | Requires(post,preun): /sbin/chkconfig |
3d1aa7b9 | 167 | Requires: %{name} = %{version}-%{release} |
fa45eb38 | 168 | Requires: open |
608c97ed JR |
169 | Obsoletes: gdm-init <= 2:%{version} |
170 | Conflicts: gdm-init > 2:%{version} | |
dc990d82 | 171 | |
172 | %description init | |
173 | Init script for GDM. | |
174 | ||
3024dcd3 | 175 | %description init -l pl.UTF-8 |
dc990d82 | 176 | Skrypt init dla GDM-a. |
177 | ||
264bf23f | 178 | %prep |
86da5298 | 179 | %setup -q -a4 -n gdm-%{version} |
557c7bf4 | 180 | %patch0 -p1 |
ab8e93b2 | 181 | %patch1 -p1 |
7e11b9ef | 182 | %patch2 -p1 |
ce729ad7 | 183 | %patch3 -p1 |
2835d411 | 184 | %patch4 -p1 |
52694c5c JR |
185 | %patch5 -p1 |
186 | %patch6 -p1 | |
e4b6a317 JB |
187 | %patch7 -p1 |
188 | %patch8 -p1 | |
2835d411 | 189 | |
e4b6a317 JB |
190 | %{__sed} -i -e 's#sr@Latn#sr@latin#' po/LINGUAS |
191 | %{__mv} po/sr@{Latn,latin}.po | |
ab8e93b2 | 192 | |
264bf23f | 193 | %build |
4a861350 | 194 | %{__libtoolize} |
69c86ad4 | 195 | %{__glib_gettextize} |
196 | %{__intltoolize} | |
dc990d82 | 197 | %{__aclocal} |
8a570202 | 198 | %{__autoconf} |
199 | %{__automake} | |
557c7bf4 | 200 | %configure \ |
be473af7 | 201 | LIBS="-lXau" \ |
e4b6a317 | 202 | ZENITY=/usr/bin/zenity \ |
c7d57a18 | 203 | --disable-console-helper \ |
204 | --disable-scrollkeeper \ | |
205 | --enable-authentication-scheme=pam \ | |
86da5298 | 206 | --enable-secureremote \ |
e4b6a317 | 207 | --with-console-kit \ |
dc990d82 | 208 | --with-pam-prefix=/etc \ |
e4b6a317 JB |
209 | --with-tcp-wrappers \ |
210 | --with-selinux%{!?with_selinux:=no} \ | |
211 | --with-libaudit \ | |
212 | --with-xdmcp \ | |
213 | --with-xinerama \ | |
214 | --with-dmx \ | |
215 | --enable-ipv6 | |
1e57584d | 216 | |
39948e93 | 217 | %{__make} |
264bf23f | 218 | |
219 | %install | |
220 | rm -rf $RPM_BUILD_ROOT | |
dc990d82 | 221 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \ |
f2682e26 | 222 | $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm} \ |
ff971fee JR |
223 | $RPM_BUILD_ROOT%{_datadir}/gdm/themes/storky \ |
224 | $RPM_BUILD_ROOT%{systemdunitdir} | |
e2ef7640 | 225 | |
557c7bf4 | 226 | %{__make} install \ |
227 | DESTDIR=$RPM_BUILD_ROOT \ | |
dbf1d434 | 228 | PAM_PREFIX=/etc |
6a92f230 | 229 | |
e4b6a317 | 230 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/gdm/BuiltInSessions/default.desktop \ |
2835d411 JR |
231 | $RPM_BUILD_ROOT%{_datadir}/xsessions |
232 | ||
e4b6a317 JB |
233 | cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm |
234 | cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin | |
557c7bf4 | 235 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm |
dc990d82 | 236 | |
e4b6a317 | 237 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir} |
dc990d82 | 238 | |
e4b6a317 | 239 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/gdm.service |
ff971fee | 240 | |
e4b6a317 | 241 | cp -p storky/*.* $RPM_BUILD_ROOT%{_datadir}/gdm/themes/storky/ |
2835d411 | 242 | |
6a92f230 JR |
243 | touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm |
244 | ||
2835d411 JR |
245 | %find_lang gdm --with-gnome --with-omf --all-name |
246 | ||
247 | # Remove useless files | |
e57da90f | 248 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.{la,a} |
264bf23f | 249 | |
2835d411 | 250 | # moved to gnome-session |
e57da90f JR |
251 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/xsessions/gnome.desktop |
252 | ||
f51bc435 JB |
253 | %clean |
254 | rm -rf $RPM_BUILD_ROOT | |
255 | ||
b55b9ca7 | 256 | %pre |
d961ec46 | 257 | %groupadd -g 55 -r -f xdm |
dbdd08ff | 258 | %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm |
b55b9ca7 | 259 | |
23405411 | 260 | %post |
69c86ad4 | 261 | %scrollkeeper_update_post |
a54cc062 | 262 | %update_icon_cache hicolor |
ff971fee | 263 | %systemd_reload |
23405411 | 264 | |
dc990d82 | 265 | %postun |
69c86ad4 | 266 | %scrollkeeper_update_postun |
a54cc062 | 267 | %update_icon_cache hicolor |
ff971fee | 268 | %systemd_reload |
cd9e97f7 | 269 | |
b55b9ca7 | 270 | if [ "$1" = "0" ]; then |
50e794ab | 271 | %userremove xdm |
272 | %groupremove xdm | |
b55b9ca7 | 273 | fi |
dc990d82 | 274 | |
2835d411 | 275 | %triggerpostun -- gdm < 1:2.13.0.8-1 |
c7d57a18 | 276 | if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then |
277 | mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf | |
278 | fi | |
279 | ||
dc990d82 | 280 | %post init |
a88fede8 | 281 | /sbin/chkconfig --add gdm |
18676cb6 | 282 | if [ -f /var/lock/subsys/gdm ]; then |
dbdd08ff | 283 | echo "Run \"/sbin/service gdm restart\" to restart gdm." >&2 |
284 | echo "WARNING: it will terminate all sessions opened from gdm!" >&2 | |
18676cb6 | 285 | else |
dbdd08ff | 286 | echo "Run \"/sbin/service gdm start\" to start gdm." >&2 |
18676cb6 | 287 | fi |
8a1f07f6 | 288 | |
dc990d82 | 289 | %preun init |
f51bc435 | 290 | if [ "$1" = "0" ]; then |
dbdd08ff | 291 | %service gdm stop |
f51bc435 | 292 | /sbin/chkconfig --del gdm |
a88fede8 | 293 | fi |
e2ef7640 | 294 | |
2835d411 | 295 | %files -f gdm.lang |
6a92f230 | 296 | %defattr(644,root,root,755) |
2252f92d | 297 | %doc AUTHORS ChangeLog NEWS README TODO |
2835d411 JR |
298 | %attr(755,root,root) %{_bindir}/gdm-dmx-reconnect-proxy |
299 | %attr(755,root,root) %{_bindir}/gdmdynamic | |
300 | %attr(755,root,root) %{_bindir}/gdmflexiserver | |
301 | %attr(755,root,root) %{_bindir}/gdmphotosetup | |
302 | %attr(755,root,root) %{_bindir}/gdmthemetester | |
e4b6a317 JB |
303 | %attr(755,root,root) %{_sbindir}/gdm |
304 | %attr(755,root,root) %{_sbindir}/gdm-binary | |
305 | %attr(755,root,root) %{_sbindir}/gdm-restart | |
306 | %attr(755,root,root) %{_sbindir}/gdm-safe-restart | |
307 | %attr(755,root,root) %{_sbindir}/gdm-stop | |
308 | %attr(755,root,root) %{_sbindir}/gdmsetup | |
7f198708 JB |
309 | %attr(755,root,root) %{_libexecdir}/gdm-ssh-session |
310 | %attr(755,root,root) %{_libexecdir}/gdmaskpass | |
311 | %attr(755,root,root) %{_libexecdir}/gdmopen | |
312 | %attr(755,root,root) %{_libexecdir}/gdmtranslate | |
313 | %attr(755,root,root) %{_libexecdir}/gdmchooser | |
314 | %attr(755,root,root) %{_libexecdir}/gdmgreeter | |
315 | %attr(755,root,root) %{_libexecdir}/gdmlogin | |
a724ce40 | 316 | |
ff971fee | 317 | %{systemdunitdir}/gdm.service |
dc990d82 | 318 | %dir %{_sysconfdir}/gdm |
a724ce40 JR |
319 | %dir %{_sysconfdir}/gdm/Init |
320 | %dir %{_sysconfdir}/gdm/PreSession | |
321 | %dir %{_sysconfdir}/gdm/PostSession | |
322 | %dir %{_sysconfdir}/gdm/PostLogin | |
2835d411 | 323 | %dir %{_sysconfdir}/gdm/modules |
7d1a5667 JR |
324 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/Init/Default |
325 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/PostLogin/Default.sample | |
326 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/PostSession/Default | |
327 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/PreSession/Default | |
328 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/XKeepsCrashing | |
329 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/Xsession | |
330 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/custom.conf | |
a724ce40 JR |
331 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/locale.alias |
332 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/modules/* | |
2835d411 | 333 | |
044dbf2f ER |
334 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm* |
335 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm | |
2835d411 | 336 | %attr(1770,root,xdm) /var/lib/gdm |
a76660a7 | 337 | %attr(750,xdm,xdm) /var/log/gdm |
dc990d82 | 338 | %attr(750,xdm,xdm) /home/services/xdm |
e4b6a317 JB |
339 | %{_pixmapsdir}/gdm-foot-logo.png |
340 | %{_pixmapsdir}/gdm-pld-logo.png | |
341 | %{_pixmapsdir}/nobody.png | |
342 | %{_pixmapsdir}/nohost.png | |
b6c954a8 | 343 | %{_datadir}/gdm |
015f9577 | 344 | %{_datadir}/xsessions/default.desktop |
86da5298 | 345 | %{_datadir}/xsessions/ssh.desktop |
e4b6a317 JB |
346 | %{_iconsdir}/hicolor/*x*/apps/gdm*.png |
347 | %{_iconsdir}/hicolor/scalable/apps/gdm*.svg | |
348 | %attr(755,root,root) %{_libdir}/gtk-2.0/modules/libdwellmouselistener.so | |
349 | %attr(755,root,root) %{_libdir}/gtk-2.0/modules/libkeymouselistener.so | |
350 | %{_mandir}/man1/gdm.1* | |
351 | ||
352 | %files faces | |
353 | %defattr(644,root,root,755) | |
354 | %{_pixmapsdir}/faces | |
dc990d82 | 355 | |
2835d411 | 356 | %files Xnest |
dc990d82 | 357 | %defattr(644,root,root,755) |
2835d411 JR |
358 | %attr(755,root,root) %{_bindir}/gdmXnest |
359 | %attr(755,root,root) %{_bindir}/gdmXnestchooser | |
ba37d638 | 360 | |
2835d411 | 361 | %files init |
ba37d638 | 362 | %defattr(644,root,root,755) |
2835d411 | 363 | %attr(754,root,root) /etc/rc.d/init.d/gdm |