]> git.pld-linux.org Git - packages/gdm.git/blame - gdm.spec
- upstart config
[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
4b2aa396 17Version: 2.32.0
64524d44 18Release: 1
3488434f 19Epoch: 2
f6c86ba4 20License: GPL/LGPL
42b347d0 21Group: X11/Applications
4b2aa396
PZ
22Source0: http://ftp.gnome.org/pub/GNOME/sources/gdm/2.32/%{name}-%{version}.tar.bz2
23# Source0-md5: 3c28e13a3d5e5f35d29669460acb57bb
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
b614b4a4
MB
166sed -i 's/^en@shaw//' po/LINGUAS
167rm po/en@shaw.po
3488434f 168
b9713681 169%build
c0747f8c 170%{__libtoolize}
04029a9e 171%{__glib_gettextize}
172%{__intltoolize}
98b48f20 173%{__aclocal}
f2a1103b 174%{__autoheader}
46b6432e 175%{__autoconf}
176%{__automake}
116b805d 177%configure \
dc82d2d7 178 --disable-console-helper \
179 --disable-scrollkeeper \
b614b4a4 180 --disable-silent-rules \
69c827a2 181 --with-console-kit \
dc82d2d7 182 --enable-authentication-scheme=pam \
98b48f20 183 --with-pam-prefix=/etc \
116b805d 184 --with-tcp-wrappers=yes \
dc82d2d7 185 --with%{!?with_selinux:out}-selinux \
186 --with-xdmcp=yes \
f2a1103b
PZ
187 --with-xinerama=yes \
188 --with-user=xdm \
189 --with-group=xdm
ac5ef200 190
7f6bd484 191%{__make}
b9713681 192
193%install
194rm -rf $RPM_BUILD_ROOT
98b48f20 195install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \
48915507 196 $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm} \
f85eb744 197 $RPM_BUILD_ROOT%{_datadir}/xsessions
f6d3e03e 198
116b805d 199%{__make} install \
200 DESTDIR=$RPM_BUILD_ROOT \
b757933d 201 PAM_PREFIX=/etc
066398c3 202
d7648bfd 203install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm
f2a1103b 204#install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin
116b805d 205install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm
98b48f20 206
495829ba 207install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
98b48f20 208
066398c3
JR
209touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm
210
aca127f2 211%find_lang %{name} --with-gnome --with-omf --all-name
b9713681 212
f85eb744 213# allow executing ~/.Xclients and ~/.xsession
214install %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/xsessions/custom.desktop
215install %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/xsessions/default.desktop
c00e1fa1 216
dc63666f
JB
217%clean
218rm -rf $RPM_BUILD_ROOT
219
f7e4906b 220%pre
b32b0eb5 221%groupadd -g 55 -r -f xdm
0fb756ff 222%useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm
f7e4906b 223
e7d75b7d 224%post
f2a1103b 225%gconf_schema_install gdm-simple-greeter.schemas
04029a9e 226%scrollkeeper_update_post
831056d7 227%update_icon_cache hicolor
e7d75b7d 228
f2a1103b
PZ
229%preun
230%gconf_schema_uninstall gdm-simple-greeter.schemas
231
98b48f20 232%postun
04029a9e 233%scrollkeeper_update_postun
831056d7 234%update_icon_cache hicolor
3b98aff6 235
f7e4906b 236if [ "$1" = "0" ]; then
5387309f 237 %userremove xdm
238 %groupremove xdm
f7e4906b 239fi
98b48f20 240
dc82d2d7 241%triggerpostun -- %{name} < 1:2.13.0.8-1
242if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then
243 mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf
244fi
245
98b48f20 246%post init
7943107a 247/sbin/chkconfig --add gdm
ff7b1bc7 248if [ -f /var/lock/subsys/gdm ]; then
0fb756ff 249 echo "Run \"/sbin/service gdm restart\" to restart gdm." >&2
250 echo "WARNING: it will terminate all sessions opened from gdm!" >&2
ff7b1bc7 251else
0fb756ff 252 echo "Run \"/sbin/service gdm start\" to start gdm." >&2
ff7b1bc7 253fi
93384147 254
98b48f20 255%preun init
dc63666f 256if [ "$1" = "0" ]; then
0fb756ff 257 %service gdm stop
dc63666f 258 /sbin/chkconfig --del gdm
7943107a 259fi
f6d3e03e 260
12f50676 261%files -f %{name}.lang
066398c3 262%defattr(644,root,root,755)
a35babae 263%doc AUTHORS ChangeLog NEWS README TODO
f2a1103b
PZ
264%attr(755,root,root) %{_libexecdir}/gdm-crash-logger
265%attr(755,root,root) %{_libexecdir}/gdm-factory-slave
266%attr(755,root,root) %{_libexecdir}/gdm-host-chooser
267%attr(755,root,root) %{_libexecdir}/gdm-product-slave
268%attr(755,root,root) %{_libexecdir}/gdm-session-worker
269%attr(755,root,root) %{_libexecdir}/gdm-simple-chooser
270%attr(755,root,root) %{_libexecdir}/gdm-simple-greeter
271%attr(755,root,root) %{_libexecdir}/gdm-simple-slave
f2a1103b 272%attr(755,root,root) %{_libexecdir}/gdm-xdmcp-chooser-slave
116b805d 273%attr(755,root,root) %{_sbindir}/*
f2a1103b 274%attr(755,root,root) %{_bindir}/*
98b48f20 275%dir %{_sysconfdir}/gdm
f2a1103b
PZ
276%dir %{_sysconfdir}/gdm/Init
277%attr(755,root,root) %config %{_sysconfdir}/gdm/Init/Default
116b805d 278%attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession
116b805d 279%attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession
518f8c4c 280%attr(755,root,root) %config %{_sysconfdir}/gdm/Xsession
f2a1103b 281%dir %{_sysconfdir}/gdm/PostLogin
518f8c4c 282%config %{_sysconfdir}/gdm/PostLogin/Default.sample
f2a1103b 283%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/custom.conf
f2a1103b 284%{_sysconfdir}/gconf/schemas/gdm-simple-greeter.schemas
f85eb744 285%config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/*
711a64ba
ER
286%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm*
287%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm
de4bad9d
JB
288%attr(1755,root,xdm) /var/cache/gdm
289%attr(1770,root,xdm) %dir /var/lib/gdm
290%attr(1750,root,xdm) %dir /var/lib/gdm/.gconf.mandatory
291%attr(1640,root,xdm) /var/lib/gdm/.gconf.mandatory/*.xml
292%attr(644,root,xdm) /var/lib/gdm/.gconf.path
293%attr(750,xdm,xdm) /var/log/gdm
294%attr(1777,root,xdm) /var/run/gdm
98b48f20 295%attr(750,xdm,xdm) /home/services/xdm
006e3362 296%{_pixmapsdir}/*
12f50676 297%{_datadir}/gdm
f2a1103b 298%{_datadir}/polkit-1/actions/gdm.policy
f85eb744 299%{_datadir}/xsessions/custom.desktop
300%{_datadir}/xsessions/default.desktop
c61959bc 301%{_iconsdir}/hicolor/*/apps/*.png
98b48f20 302
303%files init
304%defattr(644,root,root,755)
305%attr(754,root,root) /etc/rc.d/init.d/gdm
4f41bf78
MB
306
307%files user-switch-applet
308%defattr(644,root,root,755)
309%attr(755,root,root) %{_libexecdir}/gdm-user-switch-applet
310%{_libdir}/bonobo/servers/GNOME_FastUserSwitchApplet.server
311%{_datadir}/gnome-2.0/ui/GNOME_FastUserSwitchApplet.xml
This page took 0.123076 seconds and 4 git commands to generate.