]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # TODO: | |
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 | |
5 | # - ConsoleKit support | |
6 | # | |
7 | # Conditiional build: | |
8 | %bcond_without selinux # without selinux | |
9 | # | |
10 | Summary: GNOME Display Manager | |
11 | Summary(es.UTF-8): Administrador de Entrada del GNOME | |
12 | Summary(ja.UTF-8): GNOME ディスプレイマネージャ | |
13 | Summary(pl.UTF-8): gdm - zarządca ekranów GNOME | |
14 | Summary(pt_BR.UTF-8): Gerenciador de Entrada do GNOME | |
15 | Summary(ru.UTF-8): Дисплейный менеджер GNOME | |
16 | Summary(uk.UTF-8): Дисплейний менеджер GNOME | |
17 | Name: gdm | |
18 | Version: 2.20.0 | |
19 | Release: 1 | |
20 | Epoch: 1 | |
21 | License: GPL/LGPL | |
22 | Group: X11/Applications | |
23 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gdm/2.20/%{name}-%{version}.tar.bz2 | |
24 | # Source0-md5: cf374113a1f837b0df916572625b5078 | |
25 | Source1: %{name}.pamd | |
26 | Source2: %{name}.init | |
27 | Source3: %{name}-pld-logo.png | |
28 | # http://cvs.pld-linux.org/cgi-bin/cvsweb/pld-artwork/gdm/storky/ | |
29 | Source4: %{name}-storky.tar.gz | |
30 | # Source4-md5: e293fbe4a60004056f6894463b874ae8 | |
31 | Source5: %{name}-autologin.pamd | |
32 | Patch0: %{name}-xdmcp.patch | |
33 | Patch1: %{name}-conf.patch | |
34 | Patch2: %{name}-xsession.patch | |
35 | Patch4: %{name}-desktop.patch | |
36 | URL: http://www.jirka.org/gdm.html | |
37 | BuildRequires: ConsoleKit-devel | |
38 | BuildRequires: attr-devel | |
39 | BuildRequires: autoconf >= 2.52 | |
40 | BuildRequires: automake | |
41 | BuildRequires: dbus-glib-devel >= 0.73 | |
42 | BuildRequires: gettext-devel | |
43 | BuildRequires: gtk+2-devel >= 2:2.10.14 | |
44 | BuildRequires: intltool >= 0.36.1 | |
45 | BuildRequires: libart_lgpl-devel >= 2.3.19 | |
46 | BuildRequires: libglade2-devel >= 1:2.6.2 | |
47 | BuildRequires: libgnomeui-devel >= 2.19.1 | |
48 | BuildRequires: libgsf-devel >= 1.14.6 | |
49 | BuildRequires: librsvg-devel >= 1:2.18.1 | |
50 | %{?with_selinux:BuildRequires: libselinux-devel} | |
51 | BuildRequires: libtool | |
52 | BuildRequires: libxml2-devel >= 1:2.6.29 | |
53 | BuildRequires: pam-devel | |
54 | BuildRequires: perl-modules | |
55 | BuildRequires: rpmbuild(macros) >= 1.268 | |
56 | BuildRequires: scrollkeeper | |
57 | BuildRequires: xorg-lib-libXdmcp-devel | |
58 | BuildRequires: xorg-lib-libXi-devel | |
59 | BuildRequires: xorg-lib-libXinerama-devel | |
60 | BuildRequires: xorg-lib-libdmx-devel | |
61 | Requires(post,postun): gtk+2 | |
62 | Requires(post,postun): hicolor-icon-theme | |
63 | Requires(post,postun): /usr/bin/scrollkeeper-update | |
64 | Requires(postun): /usr/sbin/groupdel | |
65 | Requires(postun): /usr/sbin/userdel | |
66 | Requires(pre): /bin/id | |
67 | Requires(pre): /usr/sbin/groupadd | |
68 | Requires(pre): /usr/sbin/useradd | |
69 | Requires: libgnomeui >= 2.19.1 | |
70 | Requires: pam >= 0.99.7.1 | |
71 | Requires: which | |
72 | Requires: xorg-app-sessreg | |
73 | Provides: XDM | |
74 | Provides: group(xdm) | |
75 | Provides: user(xdm) | |
76 | Conflicts: gdkxft | |
77 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
78 | ||
79 | %define _localstatedir /var/lib | |
80 | ||
81 | %description | |
82 | Gdm (the GNOME Display Manager) is a highly configurable | |
83 | reimplementation of xdm, the X Display Manager. Gdm allows you to log | |
84 | into your system with the X Window System running and supports running | |
85 | several different X sessions on your local machine at the same time. | |
86 | ||
87 | %description -l es.UTF-8 | |
88 | Administrador de Entrada del GNOME. | |
89 | ||
90 | %description -l ja.UTF-8 | |
91 | Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display | |
92 | Manager の再実装版です。 Gdm を使うと、 X Window System | |
93 | が動いているあなたの | |
94 | システムにいろいろなセッションを選択してログインすることができます。 | |
95 | ||
96 | このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。 | |
97 | ||
98 | %description -l pl.UTF-8 | |
99 | Gdm jest wysokokonfigurowalną reimplementacją xdma. Gdm pozwala | |
100 | logować się do systemu z poziomu X11 i wspiera jednoczesną pracę kilku | |
101 | różnych sesji X na lokalnej maszynie. | |
102 | ||
103 | %description -l pt_BR.UTF-8 | |
104 | Gerenciador de Entrada do GNOME. | |
105 | ||
106 | %description -l ru.UTF-8 | |
107 | GDM (GNOME Display Manager) - это реимплементация xdm (X Display | |
108 | Manager). GDM позволяет вам входить в систему, на которой запущено X | |
109 | Window и поддерживает работу нескольуих разных X сеансов одновременно. | |
110 | ||
111 | %description -l uk.UTF-8 | |
112 | GDM (GNOME Display Manager) - це реімплементація xdm (X Display | |
113 | Manager). GDM дозволяє вам входити в систему, на якій запущено X | |
114 | Window та підтримує роботу кількох різних X сеансів одночасно. | |
115 | ||
116 | %package Xnest | |
117 | Summary: Xnest (ie embedded X) server for GDM | |
118 | Summary(pl.UTF-8): Serwer Xnest dla GDM | |
119 | Group: X11/Applications | |
120 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
121 | Requires: xorg-xserver-Xnest | |
122 | ||
123 | %description Xnest | |
124 | This package add support for Xnest server in gdm. | |
125 | ||
126 | %description Xnest -l pl.UTF-8 | |
127 | Ten pakiet dodaje do gdm wsparcie dla Xnest. | |
128 | ||
129 | %package init | |
130 | Summary: Init script for GDM | |
131 | Summary(pl.UTF-8): Skrypt init dla GDM-a | |
132 | Group: X11/Applications | |
133 | Requires(post,preun): /sbin/chkconfig | |
134 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
135 | Requires: open | |
136 | ||
137 | %description init | |
138 | Init script for GDM. | |
139 | ||
140 | %description init -l pl.UTF-8 | |
141 | Skrypt init dla GDM-a. | |
142 | ||
143 | %prep | |
144 | %setup -q -a4 | |
145 | %patch0 -p1 | |
146 | %patch1 -p1 | |
147 | %patch2 -p1 | |
148 | %patch4 -p1 | |
149 | ||
150 | %build | |
151 | %{__libtoolize} | |
152 | %{__glib_gettextize} | |
153 | %{__intltoolize} | |
154 | %{__aclocal} | |
155 | %{__autoconf} | |
156 | %{__automake} | |
157 | %configure \ | |
158 | --disable-console-helper \ | |
159 | --disable-scrollkeeper \ | |
160 | --enable-authentication-scheme=pam \ | |
161 | --with-pam-prefix=/etc \ | |
162 | --with-tcp-wrappers=yes \ | |
163 | --with%{!?with_selinux:out}-selinux \ | |
164 | --with-xdmcp=yes \ | |
165 | --with-xinerama=yes | |
166 | ||
167 | %{__make} | |
168 | ||
169 | %install | |
170 | rm -rf $RPM_BUILD_ROOT | |
171 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \ | |
172 | $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm} \ | |
173 | $RPM_BUILD_ROOT%{_datadir}/gdm/themes/storky | |
174 | ||
175 | %{__make} install \ | |
176 | DESTDIR=$RPM_BUILD_ROOT \ | |
177 | PAM_PREFIX=/etc | |
178 | ||
179 | mv $RPM_BUILD_ROOT%{_datadir}/gdm/BuiltInSessions/default.desktop \ | |
180 | $RPM_BUILD_ROOT%{_datadir}/xsessions | |
181 | ||
182 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm | |
183 | install %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin | |
184 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm | |
185 | ||
186 | install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir} | |
187 | ||
188 | install storky/*.* $RPM_BUILD_ROOT%{_datadir}/gdm/themes/storky/ | |
189 | ||
190 | touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm | |
191 | ||
192 | %find_lang %{name} --all-name --with-gnome | |
193 | ||
194 | # Remove useless files | |
195 | rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.{la,a} | |
196 | ||
197 | # moved to gnome-session | |
198 | rm -f $RPM_BUILD_ROOT%{_datadir}/xsessions/gnome.desktop | |
199 | ||
200 | %clean | |
201 | rm -rf $RPM_BUILD_ROOT | |
202 | ||
203 | %pre | |
204 | %groupadd -g 55 -r -f xdm | |
205 | %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm | |
206 | ||
207 | %post | |
208 | %scrollkeeper_update_post | |
209 | %update_icon_cache hicolor | |
210 | ||
211 | %postun | |
212 | %scrollkeeper_update_postun | |
213 | %update_icon_cache hicolor | |
214 | ||
215 | if [ "$1" = "0" ]; then | |
216 | %userremove xdm | |
217 | %groupremove xdm | |
218 | fi | |
219 | ||
220 | %triggerpostun -- %{name} < 1:2.13.0.8-1 | |
221 | if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then | |
222 | mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf | |
223 | fi | |
224 | ||
225 | %post init | |
226 | /sbin/chkconfig --add gdm | |
227 | if [ -f /var/lock/subsys/gdm ]; then | |
228 | echo "Run \"/sbin/service gdm restart\" to restart gdm." >&2 | |
229 | echo "WARNING: it will terminate all sessions opened from gdm!" >&2 | |
230 | else | |
231 | echo "Run \"/sbin/service gdm start\" to start gdm." >&2 | |
232 | fi | |
233 | ||
234 | %preun init | |
235 | if [ "$1" = "0" ]; then | |
236 | %service gdm stop | |
237 | /sbin/chkconfig --del gdm | |
238 | fi | |
239 | ||
240 | %files -f %{name}.lang | |
241 | %defattr(644,root,root,755) | |
242 | %doc AUTHORS ChangeLog NEWS README TODO | |
243 | %attr(755,root,root) %{_bindir}/gdm-dmx-reconnect-proxy | |
244 | %attr(755,root,root) %{_bindir}/gdmdynamic | |
245 | %attr(755,root,root) %{_bindir}/gdmflexiserver | |
246 | %attr(755,root,root) %{_bindir}/gdmphotosetup | |
247 | %attr(755,root,root) %{_bindir}/gdmthemetester | |
248 | %attr(755,root,root) %{_libdir}/gdmaskpass | |
249 | %attr(755,root,root) %{_libdir}/gdmopen | |
250 | %attr(755,root,root) %{_libdir}/gdmtranslate | |
251 | %attr(755,root,root) %{_libdir}/gdmchooser | |
252 | %attr(755,root,root) %{_libdir}/gdmgreeter | |
253 | %attr(755,root,root) %{_libdir}/gdmlogin | |
254 | %attr(755,root,root) %{_sbindir}/* | |
255 | %dir %{_sysconfdir}/gdm | |
256 | %dir %{_sysconfdir}/gdm/modules | |
257 | %attr(755,root,root) %config %{_sysconfdir}/gdm/Init | |
258 | %attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession | |
259 | %attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession | |
260 | %attr(755,root,root) %config %{_sysconfdir}/gdm/XKeepsCrashing | |
261 | %attr(755,root,root) %config %{_sysconfdir}/gdm/Xsession | |
262 | %config %{_sysconfdir}/gdm/PostLogin/Default.sample | |
263 | %config %{_sysconfdir}/gdm/locale.alias | |
264 | %config %{_sysconfdir}/gdm/modules/* | |
265 | ||
266 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/ | |
267 | ||
268 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm* | |
269 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm | |
270 | %attr(750,xdm,xdm) /var/lib/gdm | |
271 | %attr(750,xdm,xdm) /var/log/gdm | |
272 | %attr(750,xdm,xdm) /home/services/xdm | |
273 | %{_pixmapsdir}/* | |
274 | %{_datadir}/gdm | |
275 | #%%{_datadir}/xsessions - moved to gnome-session | |
276 | %{_datadir}/xsessions/default.desktop | |
277 | %{_iconsdir}/hicolor/*/apps/*.png | |
278 | %{_omf_dest_dir}/gdm | |
279 | %attr(755,root,root) %{_libdir}/gtk-2.0/modules/lib*.so | |
280 | %{_mandir}/man1/gdm* | |
281 | ||
282 | %files Xnest | |
283 | %defattr(644,root,root,755) | |
284 | %attr(755,root,root) %{_bindir}/gdmXnest | |
285 | %attr(755,root,root) %{_bindir}/gdmXnestchooser | |
286 | ||
287 | %files init | |
288 | %defattr(644,root,root,755) | |
289 | %attr(754,root,root) /etc/rc.d/init.d/gdm |