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