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