]> git.pld-linux.org Git - packages/gdm.git/blame - gdm.spec
- rel 2
[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
646824f3 23Release: 2
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/
50873392 38BuildRequires: ConsoleKit-devel
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
590c69b1 67Requires(post,postun): gtk+2
831056d7 68Requires(post,postun): hicolor-icon-theme
83594792
ER
69Requires(post,postun): /usr/bin/scrollkeeper-update
70Requires(postun): /usr/sbin/groupdel
71Requires(postun): /usr/sbin/userdel
26288641
JB
72Requires(pre): /bin/id
73Requires(pre): /usr/sbin/groupadd
74Requires(pre): /usr/sbin/useradd
f2a1103b
PZ
75Requires: /usr/bin/Xorg
76Requires: gnome-session >= 2.24.0
77Requires: gnome-settings-daemon >= 2.24.0
78Requires: libgnomeui >= 2.24.0
bba08ce8 79Requires: pam >= 0.99.7.1
f2a1103b 80Requires: polkit-gnome >= 0.92
6beee835 81Requires: which
2004c339 82Requires: xorg-app-sessreg
f2a1103b 83Requires: xorg-app-xmodmap
048e8543 84Provides: XDM
5387309f 85Provides: group(xdm)
86Provides: user(xdm)
f2a1103b 87Obsoletes: gdm-Xnest
98b48f20 88Conflicts: gdkxft
75fd7992 89# sr@Latn vs. sr@latin
90Conflicts: glibc-misc < 6:2.7
ac5ef200 91BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
066398c3 92
84e15ca6
TP
93%description
94Gdm (the GNOME Display Manager) is a highly configurable
95reimplementation of xdm, the X Display Manager. Gdm allows you to log
96into your system with the X Window System running and supports running
97several different X sessions on your local machine at the same time.
b9713681 98
25351dc6 99%description -l es.UTF-8
116b805d 100Administrador de Entrada del GNOME.
101
25351dc6
JR
102%description -l ja.UTF-8
103Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display
104Manager の再実装版です。 Gdm を使うと、 X Window System
105が動いているあなたの
106システムにいろいろなセッションを選択してログインすることができます。
24b65b9a 107
25351dc6 108このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。
24b65b9a 109
25351dc6
JR
110%description -l pl.UTF-8
111Gdm jest wysokokonfigurowalną reimplementacją xdma. Gdm pozwala
112logować się do systemu z poziomu X11 i wspiera jednoczesną pracę kilku
113różnych sesji X na lokalnej maszynie.
f6d3e03e 114
25351dc6 115%description -l pt_BR.UTF-8
116b805d 116Gerenciador de Entrada do GNOME.
117
25351dc6
JR
118%description -l ru.UTF-8
119GDM (GNOME Display Manager) - это реимплементация xdm (X Display
120Manager). GDM позволяет вам входить в систему, на которой запущено X
121Window и поддерживает работу нескольуих разных X сеансов одновременно.
24b65b9a 122
25351dc6
JR
123%description -l uk.UTF-8
124GDM (GNOME Display Manager) - це реімплементація xdm (X Display
125Manager). GDM дозволяє вам входити в систему, на якій запущено X
126Window та підтримує роботу кількох різних X сеансів одночасно.
24b65b9a 127
98b48f20 128%package init
129Summary: Init script for GDM
82455104 130Summary(pl.UTF-8): Skrypt init dla GDM-a
98b48f20 131Group: X11/Applications
83594792 132Requires(post,preun): /sbin/chkconfig
c00e1fa1 133Requires: %{name} = %{epoch}:%{version}-%{release}
dd72a121 134Requires: open
98b48f20 135
136%description init
137Init script for GDM.
138
25351dc6 139%description init -l pl.UTF-8
98b48f20 140Skrypt init dla GDM-a.
141
b9713681 142%prep
f2a1103b 143%setup -q
116b805d 144%patch0 -p1
3488434f 145%patch1 -p1
70caaf1f 146%patch2 -p1
ecdce48a 147%patch4 -p1
f2a1103b 148rm -f data/gdm.schemas.in
3488434f 149
b9713681 150%build
c0747f8c 151%{__libtoolize}
04029a9e 152%{__glib_gettextize}
153%{__intltoolize}
98b48f20 154%{__aclocal}
f2a1103b 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 \
f2a1103b
PZ
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
f2a1103b 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
f2a1103b 206%gconf_schema_install gdm-simple-greeter.schemas
04029a9e 207%scrollkeeper_update_post
831056d7 208%update_icon_cache hicolor
e7d75b7d 209
f2a1103b
PZ
210%preun
211%gconf_schema_uninstall gdm-simple-greeter.schemas
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
f2a1103b
PZ
245%attr(755,root,root) %{_libexecdir}/gdm-crash-logger
246%attr(755,root,root) %{_libexecdir}/gdm-factory-slave
247%attr(755,root,root) %{_libexecdir}/gdm-host-chooser
248%attr(755,root,root) %{_libexecdir}/gdm-product-slave
249%attr(755,root,root) %{_libexecdir}/gdm-session-worker
250%attr(755,root,root) %{_libexecdir}/gdm-simple-chooser
251%attr(755,root,root) %{_libexecdir}/gdm-simple-greeter
252%attr(755,root,root) %{_libexecdir}/gdm-simple-slave
253%attr(755,root,root) %{_libexecdir}/gdm-user-switch-applet
254%attr(755,root,root) %{_libexecdir}/gdm-xdmcp-chooser-slave
116b805d 255%attr(755,root,root) %{_sbindir}/*
f2a1103b 256%attr(755,root,root) %{_bindir}/*
98b48f20 257%dir %{_sysconfdir}/gdm
f2a1103b
PZ
258%dir %{_sysconfdir}/gdm/Init
259%attr(755,root,root) %config %{_sysconfdir}/gdm/Init/Default
116b805d 260%attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession
116b805d 261%attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession
518f8c4c 262%attr(755,root,root) %config %{_sysconfdir}/gdm/Xsession
f2a1103b 263%dir %{_sysconfdir}/gdm/PostLogin
518f8c4c 264%config %{_sysconfdir}/gdm/PostLogin/Default.sample
f2a1103b
PZ
265%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/custom.conf
266%{_sysconfdir}/gdm/gdm.schemas
267%{_sysconfdir}/gconf/schemas/gdm-simple-greeter.schemas
268%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
711a64ba
ER
269%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm*
270%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm
f2a1103b
PZ
271%attr(750,xdm,xdm) %{_localstatedir}/gdm
272%attr(750,xdm,xdm) %{_localstatedir}/log/gdm
98b48f20 273%attr(750,xdm,xdm) /home/services/xdm
006e3362 274%{_pixmapsdir}/*
12f50676 275%{_datadir}/gdm
f2a1103b
PZ
276%{_datadir}/gnome-2.0/ui/GNOME_FastUserSwitchApplet.xml
277%{_datadir}/polkit-1/actions/gdm.policy
c61959bc 278%{_iconsdir}/hicolor/*/apps/*.png
f2a1103b
PZ
279%{_libdir}/bonobo/servers/*.server
280%{_localstatedir}/lib/gdm
98b48f20 281
282%files init
283%defattr(644,root,root,755)
284%attr(754,root,root) /etc/rc.d/init.d/gdm
This page took 0.084502 seconds and 4 git commands to generate.