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