]>
Commit | Line | Data |
---|---|---|
0fb756ff | 1 | # |
98b48f20 | 2 | # TODO: |
157d4449 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 | |
98b48f20 | 5 | # |
69927793 AG |
6 | # Conditiional build: |
7 | %bcond_without selinux # without selinux | |
8 | # | |
066398c3 | 9 | Summary: GNOME Display Manager |
82455104 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 | |
066398c3 | 16 | Name: gdm |
a2a3bef8 | 17 | Version: 2.24.0 |
0e9f577d | 18 | Release: 2 |
ac5ef200 | 19 | Epoch: 1 |
f6c86ba4 | 20 | License: GPL/LGPL |
42b347d0 | 21 | Group: X11/Applications |
a2a3bef8 | 22 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gdm/2.24/%{name}-%{version}.tar.bz2 |
23 | # Source0-md5: c38e3debe8a02ad385f1c7077d21de9e | |
ac5ef200 | 24 | Source1: %{name}.pamd |
25 | Source2: %{name}.init | |
495829ba | 26 | Source3: %{name}-pld-logo.png |
a2a3bef8 | 27 | #Source4: %{name}-autologin.pamd |
ac5ef200 | 28 | Patch0: %{name}-xdmcp.patch |
70caaf1f | 29 | Patch2: %{name}-xsession.patch |
c4e3dbe3 | 30 | Patch4: %{name}-defaults.patch |
aca127f2 | 31 | URL: http://www.gnome.org/projects/gdm/ |
50873392 | 32 | BuildRequires: ConsoleKit-devel |
95b777c2 | 33 | BuildRequires: attr-devel |
157d4449 | 34 | BuildRequires: autoconf >= 2.52 |
116b805d | 35 | BuildRequires: automake |
157d4449 | 36 | BuildRequires: dbus-glib-devel >= 0.73 |
116b805d | 37 | BuildRequires: gettext-devel |
a2a3bef8 | 38 | BuildRequires: glib2-devel >= 1:2.15.0 |
aca127f2 | 39 | BuildRequires: gtk+2-devel >= 2:2.12.0 |
50873392 | 40 | BuildRequires: intltool >= 0.36.1 |
157d4449 | 41 | BuildRequires: libart_lgpl-devel >= 2.3.19 |
50873392 | 42 | BuildRequires: libglade2-devel >= 1:2.6.2 |
aca127f2 | 43 | BuildRequires: libgnomeui-devel >= 2.20.0 |
50873392 | 44 | BuildRequires: libgsf-devel >= 1.14.6 |
45 | BuildRequires: librsvg-devel >= 1:2.18.1 | |
69927793 | 46 | %{?with_selinux:BuildRequires: libselinux-devel} |
683a9219 | 47 | BuildRequires: libtool |
50873392 | 48 | BuildRequires: libxml2-devel >= 1:2.6.29 |
98b48f20 | 49 | BuildRequires: pam-devel |
e038830e | 50 | BuildRequires: perl-modules |
0df7c395 | 51 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
aca127f2 | 52 | BuildRequires: rpmbuild(macros) >= 1.311 |
157d4449 | 53 | BuildRequires: scrollkeeper |
98459d62 | 54 | BuildRequires: sed >= 4.0 |
dc82d2d7 | 55 | BuildRequires: xorg-lib-libXdmcp-devel |
56 | BuildRequires: xorg-lib-libXi-devel | |
57 | BuildRequires: xorg-lib-libXinerama-devel | |
83594792 | 58 | BuildRequires: xorg-lib-libdmx-devel |
590c69b1 | 59 | Requires(post,postun): gtk+2 |
831056d7 | 60 | Requires(post,postun): hicolor-icon-theme |
83594792 ER |
61 | Requires(post,postun): /usr/bin/scrollkeeper-update |
62 | Requires(postun): /usr/sbin/groupdel | |
63 | Requires(postun): /usr/sbin/userdel | |
26288641 JB |
64 | Requires(pre): /bin/id |
65 | Requires(pre): /usr/sbin/groupadd | |
66 | Requires(pre): /usr/sbin/useradd | |
a2a3bef8 | 67 | Requires: gnome-session >= 2.23.90 |
68 | Requires: gnome-settings-daemon >= 2.23.90 | |
aca127f2 | 69 | Requires: libgnomeui >= 2.20.0 |
bba08ce8 | 70 | Requires: pam >= 0.99.7.1 |
6beee835 | 71 | Requires: which |
3a21226f | 72 | Requires: xorg-app-xmodmap |
2004c339 | 73 | Requires: xorg-app-sessreg |
048e8543 | 74 | Provides: XDM |
5387309f | 75 | Provides: group(xdm) |
76 | Provides: user(xdm) | |
98b48f20 | 77 | Conflicts: gdkxft |
75fd7992 | 78 | # sr@Latn vs. sr@latin |
79 | Conflicts: glibc-misc < 6:2.7 | |
ac5ef200 | 80 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
066398c3 | 81 | |
84e15ca6 TP |
82 | %description |
83 | Gdm (the GNOME Display Manager) is a highly configurable | |
84 | reimplementation of xdm, the X Display Manager. Gdm allows you to log | |
85 | into your system with the X Window System running and supports running | |
86 | several different X sessions on your local machine at the same time. | |
b9713681 | 87 | |
25351dc6 | 88 | %description -l es.UTF-8 |
116b805d | 89 | Administrador de Entrada del GNOME. |
90 | ||
25351dc6 JR |
91 | %description -l ja.UTF-8 |
92 | Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display | |
93 | Manager の再実装版です。 Gdm を使うと、 X Window System | |
94 | が動いているあなたの | |
95 | システムにいろいろなセッションを選択してログインすることができます。 | |
24b65b9a | 96 | |
25351dc6 | 97 | このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。 |
24b65b9a | 98 | |
25351dc6 JR |
99 | %description -l pl.UTF-8 |
100 | Gdm jest wysokokonfigurowalną reimplementacją xdma. Gdm pozwala | |
101 | logować się do systemu z poziomu X11 i wspiera jednoczesną pracę kilku | |
102 | różnych sesji X na lokalnej maszynie. | |
f6d3e03e | 103 | |
25351dc6 | 104 | %description -l pt_BR.UTF-8 |
116b805d | 105 | Gerenciador de Entrada do GNOME. |
106 | ||
25351dc6 JR |
107 | %description -l ru.UTF-8 |
108 | GDM (GNOME Display Manager) - это реимплементация xdm (X Display | |
109 | Manager). GDM позволяет вам входить в систему, на которой запущено X | |
110 | Window и поддерживает работу нескольуих разных X сеансов одновременно. | |
24b65b9a | 111 | |
25351dc6 JR |
112 | %description -l uk.UTF-8 |
113 | GDM (GNOME Display Manager) - це реімплементація xdm (X Display | |
114 | Manager). GDM дозволяє вам входити в систему, на якій запущено X | |
115 | Window та підтримує роботу кількох різних X сеансів одночасно. | |
24b65b9a | 116 | |
116b805d | 117 | %package Xnest |
118 | Summary: Xnest (ie embedded X) server for GDM | |
82455104 | 119 | Summary(pl.UTF-8): Serwer Xnest dla GDM |
116b805d | 120 | Group: X11/Applications |
c00e1fa1 | 121 | Requires: %{name} = %{epoch}:%{version}-%{release} |
dc82d2d7 | 122 | Requires: xorg-xserver-Xnest |
116b805d | 123 | |
124 | %description Xnest | |
116b805d | 125 | This package add support for Xnest server in gdm. |
126 | ||
25351dc6 | 127 | %description Xnest -l pl.UTF-8 |
84e15ca6 TP |
128 | Ten pakiet dodaje do gdm wsparcie dla Xnest. |
129 | ||
98b48f20 | 130 | %package init |
131 | Summary: Init script for GDM | |
82455104 | 132 | Summary(pl.UTF-8): Skrypt init dla GDM-a |
98b48f20 | 133 | Group: X11/Applications |
83594792 | 134 | Requires(post,preun): /sbin/chkconfig |
c00e1fa1 | 135 | Requires: %{name} = %{epoch}:%{version}-%{release} |
dd72a121 | 136 | Requires: open |
98b48f20 | 137 | |
138 | %description init | |
139 | Init script for GDM. | |
140 | ||
25351dc6 | 141 | %description init -l pl.UTF-8 |
98b48f20 | 142 | Skrypt init dla GDM-a. |
143 | ||
b9713681 | 144 | %prep |
a2a3bef8 | 145 | %setup -q |
116b805d | 146 | %patch0 -p1 |
70caaf1f | 147 | %patch2 -p1 |
ecdce48a | 148 | %patch4 -p1 |
c00e1fa1 | 149 | |
b9713681 | 150 | %build |
c0747f8c | 151 | %{__libtoolize} |
04029a9e | 152 | %{__glib_gettextize} |
153 | %{__intltoolize} | |
98b48f20 | 154 | %{__aclocal} |
a2a3bef8 | 155 | %{__autoheader} |
46b6432e | 156 | %{__autoconf} |
157 | %{__automake} | |
116b805d | 158 | %configure \ |
dc82d2d7 | 159 | --disable-console-helper \ |
160 | --disable-scrollkeeper \ | |
69c827a2 | 161 | --with-console-kit \ |
dc82d2d7 | 162 | --enable-authentication-scheme=pam \ |
98b48f20 | 163 | --with-pam-prefix=/etc \ |
116b805d | 164 | --with-tcp-wrappers=yes \ |
dc82d2d7 | 165 | --with%{!?with_selinux:out}-selinux \ |
166 | --with-xdmcp=yes \ | |
a2a3bef8 | 167 | --with-xinerama=yes \ |
168 | --with-user=xdm \ | |
169 | --with-group=xdm | |
ac5ef200 | 170 | |
7f6bd484 | 171 | %{__make} |
b9713681 | 172 | |
173 | %install | |
174 | rm -rf $RPM_BUILD_ROOT | |
98b48f20 | 175 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \ |
48915507 | 176 | $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm} \ |
f6d3e03e | 177 | |
116b805d | 178 | %{__make} install \ |
179 | DESTDIR=$RPM_BUILD_ROOT \ | |
b757933d | 180 | PAM_PREFIX=/etc |
066398c3 | 181 | |
d7648bfd | 182 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm |
a2a3bef8 | 183 | #install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin |
116b805d | 184 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm |
98b48f20 | 185 | |
495829ba | 186 | install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir} |
98b48f20 | 187 | |
066398c3 JR |
188 | touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm |
189 | ||
aca127f2 | 190 | %find_lang %{name} --with-gnome --with-omf --all-name |
b9713681 | 191 | |
86111f36 | 192 | # Remove useless files |
193 | rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.{la,a} | |
194 | ||
c00e1fa1 | 195 | # moved to gnome-session |
196 | rm -f $RPM_BUILD_ROOT%{_datadir}/xsessions/gnome.desktop | |
197 | ||
dc63666f JB |
198 | %clean |
199 | rm -rf $RPM_BUILD_ROOT | |
200 | ||
f7e4906b | 201 | %pre |
b32b0eb5 | 202 | %groupadd -g 55 -r -f xdm |
0fb756ff | 203 | %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm |
f7e4906b | 204 | |
e7d75b7d | 205 | %post |
a2a3bef8 | 206 | %gconf_schema_install gdm-simple-greeter.schemas |
207 | #%%gconf_schema_install gdm-user-switch-applet.schemas | |
04029a9e | 208 | %scrollkeeper_update_post |
831056d7 | 209 | %update_icon_cache hicolor |
e7d75b7d | 210 | |
a2a3bef8 | 211 | %preun |
212 | %gconf_schema_uninstall gdm-simple-greeter.schemas | |
213 | #%%gconf_schema_uninstall gdm-user-switch-applet.schemas | |
214 | ||
98b48f20 | 215 | %postun |
04029a9e | 216 | %scrollkeeper_update_postun |
831056d7 | 217 | %update_icon_cache hicolor |
3b98aff6 | 218 | |
f7e4906b | 219 | if [ "$1" = "0" ]; then |
5387309f | 220 | %userremove xdm |
221 | %groupremove xdm | |
f7e4906b | 222 | fi |
98b48f20 | 223 | |
dc82d2d7 | 224 | %triggerpostun -- %{name} < 1:2.13.0.8-1 |
225 | if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then | |
226 | mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf | |
227 | fi | |
228 | ||
98b48f20 | 229 | %post init |
7943107a | 230 | /sbin/chkconfig --add gdm |
ff7b1bc7 | 231 | if [ -f /var/lock/subsys/gdm ]; then |
0fb756ff | 232 | echo "Run \"/sbin/service gdm restart\" to restart gdm." >&2 |
233 | echo "WARNING: it will terminate all sessions opened from gdm!" >&2 | |
ff7b1bc7 | 234 | else |
0fb756ff | 235 | echo "Run \"/sbin/service gdm start\" to start gdm." >&2 |
ff7b1bc7 | 236 | fi |
93384147 | 237 | |
98b48f20 | 238 | %preun init |
dc63666f | 239 | if [ "$1" = "0" ]; then |
0fb756ff | 240 | %service gdm stop |
dc63666f | 241 | /sbin/chkconfig --del gdm |
7943107a | 242 | fi |
f6d3e03e | 243 | |
12f50676 | 244 | %files -f %{name}.lang |
066398c3 | 245 | %defattr(644,root,root,755) |
a35babae | 246 | %doc AUTHORS ChangeLog NEWS README TODO |
a2a3bef8 | 247 | %attr(755,root,root) %{_libexecdir}/gdm-crash-logger |
248 | %attr(755,root,root) %{_libexecdir}/gdm-factory-slave | |
249 | %attr(755,root,root) %{_libexecdir}/gdm-host-chooser | |
250 | %attr(755,root,root) %{_libexecdir}/gdm-product-slave | |
251 | %attr(755,root,root) %{_libexecdir}/gdm-session-worker | |
252 | %attr(755,root,root) %{_libexecdir}/gdm-simple-chooser | |
253 | %attr(755,root,root) %{_libexecdir}/gdm-simple-greeter | |
254 | %attr(755,root,root) %{_libexecdir}/gdm-simple-slave | |
255 | %attr(755,root,root) %{_libexecdir}/gdm-user-switch-applet | |
256 | %attr(755,root,root) %{_libexecdir}/gdm-xdmcp-chooser-slave | |
116b805d | 257 | %attr(755,root,root) %{_sbindir}/* |
a2a3bef8 | 258 | %attr(755,root,root) %{_bindir}/* |
98b48f20 | 259 | %dir %{_sysconfdir}/gdm |
a2a3bef8 | 260 | %dir %{_sysconfdir}/gdm/Init |
261 | %attr(755,root,root) %config %{_sysconfdir}/gdm/Init/Default | |
116b805d | 262 | %attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession |
116b805d | 263 | %attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession |
518f8c4c | 264 | %attr(755,root,root) %config %{_sysconfdir}/gdm/Xsession |
a2a3bef8 | 265 | %dir %{_sysconfdir}/gdm/PostLogin |
518f8c4c | 266 | %config %{_sysconfdir}/gdm/PostLogin/Default.sample |
a2a3bef8 | 267 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/custom.conf |
268 | %{_sysconfdir}/gdm/gdm.schemas | |
269 | %{_sysconfdir}/gconf/schemas/gdm-simple-greeter.schemas | |
270 | #%{_sysconfdir}/gconf/schemas/gdm-user-switch-applet.schemas | |
271 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/* | |
711a64ba ER |
272 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm* |
273 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm | |
a2a3bef8 | 274 | %attr(750,xdm,xdm) %{_localstatedir}/gdm |
275 | %attr(750,xdm,xdm) %{_localstatedir}/log/gdm | |
98b48f20 | 276 | %attr(750,xdm,xdm) /home/services/xdm |
006e3362 | 277 | %{_pixmapsdir}/* |
12f50676 | 278 | %{_datadir}/gdm |
c61959bc | 279 | %{_iconsdir}/hicolor/*/apps/*.png |
a2a3bef8 | 280 | %{_datadir}/gnome-2.0/ui/GNOME_FastUserSwitchApplet.xml |
281 | %{_libdir}/bonobo/servers/*.server | |
282 | %{_localstatedir}/lib/gdm | |
116b805d | 283 | |
284 | %files Xnest | |
285 | %defattr(644,root,root,755) | |
98b48f20 | 286 | |
287 | %files init | |
288 | %defattr(644,root,root,755) | |
289 | %attr(754,root,root) /etc/rc.d/init.d/gdm |