]>
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 | # | |
6 | # Conditiional build: | |
7 | %bcond_without selinux # without selinux | |
8 | # | |
9 | Summary: GNOME Display Manager | |
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 | |
16 | Name: gdm | |
17 | Version: 2.30.4 | |
18 | Release: 1 | |
19 | Epoch: 2 | |
20 | License: GPL/LGPL | |
21 | Group: X11/Applications | |
22 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gdm/2.30/%{name}-%{version}.tar.bz2 | |
23 | # Source0-md5: f5e0ff54522f005d7593ac6686772988 | |
24 | Source1: %{name}.pamd | |
25 | Source2: %{name}.init | |
26 | Source3: %{name}-pld-logo.png | |
27 | #Source4: %{name}-autologin.pamd | |
28 | Source5: %{name}-custom.desktop | |
29 | Source6: %{name}-default.desktop | |
30 | Patch0: %{name}-xdmcp.patch | |
31 | Patch1: %{name}-polkit.patch | |
32 | Patch2: %{name}-xsession.patch | |
33 | Patch3: %{name}-defaults.patch | |
34 | URL: http://www.gnome.org/projects/gdm/ | |
35 | #BuildRequires: ConsoleKit-devel >= 0.4.1 | |
36 | BuildRequires: GConf2-devel >= 2.24.0 | |
37 | BuildRequires: UPower-devel | |
38 | BuildRequires: attr-devel | |
39 | BuildRequires: audit-libs-devel | |
40 | BuildRequires: autoconf >= 2.60 | |
41 | BuildRequires: automake >= 1:1.9 | |
42 | #BuildRequires: check >= 0.9.4 | |
43 | BuildRequires: dbus-glib-devel >= 0.74 | |
44 | BuildRequires: docbook-dtd412-xml | |
45 | BuildRequires: gettext-devel | |
46 | BuildRequires: glib2-devel >= 1:2.22.0 | |
47 | BuildRequires: gnome-doc-utils | |
48 | BuildRequires: gnome-panel-devel >= 2.24.0 | |
49 | BuildRequires: gtk+2-devel >= 2:2.14.0 | |
50 | BuildRequires: intltool >= 0.40.0 | |
51 | BuildRequires: iso-codes | |
52 | BuildRequires: libcanberra-gtk-devel >= 0.4 | |
53 | %{?with_selinux:BuildRequires: libselinux-devel} | |
54 | BuildRequires: libtool | |
55 | BuildRequires: libxklavier-devel >= 4.0-2 | |
56 | BuildRequires: pam-devel | |
57 | BuildRequires: perl-modules | |
58 | BuildRequires: pkgconfig | |
59 | BuildRequires: polkit-devel | |
60 | #BuildRequires: polkit-gnome-devel >= 0.92 | |
61 | BuildRequires: rpmbuild(find_lang) >= 1.23 | |
62 | BuildRequires: rpmbuild(macros) >= 1.311 | |
63 | #BuildRequires: scrollkeeper | |
64 | BuildRequires: xorg-lib-libXdmcp-devel | |
65 | BuildRequires: xorg-lib-libXi-devel | |
66 | BuildRequires: xorg-lib-libXinerama-devel | |
67 | #BuildRequires: xorg-lib-libdmx-devel | |
68 | Requires(post,postun): /usr/bin/scrollkeeper-update | |
69 | Requires(post,postun): gtk+2 | |
70 | Requires(post,postun): hicolor-icon-theme | |
71 | Requires(post,preun): GConf2 | |
72 | Requires(postun): /usr/sbin/groupdel | |
73 | Requires(postun): /usr/sbin/userdel | |
74 | Requires(pre): /bin/id | |
75 | Requires(pre): /usr/sbin/groupadd | |
76 | Requires(pre): /usr/sbin/useradd | |
77 | Requires: /usr/bin/X | |
78 | Requires: gnome-session >= 2.30.0 | |
79 | Requires: gnome-settings-daemon >= 2.24.0 | |
80 | Requires: pam >= 0.99.7.1 | |
81 | Requires: polkit-gnome >= 0.93 | |
82 | Requires: which | |
83 | Requires: xorg-app-sessreg | |
84 | Requires: xorg-app-xmodmap | |
85 | Suggests: zenity | |
86 | Provides: XDM | |
87 | Provides: group(xdm) | |
88 | Provides: user(xdm) | |
89 | Obsoletes: gdm-Xnest | |
90 | Conflicts: gdkxft | |
91 | # sr@Latn vs. sr@latin | |
92 | Conflicts: glibc-misc < 6:2.7 | |
93 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
94 | ||
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. | |
100 | ||
101 | %description -l es.UTF-8 | |
102 | Administrador de Entrada del GNOME. | |
103 | ||
104 | %description -l ja.UTF-8 | |
105 | Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display | |
106 | Manager の再実装版です。 Gdm を使うと、 X Window System | |
107 | が動いているあなたの | |
108 | システムにいろいろなセッションを選択してログインすることができます。 | |
109 | ||
110 | このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。 | |
111 | ||
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. | |
116 | ||
117 | %description -l pt_BR.UTF-8 | |
118 | Gerenciador de Entrada do GNOME. | |
119 | ||
120 | %description -l ru.UTF-8 | |
121 | GDM (GNOME Display Manager) - это реимплементация xdm (X Display | |
122 | Manager). GDM позволяет вам входить в систему, на которой запущено X | |
123 | Window и поддерживает работу нескольуих разных X сеансов одновременно. | |
124 | ||
125 | %description -l uk.UTF-8 | |
126 | GDM (GNOME Display Manager) - це реімплементація xdm (X Display | |
127 | Manager). GDM дозволяє вам входити в систему, на якій запущено X | |
128 | Window та підтримує роботу кількох різних X сеансів одночасно. | |
129 | ||
130 | %package init | |
131 | Summary: Init script for GDM | |
132 | Summary(pl.UTF-8): Skrypt init dla GDM-a | |
133 | Group: X11/Applications | |
134 | Requires(post,preun): /sbin/chkconfig | |
135 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
136 | Requires: open | |
137 | ||
138 | %description init | |
139 | Init script for GDM. | |
140 | ||
141 | %description init -l pl.UTF-8 | |
142 | Skrypt init dla GDM-a. | |
143 | ||
144 | %package user-switch-applet | |
145 | Summary: GNOME applet for fast user switching | |
146 | Summary(pl.UTF-8): Aplet GNOME do szybkiego przełączania użytkowników | |
147 | Group: X11/Applications | |
148 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
149 | Provides: gnome-applet-fast-user-switch = %{epoch}:%{version}-%{release} | |
150 | Obsoletes: gnome-applet-fast-user-switch | |
151 | ||
152 | %description user-switch-applet | |
153 | The GDM User Switch Applet is an applet for the GNOME panel which | |
154 | provides a mechanism for switching between users. | |
155 | ||
156 | %description user-switch-applet -l pl.UTF-8 | |
157 | GDM User Switch Applet to aplet panelu GNOME udostępniający mechanizm | |
158 | do przełączania między użytkownikami. | |
159 | ||
160 | %prep | |
161 | %setup -q | |
162 | %patch0 -p1 | |
163 | %patch1 -p1 | |
164 | %patch2 -p1 | |
165 | %patch3 -p1 | |
166 | rm -f data/gdm.schemas.in | |
167 | sed -i 's/^en@shaw//' po/LINGUAS | |
168 | rm po/en@shaw.po | |
169 | ||
170 | %build | |
171 | %{__libtoolize} | |
172 | %{__glib_gettextize} | |
173 | %{__intltoolize} | |
174 | %{__aclocal} | |
175 | %{__autoheader} | |
176 | %{__autoconf} | |
177 | %{__automake} | |
178 | %configure \ | |
179 | --disable-console-helper \ | |
180 | --disable-scrollkeeper \ | |
181 | --disable-silent-rules \ | |
182 | --with-console-kit \ | |
183 | --enable-authentication-scheme=pam \ | |
184 | --with-pam-prefix=/etc \ | |
185 | --with-tcp-wrappers=yes \ | |
186 | --with%{!?with_selinux:out}-selinux \ | |
187 | --with-xdmcp=yes \ | |
188 | --with-xinerama=yes \ | |
189 | --with-user=xdm \ | |
190 | --with-group=xdm | |
191 | ||
192 | %{__make} | |
193 | ||
194 | %install | |
195 | rm -rf $RPM_BUILD_ROOT | |
196 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \ | |
197 | $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm} \ | |
198 | $RPM_BUILD_ROOT%{_datadir}/xsessions | |
199 | ||
200 | %{__make} install \ | |
201 | DESTDIR=$RPM_BUILD_ROOT \ | |
202 | PAM_PREFIX=/etc | |
203 | ||
204 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm | |
205 | #install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin | |
206 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm | |
207 | ||
208 | install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir} | |
209 | ||
210 | touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm | |
211 | ||
212 | %find_lang %{name} --with-gnome --with-omf --all-name | |
213 | ||
214 | # allow executing ~/.Xclients and ~/.xsession | |
215 | install %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/xsessions/custom.desktop | |
216 | install %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/xsessions/default.desktop | |
217 | ||
218 | %clean | |
219 | rm -rf $RPM_BUILD_ROOT | |
220 | ||
221 | %pre | |
222 | %groupadd -g 55 -r -f xdm | |
223 | %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm | |
224 | ||
225 | %post | |
226 | %gconf_schema_install gdm-simple-greeter.schemas | |
227 | %scrollkeeper_update_post | |
228 | %update_icon_cache hicolor | |
229 | ||
230 | %preun | |
231 | %gconf_schema_uninstall gdm-simple-greeter.schemas | |
232 | ||
233 | %postun | |
234 | %scrollkeeper_update_postun | |
235 | %update_icon_cache hicolor | |
236 | ||
237 | if [ "$1" = "0" ]; then | |
238 | %userremove xdm | |
239 | %groupremove xdm | |
240 | fi | |
241 | ||
242 | %triggerpostun -- %{name} < 1:2.13.0.8-1 | |
243 | if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then | |
244 | mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf | |
245 | fi | |
246 | ||
247 | %post init | |
248 | /sbin/chkconfig --add gdm | |
249 | if [ -f /var/lock/subsys/gdm ]; then | |
250 | echo "Run \"/sbin/service gdm restart\" to restart gdm." >&2 | |
251 | echo "WARNING: it will terminate all sessions opened from gdm!" >&2 | |
252 | else | |
253 | echo "Run \"/sbin/service gdm start\" to start gdm." >&2 | |
254 | fi | |
255 | ||
256 | %preun init | |
257 | if [ "$1" = "0" ]; then | |
258 | %service gdm stop | |
259 | /sbin/chkconfig --del gdm | |
260 | fi | |
261 | ||
262 | %files -f %{name}.lang | |
263 | %defattr(644,root,root,755) | |
264 | %doc AUTHORS ChangeLog NEWS README TODO | |
265 | %attr(755,root,root) %{_libexecdir}/gdm-crash-logger | |
266 | %attr(755,root,root) %{_libexecdir}/gdm-factory-slave | |
267 | %attr(755,root,root) %{_libexecdir}/gdm-host-chooser | |
268 | %attr(755,root,root) %{_libexecdir}/gdm-product-slave | |
269 | %attr(755,root,root) %{_libexecdir}/gdm-session-worker | |
270 | %attr(755,root,root) %{_libexecdir}/gdm-simple-chooser | |
271 | %attr(755,root,root) %{_libexecdir}/gdm-simple-greeter | |
272 | %attr(755,root,root) %{_libexecdir}/gdm-simple-slave | |
273 | %attr(755,root,root) %{_libexecdir}/gdm-xdmcp-chooser-slave | |
274 | %attr(755,root,root) %{_sbindir}/* | |
275 | %attr(755,root,root) %{_bindir}/* | |
276 | %dir %{_sysconfdir}/gdm | |
277 | %dir %{_sysconfdir}/gdm/Init | |
278 | %attr(755,root,root) %config %{_sysconfdir}/gdm/Init/Default | |
279 | %attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession | |
280 | %attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession | |
281 | %attr(755,root,root) %config %{_sysconfdir}/gdm/Xsession | |
282 | %dir %{_sysconfdir}/gdm/PostLogin | |
283 | %config %{_sysconfdir}/gdm/PostLogin/Default.sample | |
284 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/custom.conf | |
285 | %{_sysconfdir}/gdm/gdm.schemas | |
286 | %{_sysconfdir}/gconf/schemas/gdm-simple-greeter.schemas | |
287 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/* | |
288 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm* | |
289 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm | |
290 | %attr(1755,root,xdm) /var/cache/gdm | |
291 | %attr(1770,root,xdm) %dir /var/lib/gdm | |
292 | %attr(1750,root,xdm) %dir /var/lib/gdm/.gconf.mandatory | |
293 | %attr(1640,root,xdm) /var/lib/gdm/.gconf.mandatory/*.xml | |
294 | %attr(644,root,xdm) /var/lib/gdm/.gconf.path | |
295 | %attr(750,xdm,xdm) /var/log/gdm | |
296 | %attr(1777,root,xdm) /var/run/gdm | |
297 | %attr(750,xdm,xdm) /home/services/xdm | |
298 | %{_pixmapsdir}/* | |
299 | %{_datadir}/gdm | |
300 | %{_datadir}/polkit-1/actions/gdm.policy | |
301 | %{_datadir}/xsessions/custom.desktop | |
302 | %{_datadir}/xsessions/default.desktop | |
303 | %{_iconsdir}/hicolor/*/apps/*.png | |
304 | ||
305 | %files init | |
306 | %defattr(644,root,root,755) | |
307 | %attr(754,root,root) /etc/rc.d/init.d/gdm | |
308 | ||
309 | %files user-switch-applet | |
310 | %defattr(644,root,root,755) | |
311 | %attr(755,root,root) %{_libexecdir}/gdm-user-switch-applet | |
312 | %{_libdir}/bonobo/servers/GNOME_FastUserSwitchApplet.server | |
313 | %{_datadir}/gnome-2.0/ui/GNOME_FastUserSwitchApplet.xml |