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