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