]> git.pld-linux.org Git - packages/gdm.git/blame - gdm.spec
- gdm-dont-hardcode-path.patch fixes path to polkit-gnome-authentication-agent-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
f2a1103b 22Version: 2.28.0
b2882326 23Release: 7
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
b2882326 52BuildRequires: libcanberra-gtk-devel >= 0.4
50873392 53BuildRequires: libglade2-devel >= 1:2.6.2
69927793 54%{?with_selinux:BuildRequires: libselinux-devel}
683a9219 55BuildRequires: libtool
f2a1103b 56BuildRequires: libxklavier-devel >= 4.0-2
98b48f20 57BuildRequires: pam-devel
e038830e 58BuildRequires: perl-modules
f2a1103b
PZ
59BuildRequires: pkgconfig
60BuildRequires: polkit-gnome-devel >= 0.92
0df7c395 61BuildRequires: rpmbuild(find_lang) >= 1.23
aca127f2 62BuildRequires: rpmbuild(macros) >= 1.311
157d4449 63BuildRequires: scrollkeeper
dc82d2d7 64BuildRequires: xorg-lib-libXdmcp-devel
65BuildRequires: xorg-lib-libXi-devel
66BuildRequires: xorg-lib-libXinerama-devel
83594792 67BuildRequires: xorg-lib-libdmx-devel
e1fe3dc9 68BuildRequires: docbook-dtd412-xml
590c69b1 69Requires(post,postun): gtk+2
831056d7 70Requires(post,postun): hicolor-icon-theme
83594792
ER
71Requires(post,postun): /usr/bin/scrollkeeper-update
72Requires(postun): /usr/sbin/groupdel
73Requires(postun): /usr/sbin/userdel
26288641
JB
74Requires(pre): /bin/id
75Requires(pre): /usr/sbin/groupadd
76Requires(pre): /usr/sbin/useradd
f2a1103b
PZ
77Requires: /usr/bin/Xorg
78Requires: gnome-session >= 2.24.0
79Requires: gnome-settings-daemon >= 2.24.0
80Requires: libgnomeui >= 2.24.0
bba08ce8 81Requires: pam >= 0.99.7.1
f2a1103b 82Requires: polkit-gnome >= 0.92
6beee835 83Requires: which
2004c339 84Requires: xorg-app-sessreg
f2a1103b 85Requires: xorg-app-xmodmap
048e8543 86Provides: XDM
5387309f 87Provides: group(xdm)
88Provides: user(xdm)
f2a1103b 89Obsoletes: gdm-Xnest
98b48f20 90Conflicts: gdkxft
75fd7992 91# sr@Latn vs. sr@latin
92Conflicts: glibc-misc < 6:2.7
ac5ef200 93BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
066398c3 94
84e15ca6
TP
95%description
96Gdm (the GNOME Display Manager) is a highly configurable
97reimplementation of xdm, the X Display Manager. Gdm allows you to log
98into your system with the X Window System running and supports running
99several different X sessions on your local machine at the same time.
b9713681 100
25351dc6 101%description -l es.UTF-8
116b805d 102Administrador de Entrada del GNOME.
103
25351dc6
JR
104%description -l ja.UTF-8
105Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display
106Manager の再実装版です。 Gdm を使うと、 X Window System
107が動いているあなたの
108システムにいろいろなセッションを選択してログインすることができます。
24b65b9a 109
25351dc6 110このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。
24b65b9a 111
25351dc6
JR
112%description -l pl.UTF-8
113Gdm jest wysokokonfigurowalną reimplementacją xdma. Gdm pozwala
114logować się do systemu z poziomu X11 i wspiera jednoczesną pracę kilku
115różnych sesji X na lokalnej maszynie.
f6d3e03e 116
25351dc6 117%description -l pt_BR.UTF-8
116b805d 118Gerenciador de Entrada do GNOME.
119
25351dc6
JR
120%description -l ru.UTF-8
121GDM (GNOME Display Manager) - это реимплементация xdm (X Display
122Manager). GDM позволяет вам входить в систему, на которой запущено X
123Window и поддерживает работу нескольуих разных X сеансов одновременно.
24b65b9a 124
25351dc6
JR
125%description -l uk.UTF-8
126GDM (GNOME Display Manager) - це реімплементація xdm (X Display
127Manager). GDM дозволяє вам входити в систему, на якій запущено X
128Window та підтримує роботу кількох різних X сеансів одночасно.
24b65b9a 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
f2a1103b 145%setup -q
116b805d 146%patch0 -p1
3488434f 147%patch1 -p1
70caaf1f 148%patch2 -p1
ecdce48a 149%patch4 -p1
f2a1103b 150rm -f data/gdm.schemas.in
3488434f 151
b9713681 152%build
c0747f8c 153%{__libtoolize}
04029a9e 154%{__glib_gettextize}
155%{__intltoolize}
98b48f20 156%{__aclocal}
f2a1103b 157%{__autoheader}
46b6432e 158%{__autoconf}
159%{__automake}
116b805d 160%configure \
dc82d2d7 161 --disable-console-helper \
162 --disable-scrollkeeper \
69c827a2 163 --with-console-kit \
dc82d2d7 164 --enable-authentication-scheme=pam \
98b48f20 165 --with-pam-prefix=/etc \
116b805d 166 --with-tcp-wrappers=yes \
dc82d2d7 167 --with%{!?with_selinux:out}-selinux \
168 --with-xdmcp=yes \
f2a1103b
PZ
169 --with-xinerama=yes \
170 --with-user=xdm \
171 --with-group=xdm
ac5ef200 172
7f6bd484 173%{__make}
b9713681 174
175%install
176rm -rf $RPM_BUILD_ROOT
98b48f20 177install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \
48915507 178 $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm} \
f6d3e03e 179
116b805d 180%{__make} install \
181 DESTDIR=$RPM_BUILD_ROOT \
b757933d 182 PAM_PREFIX=/etc
066398c3 183
d7648bfd 184install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm
f2a1103b 185#install %{SOURCE4} $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
066398c3
JR
190touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm
191
aca127f2 192%find_lang %{name} --with-gnome --with-omf --all-name
b9713681 193
86111f36 194# Remove useless files
195rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.{la,a}
196
c00e1fa1 197# moved to gnome-session
198rm -f $RPM_BUILD_ROOT%{_datadir}/xsessions/gnome.desktop
199
dc63666f
JB
200%clean
201rm -rf $RPM_BUILD_ROOT
202
f7e4906b 203%pre
b32b0eb5 204%groupadd -g 55 -r -f xdm
0fb756ff 205%useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm
f7e4906b 206
e7d75b7d 207%post
f2a1103b 208%gconf_schema_install gdm-simple-greeter.schemas
04029a9e 209%scrollkeeper_update_post
831056d7 210%update_icon_cache hicolor
e7d75b7d 211
f2a1103b
PZ
212%preun
213%gconf_schema_uninstall gdm-simple-greeter.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
f2a1103b
PZ
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}/*
f2a1103b 258%attr(755,root,root) %{_bindir}/*
98b48f20 259%dir %{_sysconfdir}/gdm
f2a1103b
PZ
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
f2a1103b 265%dir %{_sysconfdir}/gdm/PostLogin
518f8c4c 266%config %{_sysconfdir}/gdm/PostLogin/Default.sample
f2a1103b
PZ
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%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
711a64ba
ER
271%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm*
272%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm
f2a1103b
PZ
273%attr(750,xdm,xdm) %{_localstatedir}/gdm
274%attr(750,xdm,xdm) %{_localstatedir}/log/gdm
98b48f20 275%attr(750,xdm,xdm) /home/services/xdm
006e3362 276%{_pixmapsdir}/*
12f50676 277%{_datadir}/gdm
f2a1103b
PZ
278%{_datadir}/gnome-2.0/ui/GNOME_FastUserSwitchApplet.xml
279%{_datadir}/polkit-1/actions/gdm.policy
c61959bc 280%{_iconsdir}/hicolor/*/apps/*.png
f2a1103b
PZ
281%{_libdir}/bonobo/servers/*.server
282%{_localstatedir}/lib/gdm
1743dce0 283%attr(750,xdm,xdm) %dir /var/cache/gdm
98b48f20 284
285%files init
286%defattr(644,root,root,755)
287%attr(754,root,root) /etc/rc.d/init.d/gdm
This page took 0.118745 seconds and 4 git commands to generate.