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