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