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