]> git.pld-linux.org Git - packages/gdm.git/blame - gdm.spec
- rel 3
[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
5# - ConsoleKit support
98b48f20 6#
69927793
AG
7# Conditiional build:
8%bcond_without selinux # without selinux
9#
066398c3 10Summary: GNOME Display Manager
82455104
ER
11Summary(es.UTF-8): Administrador de Entrada del GNOME
12Summary(ja.UTF-8): GNOME ディスプレイマネージャ
13Summary(pl.UTF-8): gdm - zarządca ekranów GNOME
14Summary(pt_BR.UTF-8): Gerenciador de Entrada do GNOME
15Summary(ru.UTF-8): Дисплейный менеджер GNOME
16Summary(uk.UTF-8): Дисплейний менеджер GNOME
066398c3 17Name: gdm
50873392 18Version: 2.20.0
edbd6900 19Release: 3
ac5ef200 20Epoch: 1
f6c86ba4 21License: GPL/LGPL
42b347d0 22Group: X11/Applications
50873392 23Source0: http://ftp.gnome.org/pub/GNOME/sources/gdm/2.20/%{name}-%{version}.tar.bz2
24# Source0-md5: cf374113a1f837b0df916572625b5078
ac5ef200 25Source1: %{name}.pamd
26Source2: %{name}.init
495829ba 27Source3: %{name}-pld-logo.png
48915507 28# http://cvs.pld-linux.org/cgi-bin/cvsweb/pld-artwork/gdm/storky/
29Source4: %{name}-storky.tar.gz
30# Source4-md5: e293fbe4a60004056f6894463b874ae8
ded16a75 31Source5: %{name}-autologin.pamd
ac5ef200 32Patch0: %{name}-xdmcp.patch
495829ba 33Patch1: %{name}-conf.patch
70caaf1f 34Patch2: %{name}-xsession.patch
c4e3dbe3
MB
35Patch3: %{name}-desktop.patch
36Patch4: %{name}-defaults.patch
5e7fe890 37URL: http://www.jirka.org/gdm.html
50873392 38BuildRequires: ConsoleKit-devel
95b777c2 39BuildRequires: attr-devel
157d4449 40BuildRequires: autoconf >= 2.52
116b805d 41BuildRequires: automake
157d4449 42BuildRequires: dbus-glib-devel >= 0.73
116b805d 43BuildRequires: gettext-devel
50873392 44BuildRequires: gtk+2-devel >= 2:2.10.14
45BuildRequires: intltool >= 0.36.1
157d4449 46BuildRequires: libart_lgpl-devel >= 2.3.19
50873392 47BuildRequires: libglade2-devel >= 1:2.6.2
48BuildRequires: libgnomeui-devel >= 2.19.1
49BuildRequires: libgsf-devel >= 1.14.6
50BuildRequires: librsvg-devel >= 1:2.18.1
69927793 51%{?with_selinux:BuildRequires: libselinux-devel}
683a9219 52BuildRequires: libtool
50873392 53BuildRequires: libxml2-devel >= 1:2.6.29
98b48f20 54BuildRequires: pam-devel
e038830e 55BuildRequires: perl-modules
0fb756ff 56BuildRequires: rpmbuild(macros) >= 1.268
157d4449 57BuildRequires: scrollkeeper
dc82d2d7 58BuildRequires: xorg-lib-libXdmcp-devel
59BuildRequires: xorg-lib-libXi-devel
60BuildRequires: xorg-lib-libXinerama-devel
83594792 61BuildRequires: xorg-lib-libdmx-devel
590c69b1 62Requires(post,postun): gtk+2
831056d7 63Requires(post,postun): hicolor-icon-theme
83594792
ER
64Requires(post,postun): /usr/bin/scrollkeeper-update
65Requires(postun): /usr/sbin/groupdel
66Requires(postun): /usr/sbin/userdel
26288641
JB
67Requires(pre): /bin/id
68Requires(pre): /usr/sbin/groupadd
69Requires(pre): /usr/sbin/useradd
50873392 70Requires: libgnomeui >= 2.19.1
bba08ce8 71Requires: pam >= 0.99.7.1
6beee835 72Requires: which
2004c339 73Requires: xorg-app-sessreg
048e8543 74Provides: XDM
5387309f 75Provides: group(xdm)
76Provides: user(xdm)
98b48f20 77Conflicts: gdkxft
ac5ef200 78BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
066398c3 79
116b805d 80%define _localstatedir /var/lib
b9713681 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
48915507 145%setup -q -a4
116b805d 146%patch0 -p1
495829ba 147%patch1 -p1
70caaf1f 148%patch2 -p1
c4e3dbe3 149%patch3 -p1
ecdce48a 150%patch4 -p1
c00e1fa1 151
b9713681 152%build
c0747f8c 153%{__libtoolize}
04029a9e 154%{__glib_gettextize}
155%{__intltoolize}
98b48f20 156%{__aclocal}
46b6432e 157%{__autoconf}
158%{__automake}
116b805d 159%configure \
dc82d2d7 160 --disable-console-helper \
161 --disable-scrollkeeper \
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 \
167 --with-xinerama=yes
ac5ef200 168
7f6bd484 169%{__make}
b9713681 170
171%install
172rm -rf $RPM_BUILD_ROOT
98b48f20 173install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \
48915507 174 $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm} \
175 $RPM_BUILD_ROOT%{_datadir}/gdm/themes/storky
f6d3e03e 176
116b805d 177%{__make} install \
178 DESTDIR=$RPM_BUILD_ROOT \
b757933d 179 PAM_PREFIX=/etc
066398c3 180
dc82d2d7 181mv $RPM_BUILD_ROOT%{_datadir}/gdm/BuiltInSessions/default.desktop \
182 $RPM_BUILD_ROOT%{_datadir}/xsessions
c00e1fa1 183
d7648bfd 184install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm
ded16a75 185install %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin
116b805d 186install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm
98b48f20 187
495829ba 188install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
98b48f20 189
48915507 190install storky/*.* $RPM_BUILD_ROOT%{_datadir}/gdm/themes/storky/
191
066398c3
JR
192touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm
193
12f50676 194%find_lang %{name} --all-name --with-gnome
b9713681 195
86111f36 196# Remove useless files
197rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.{la,a}
198
c00e1fa1 199# moved to gnome-session
200rm -f $RPM_BUILD_ROOT%{_datadir}/xsessions/gnome.desktop
201
dc63666f
JB
202%clean
203rm -rf $RPM_BUILD_ROOT
204
f7e4906b 205%pre
b32b0eb5 206%groupadd -g 55 -r -f xdm
0fb756ff 207%useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm
f7e4906b 208
e7d75b7d 209%post
04029a9e 210%scrollkeeper_update_post
831056d7 211%update_icon_cache hicolor
e7d75b7d 212
98b48f20 213%postun
04029a9e 214%scrollkeeper_update_postun
831056d7 215%update_icon_cache hicolor
3b98aff6 216
f7e4906b 217if [ "$1" = "0" ]; then
5387309f 218 %userremove xdm
219 %groupremove xdm
f7e4906b 220fi
98b48f20 221
dc82d2d7 222%triggerpostun -- %{name} < 1:2.13.0.8-1
223if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then
224 mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf
225fi
226
98b48f20 227%post init
7943107a 228/sbin/chkconfig --add gdm
ff7b1bc7 229if [ -f /var/lock/subsys/gdm ]; then
0fb756ff 230 echo "Run \"/sbin/service gdm restart\" to restart gdm." >&2
231 echo "WARNING: it will terminate all sessions opened from gdm!" >&2
ff7b1bc7 232else
0fb756ff 233 echo "Run \"/sbin/service gdm start\" to start gdm." >&2
ff7b1bc7 234fi
93384147 235
98b48f20 236%preun init
dc63666f 237if [ "$1" = "0" ]; then
0fb756ff 238 %service gdm stop
dc63666f 239 /sbin/chkconfig --del gdm
7943107a 240fi
f6d3e03e 241
12f50676 242%files -f %{name}.lang
066398c3 243%defattr(644,root,root,755)
a35babae 244%doc AUTHORS ChangeLog NEWS README TODO
34660a81 245%attr(755,root,root) %{_bindir}/gdm-dmx-reconnect-proxy
246%attr(755,root,root) %{_bindir}/gdmdynamic
116b805d 247%attr(755,root,root) %{_bindir}/gdmflexiserver
116b805d 248%attr(755,root,root) %{_bindir}/gdmphotosetup
98b48f20 249%attr(755,root,root) %{_bindir}/gdmthemetester
518f8c4c 250%attr(755,root,root) %{_libdir}/gdmaskpass
251%attr(755,root,root) %{_libdir}/gdmopen
a35babae 252%attr(755,root,root) %{_libdir}/gdmtranslate
34660a81 253%attr(755,root,root) %{_libdir}/gdmchooser
254%attr(755,root,root) %{_libdir}/gdmgreeter
255%attr(755,root,root) %{_libdir}/gdmlogin
116b805d 256%attr(755,root,root) %{_sbindir}/*
98b48f20 257%dir %{_sysconfdir}/gdm
86111f36 258%dir %{_sysconfdir}/gdm/modules
116b805d 259%attr(755,root,root) %config %{_sysconfdir}/gdm/Init
260%attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession
116b805d 261%attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession
116b805d 262%attr(755,root,root) %config %{_sysconfdir}/gdm/XKeepsCrashing
518f8c4c 263%attr(755,root,root) %config %{_sysconfdir}/gdm/Xsession
518f8c4c 264%config %{_sysconfdir}/gdm/PostLogin/Default.sample
dc82d2d7 265%config %{_sysconfdir}/gdm/locale.alias
86111f36 266%config %{_sysconfdir}/gdm/modules/*
86111f36 267
dc82d2d7 268%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/
269
711a64ba
ER
270%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm*
271%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm
98b48f20 272%attr(750,xdm,xdm) /var/lib/gdm
3769cf76 273%attr(750,xdm,xdm) /var/log/gdm
98b48f20 274%attr(750,xdm,xdm) /home/services/xdm
006e3362 275%{_pixmapsdir}/*
12f50676 276%{_datadir}/gdm
317db245 277#%%{_datadir}/xsessions - moved to gnome-session
51a8ec54 278%{_datadir}/xsessions/default.desktop
c61959bc 279%{_iconsdir}/hicolor/*/apps/*.png
a35babae 280%{_omf_dest_dir}/gdm
518f8c4c 281%attr(755,root,root) %{_libdir}/gtk-2.0/modules/lib*.so
c51a45b2 282%{_mandir}/man1/gdm*
116b805d 283
284%files Xnest
285%defattr(644,root,root,755)
34660a81 286%attr(755,root,root) %{_bindir}/gdmXnest
116b805d 287%attr(755,root,root) %{_bindir}/gdmXnestchooser
98b48f20 288
289%files init
290%defattr(644,root,root,755)
291%attr(754,root,root) /etc/rc.d/init.d/gdm
This page took 0.619887 seconds and 4 git commands to generate.