]> git.pld-linux.org Git - packages/gdm.git/blame - gdm.spec
- rebuild with proper init script
[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
a2a3bef8 17Version: 2.24.0
0e9f577d 18Release: 2
ac5ef200 19Epoch: 1
f6c86ba4 20License: GPL/LGPL
42b347d0 21Group: X11/Applications
a2a3bef8 22Source0: http://ftp.gnome.org/pub/GNOME/sources/gdm/2.24/%{name}-%{version}.tar.bz2
23# Source0-md5: c38e3debe8a02ad385f1c7077d21de9e
ac5ef200 24Source1: %{name}.pamd
25Source2: %{name}.init
495829ba 26Source3: %{name}-pld-logo.png
a2a3bef8 27#Source4: %{name}-autologin.pamd
ac5ef200 28Patch0: %{name}-xdmcp.patch
70caaf1f 29Patch2: %{name}-xsession.patch
c4e3dbe3 30Patch4: %{name}-defaults.patch
aca127f2 31URL: http://www.gnome.org/projects/gdm/
50873392 32BuildRequires: ConsoleKit-devel
95b777c2 33BuildRequires: attr-devel
157d4449 34BuildRequires: autoconf >= 2.52
116b805d 35BuildRequires: automake
157d4449 36BuildRequires: dbus-glib-devel >= 0.73
116b805d 37BuildRequires: gettext-devel
a2a3bef8 38BuildRequires: glib2-devel >= 1:2.15.0
aca127f2 39BuildRequires: gtk+2-devel >= 2:2.12.0
50873392 40BuildRequires: intltool >= 0.36.1
157d4449 41BuildRequires: libart_lgpl-devel >= 2.3.19
50873392 42BuildRequires: libglade2-devel >= 1:2.6.2
aca127f2 43BuildRequires: libgnomeui-devel >= 2.20.0
50873392 44BuildRequires: libgsf-devel >= 1.14.6
45BuildRequires: librsvg-devel >= 1:2.18.1
69927793 46%{?with_selinux:BuildRequires: libselinux-devel}
683a9219 47BuildRequires: libtool
50873392 48BuildRequires: libxml2-devel >= 1:2.6.29
98b48f20 49BuildRequires: pam-devel
e038830e 50BuildRequires: perl-modules
0df7c395 51BuildRequires: rpmbuild(find_lang) >= 1.23
aca127f2 52BuildRequires: rpmbuild(macros) >= 1.311
157d4449 53BuildRequires: scrollkeeper
98459d62 54BuildRequires: sed >= 4.0
dc82d2d7 55BuildRequires: xorg-lib-libXdmcp-devel
56BuildRequires: xorg-lib-libXi-devel
57BuildRequires: xorg-lib-libXinerama-devel
83594792 58BuildRequires: xorg-lib-libdmx-devel
590c69b1 59Requires(post,postun): gtk+2
831056d7 60Requires(post,postun): hicolor-icon-theme
83594792
ER
61Requires(post,postun): /usr/bin/scrollkeeper-update
62Requires(postun): /usr/sbin/groupdel
63Requires(postun): /usr/sbin/userdel
26288641
JB
64Requires(pre): /bin/id
65Requires(pre): /usr/sbin/groupadd
66Requires(pre): /usr/sbin/useradd
a2a3bef8 67Requires: gnome-session >= 2.23.90
68Requires: gnome-settings-daemon >= 2.23.90
aca127f2 69Requires: libgnomeui >= 2.20.0
bba08ce8 70Requires: pam >= 0.99.7.1
6beee835 71Requires: which
3a21226f 72Requires: xorg-app-xmodmap
2004c339 73Requires: xorg-app-sessreg
048e8543 74Provides: XDM
5387309f 75Provides: group(xdm)
76Provides: user(xdm)
98b48f20 77Conflicts: gdkxft
75fd7992 78# sr@Latn vs. sr@latin
79Conflicts: glibc-misc < 6:2.7
ac5ef200 80BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
066398c3 81
84e15ca6
TP
82%description
83Gdm (the GNOME Display Manager) is a highly configurable
84reimplementation of xdm, the X Display Manager. Gdm allows you to log
85into your system with the X Window System running and supports running
86several different X sessions on your local machine at the same time.
b9713681 87
25351dc6 88%description -l es.UTF-8
116b805d 89Administrador de Entrada del GNOME.
90
25351dc6
JR
91%description -l ja.UTF-8
92Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display
93Manager の再実装版です。 Gdm を使うと、 X Window System
94が動いているあなたの
95システムにいろいろなセッションを選択してログインすることができます。
24b65b9a 96
25351dc6 97このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。
24b65b9a 98
25351dc6
JR
99%description -l pl.UTF-8
100Gdm jest wysokokonfigurowalną reimplementacją xdma. Gdm pozwala
101logować się do systemu z poziomu X11 i wspiera jednoczesną pracę kilku
102różnych sesji X na lokalnej maszynie.
f6d3e03e 103
25351dc6 104%description -l pt_BR.UTF-8
116b805d 105Gerenciador de Entrada do GNOME.
106
25351dc6
JR
107%description -l ru.UTF-8
108GDM (GNOME Display Manager) - это реимплементация xdm (X Display
109Manager). GDM позволяет вам входить в систему, на которой запущено X
110Window и поддерживает работу нескольуих разных X сеансов одновременно.
24b65b9a 111
25351dc6
JR
112%description -l uk.UTF-8
113GDM (GNOME Display Manager) - це реімплементація xdm (X Display
114Manager). GDM дозволяє вам входити в систему, на якій запущено X
115Window та підтримує роботу кількох різних X сеансів одночасно.
24b65b9a 116
116b805d 117%package Xnest
118Summary: Xnest (ie embedded X) server for GDM
82455104 119Summary(pl.UTF-8): Serwer Xnest dla GDM
116b805d 120Group: X11/Applications
c00e1fa1 121Requires: %{name} = %{epoch}:%{version}-%{release}
dc82d2d7 122Requires: xorg-xserver-Xnest
116b805d 123
124%description Xnest
116b805d 125This package add support for Xnest server in gdm.
126
25351dc6 127%description Xnest -l pl.UTF-8
84e15ca6
TP
128Ten pakiet dodaje do gdm wsparcie dla Xnest.
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
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
174rm -rf $RPM_BUILD_ROOT
98b48f20 175install -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 182install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm
a2a3bef8 183#install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin
116b805d 184install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm
98b48f20 185
495829ba 186install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
98b48f20 187
066398c3
JR
188touch $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
193rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.{la,a}
194
c00e1fa1 195# moved to gnome-session
196rm -f $RPM_BUILD_ROOT%{_datadir}/xsessions/gnome.desktop
197
dc63666f
JB
198%clean
199rm -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 219if [ "$1" = "0" ]; then
5387309f 220 %userremove xdm
221 %groupremove xdm
f7e4906b 222fi
98b48f20 223
dc82d2d7 224%triggerpostun -- %{name} < 1:2.13.0.8-1
225if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then
226 mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf
227fi
228
98b48f20 229%post init
7943107a 230/sbin/chkconfig --add gdm
ff7b1bc7 231if [ -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 234else
0fb756ff 235 echo "Run \"/sbin/service gdm start\" to start gdm." >&2
ff7b1bc7 236fi
93384147 237
98b48f20 238%preun init
dc63666f 239if [ "$1" = "0" ]; then
0fb756ff 240 %service gdm stop
dc63666f 241 /sbin/chkconfig --del gdm
7943107a 242fi
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
This page took 0.107957 seconds and 4 git commands to generate.