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