]> git.pld-linux.org Git - packages/gdm.git/blame - gdm.spec
- updated to 2.28.1
[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
e848bfca
MB
22Version: 2.28.1
23Release: 1
3488434f 24Epoch: 2
f6c86ba4 25License: GPL/LGPL
42b347d0 26Group: X11/Applications
f2a1103b 27Source0: http://ftp.gnome.org/pub/GNOME/sources/gdm/2.28/%{name}-%{version}.tar.bz2
e848bfca 28# Source0-md5: 917dc80f5ef6adcdc15193de238476db
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
4f41bf78
MB
37# http://bugzilla.gnome.org/show_bug.cgi?id=597050
38Patch5: %{name}-dont-hardcode-path.patch
aca127f2 39URL: http://www.gnome.org/projects/gdm/
24b6b990 40BuildRequires: ConsoleKit-devel >= 0.4.1
f2a1103b 41BuildRequires: GConf2-devel >= 2.24.0
95b777c2 42BuildRequires: attr-devel
f2a1103b
PZ
43BuildRequires: audit-libs-devel
44BuildRequires: autoconf >= 2.60
45BuildRequires: automake >= 1:1.9
46BuildRequires: check >= 0.9.4
47BuildRequires: dbus-glib-devel >= 0.74
4f41bf78 48BuildRequires: docbook-dtd412-xml
116b805d 49BuildRequires: gettext-devel
f2a1103b 50BuildRequires: glib2-devel >= 1:2.16.0
dfa453a4 51BuildRequires: gnome-doc-utils
f2a1103b
PZ
52BuildRequires: gnome-panel-devel >= 2.24.0
53BuildRequires: gtk+2-devel >= 2:2.14.0
54BuildRequires: intltool >= 0.40.0
4f41bf78 55BuildRequires: iso-codes
b2882326 56BuildRequires: libcanberra-gtk-devel >= 0.4
50873392 57BuildRequires: libglade2-devel >= 1:2.6.2
69927793 58%{?with_selinux:BuildRequires: libselinux-devel}
683a9219 59BuildRequires: libtool
f2a1103b 60BuildRequires: libxklavier-devel >= 4.0-2
98b48f20 61BuildRequires: pam-devel
e038830e 62BuildRequires: perl-modules
f2a1103b 63BuildRequires: pkgconfig
0df7c395 64BuildRequires: rpmbuild(find_lang) >= 1.23
aca127f2 65BuildRequires: rpmbuild(macros) >= 1.311
157d4449 66BuildRequires: scrollkeeper
dc82d2d7 67BuildRequires: xorg-lib-libXdmcp-devel
68BuildRequires: xorg-lib-libXi-devel
69BuildRequires: xorg-lib-libXinerama-devel
83594792 70BuildRequires: xorg-lib-libdmx-devel
4f41bf78 71Requires(post,preun): GConf2
590c69b1 72Requires(post,postun): gtk+2
831056d7 73Requires(post,postun): hicolor-icon-theme
83594792
ER
74Requires(post,postun): /usr/bin/scrollkeeper-update
75Requires(postun): /usr/sbin/groupdel
76Requires(postun): /usr/sbin/userdel
26288641
JB
77Requires(pre): /bin/id
78Requires(pre): /usr/sbin/groupadd
79Requires(pre): /usr/sbin/useradd
f2a1103b
PZ
80Requires: /usr/bin/Xorg
81Requires: gnome-session >= 2.24.0
82Requires: gnome-settings-daemon >= 2.24.0
bba08ce8 83Requires: pam >= 0.99.7.1
f2a1103b 84Requires: polkit-gnome >= 0.92
6beee835 85Requires: which
2004c339 86Requires: xorg-app-sessreg
f2a1103b 87Requires: xorg-app-xmodmap
048e8543 88Provides: XDM
5387309f 89Provides: group(xdm)
90Provides: user(xdm)
f2a1103b 91Obsoletes: gdm-Xnest
98b48f20 92Conflicts: gdkxft
75fd7992 93# sr@Latn vs. sr@latin
94Conflicts: glibc-misc < 6:2.7
ac5ef200 95BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
066398c3 96
84e15ca6
TP
97%description
98Gdm (the GNOME Display Manager) is a highly configurable
99reimplementation of xdm, the X Display Manager. Gdm allows you to log
100into your system with the X Window System running and supports running
101several different X sessions on your local machine at the same time.
b9713681 102
25351dc6 103%description -l es.UTF-8
116b805d 104Administrador de Entrada del GNOME.
105
25351dc6
JR
106%description -l ja.UTF-8
107Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display
108Manager の再実装版です。 Gdm を使うと、 X Window System
109が動いているあなたの
110システムにいろいろなセッションを選択してログインすることができます。
24b65b9a 111
25351dc6 112このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。
24b65b9a 113
25351dc6
JR
114%description -l pl.UTF-8
115Gdm jest wysokokonfigurowalną reimplementacją xdma. Gdm pozwala
116logować się do systemu z poziomu X11 i wspiera jednoczesną pracę kilku
117różnych sesji X na lokalnej maszynie.
f6d3e03e 118
25351dc6 119%description -l pt_BR.UTF-8
116b805d 120Gerenciador de Entrada do GNOME.
121
25351dc6
JR
122%description -l ru.UTF-8
123GDM (GNOME Display Manager) - это реимплементация xdm (X Display
124Manager). GDM позволяет вам входить в систему, на которой запущено X
125Window и поддерживает работу нескольуих разных X сеансов одновременно.
24b65b9a 126
25351dc6
JR
127%description -l uk.UTF-8
128GDM (GNOME Display Manager) - це реімплементація xdm (X Display
129Manager). GDM дозволяє вам входити в систему, на якій запущено X
130Window та підтримує роботу кількох різних X сеансів одночасно.
24b65b9a 131
98b48f20 132%package init
133Summary: Init script for GDM
82455104 134Summary(pl.UTF-8): Skrypt init dla GDM-a
98b48f20 135Group: X11/Applications
83594792 136Requires(post,preun): /sbin/chkconfig
c00e1fa1 137Requires: %{name} = %{epoch}:%{version}-%{release}
dd72a121 138Requires: open
98b48f20 139
140%description init
141Init script for GDM.
142
25351dc6 143%description init -l pl.UTF-8
98b48f20 144Skrypt init dla GDM-a.
145
4f41bf78
MB
146%package user-switch-applet
147Summary: GNOME applet for fast user switching
148Summary(pl.UTF-8): Aplet GNOME do szybkiego przełączania użytkowników
149Group: X11/Applications
150Requires: gdm >= 2:2.22.0
151Provides: gnome-applet-fast-user-switch = %{epoch}:%{version}-%{release}
152Obsoletes: gnome-applet-fast-user-switch
153
154%description user-switch-applet
155The GDM User Switch Applet is an applet for the GNOME panel which
156provides a mechanism for switching between users.
157
158%description user-switch-applet -l pl.UTF-8
159GDM User Switch Applet to aplet panelu GNOME udostępniający mechanizm
160do przełączania między użytkownikami.
161
b9713681 162%prep
f2a1103b 163%setup -q
116b805d 164%patch0 -p1
3488434f 165%patch1 -p1
70caaf1f 166%patch2 -p1
ecdce48a 167%patch4 -p1
4f41bf78 168%patch5 -p1
f2a1103b 169rm -f data/gdm.schemas.in
3488434f 170
b9713681 171%build
c0747f8c 172%{__libtoolize}
04029a9e 173%{__glib_gettextize}
174%{__intltoolize}
98b48f20 175%{__aclocal}
f2a1103b 176%{__autoheader}
46b6432e 177%{__autoconf}
178%{__automake}
116b805d 179%configure \
dc82d2d7 180 --disable-console-helper \
181 --disable-scrollkeeper \
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} \
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
86111f36 213# Remove useless files
214rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.{la,a}
215
c00e1fa1 216# moved to gnome-session
217rm -f $RPM_BUILD_ROOT%{_datadir}/xsessions/gnome.desktop
218
dc63666f
JB
219%clean
220rm -rf $RPM_BUILD_ROOT
221
f7e4906b 222%pre
b32b0eb5 223%groupadd -g 55 -r -f xdm
0fb756ff 224%useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm
f7e4906b 225
e7d75b7d 226%post
f2a1103b 227%gconf_schema_install gdm-simple-greeter.schemas
04029a9e 228%scrollkeeper_update_post
831056d7 229%update_icon_cache hicolor
e7d75b7d 230
f2a1103b
PZ
231%preun
232%gconf_schema_uninstall gdm-simple-greeter.schemas
233
98b48f20 234%postun
04029a9e 235%scrollkeeper_update_postun
831056d7 236%update_icon_cache hicolor
3b98aff6 237
f7e4906b 238if [ "$1" = "0" ]; then
5387309f 239 %userremove xdm
240 %groupremove xdm
f7e4906b 241fi
98b48f20 242
dc82d2d7 243%triggerpostun -- %{name} < 1:2.13.0.8-1
244if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then
245 mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf
246fi
247
98b48f20 248%post init
7943107a 249/sbin/chkconfig --add gdm
ff7b1bc7 250if [ -f /var/lock/subsys/gdm ]; then
0fb756ff 251 echo "Run \"/sbin/service gdm restart\" to restart gdm." >&2
252 echo "WARNING: it will terminate all sessions opened from gdm!" >&2
ff7b1bc7 253else
0fb756ff 254 echo "Run \"/sbin/service gdm start\" to start gdm." >&2
ff7b1bc7 255fi
93384147 256
98b48f20 257%preun init
dc63666f 258if [ "$1" = "0" ]; then
0fb756ff 259 %service gdm stop
dc63666f 260 /sbin/chkconfig --del gdm
7943107a 261fi
f6d3e03e 262
12f50676 263%files -f %{name}.lang
066398c3 264%defattr(644,root,root,755)
a35babae 265%doc AUTHORS ChangeLog NEWS README TODO
f2a1103b
PZ
266%attr(755,root,root) %{_libexecdir}/gdm-crash-logger
267%attr(755,root,root) %{_libexecdir}/gdm-factory-slave
268%attr(755,root,root) %{_libexecdir}/gdm-host-chooser
269%attr(755,root,root) %{_libexecdir}/gdm-product-slave
270%attr(755,root,root) %{_libexecdir}/gdm-session-worker
271%attr(755,root,root) %{_libexecdir}/gdm-simple-chooser
272%attr(755,root,root) %{_libexecdir}/gdm-simple-greeter
273%attr(755,root,root) %{_libexecdir}/gdm-simple-slave
f2a1103b 274%attr(755,root,root) %{_libexecdir}/gdm-xdmcp-chooser-slave
116b805d 275%attr(755,root,root) %{_sbindir}/*
f2a1103b 276%attr(755,root,root) %{_bindir}/*
98b48f20 277%dir %{_sysconfdir}/gdm
f2a1103b
PZ
278%dir %{_sysconfdir}/gdm/Init
279%attr(755,root,root) %config %{_sysconfdir}/gdm/Init/Default
116b805d 280%attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession
116b805d 281%attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession
518f8c4c 282%attr(755,root,root) %config %{_sysconfdir}/gdm/Xsession
f2a1103b 283%dir %{_sysconfdir}/gdm/PostLogin
518f8c4c 284%config %{_sysconfdir}/gdm/PostLogin/Default.sample
f2a1103b
PZ
285%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/custom.conf
286%{_sysconfdir}/gdm/gdm.schemas
287%{_sysconfdir}/gconf/schemas/gdm-simple-greeter.schemas
288%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
711a64ba
ER
289%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm*
290%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm
4f41bf78
MB
291%attr(1770,root,xdm) %{_localstatedir}/gdm
292%attr(1755,root,xdm) %{_localstatedir}/cache/gdm
293%attr(1770,root,xdm) %dir %{_localstatedir}/lib/gdm
294%attr(1750,root,xdm) %dir %{_localstatedir}/lib/gdm/.gconf.mandatory
295%attr(1640,root,xdm) %{_localstatedir}/lib/gdm/.gconf.mandatory/*.xml
296%attr(644,root,xdm) %{_localstatedir}/lib/gdm/.gconf.path
f2a1103b 297%attr(750,xdm,xdm) %{_localstatedir}/log/gdm
4f41bf78 298%attr(1777,root,xdm) %{_localstatedir}/run/gdm
98b48f20 299%attr(750,xdm,xdm) /home/services/xdm
006e3362 300%{_pixmapsdir}/*
12f50676 301%{_datadir}/gdm
f2a1103b 302%{_datadir}/polkit-1/actions/gdm.policy
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.09786 seconds and 4 git commands to generate.