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