]> git.pld-linux.org Git - packages/gdm2.20.git/blame - gdm.spec
- fixed %dir
[packages/gdm2.20.git] / gdm.spec
CommitLineData
dbdd08ff 1#
7b20fabd
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#
dc990d82 7# TODO:
7ab79c4a
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
dc990d82 10#
4210ca61
AG
11# Conditiional build:
12%bcond_without selinux # without selinux
13#
6a92f230 14Summary: GNOME Display Manager
2a014025
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
6a92f230 21Name: gdm
7b20fabd 22Version: 2.28.0
3e1600cd 23Release: 6
ab8e93b2 24Epoch: 2
bf715a6f 25License: GPL/LGPL
a189375e 26Group: X11/Applications
7b20fabd
PZ
27Source0: http://ftp.gnome.org/pub/GNOME/sources/gdm/2.28/%{name}-%{version}.tar.bz2
28# Source0-md5: 7724929a6b75ba269fd519d4a4995bbb
1e57584d 29Source1: %{name}.pamd
30Source2: %{name}.init
b243135f 31Source3: %{name}-pld-logo.png
7b20fabd 32#Source4: %{name}-autologin.pamd
1e57584d 33Patch0: %{name}-xdmcp.patch
7b20fabd 34Patch1: %{name}-polkit.patch
7e11b9ef 35Patch2: %{name}-xsession.patch
977657ef 36Patch4: %{name}-defaults.patch
f3b794c1 37URL: http://www.gnome.org/projects/gdm/
ce8509c7 38BuildRequires: ConsoleKit-devel >= 0.4.1
7b20fabd 39BuildRequires: GConf2-devel >= 2.24.0
45cf0bda 40BuildRequires: attr-devel
7b20fabd
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
557c7bf4 46BuildRequires: gettext-devel
7b20fabd 47BuildRequires: glib2-devel >= 1:2.16.0
35c8a1b7 48BuildRequires: gnome-doc-utils
7b20fabd
PZ
49BuildRequires: gnome-panel-devel >= 2.24.0
50BuildRequires: gtk+2-devel >= 2:2.14.0
51BuildRequires: intltool >= 0.40.0
a65aaafb 52BuildRequires: libglade2-devel >= 1:2.6.2
4210ca61 53%{?with_selinux:BuildRequires: libselinux-devel}
3b2c2ccf 54BuildRequires: libtool
7b20fabd 55BuildRequires: libxklavier-devel >= 4.0-2
dc990d82 56BuildRequires: pam-devel
4c60841b 57BuildRequires: perl-modules
7b20fabd
PZ
58BuildRequires: pkgconfig
59BuildRequires: polkit-gnome-devel >= 0.92
0b34c046 60BuildRequires: rpmbuild(find_lang) >= 1.23
f3b794c1 61BuildRequires: rpmbuild(macros) >= 1.311
7ab79c4a 62BuildRequires: scrollkeeper
c7d57a18 63BuildRequires: xorg-lib-libXdmcp-devel
64BuildRequires: xorg-lib-libXi-devel
65BuildRequires: xorg-lib-libXinerama-devel
c21d8af4 66BuildRequires: xorg-lib-libdmx-devel
8cc9f8e8 67BuildRequires: docbook-dtd412-xml
f0c225c3 68Requires(post,postun): gtk+2
a54cc062 69Requires(post,postun): hicolor-icon-theme
c21d8af4
ER
70Requires(post,postun): /usr/bin/scrollkeeper-update
71Requires(postun): /usr/sbin/groupdel
72Requires(postun): /usr/sbin/userdel
d812e0fb
JB
73Requires(pre): /bin/id
74Requires(pre): /usr/sbin/groupadd
75Requires(pre): /usr/sbin/useradd
7b20fabd
PZ
76Requires: /usr/bin/Xorg
77Requires: gnome-session >= 2.24.0
78Requires: gnome-settings-daemon >= 2.24.0
79Requires: libgnomeui >= 2.24.0
092e06e5 80Requires: pam >= 0.99.7.1
7b20fabd 81Requires: polkit-gnome >= 0.92
84f5c4bf 82Requires: which
98110903 83Requires: xorg-app-sessreg
7b20fabd 84Requires: xorg-app-xmodmap
7341e692 85Provides: XDM
50e794ab 86Provides: group(xdm)
87Provides: user(xdm)
7b20fabd 88Obsoletes: gdm-Xnest
dc990d82 89Conflicts: gdkxft
fb77ead8 90# sr@Latn vs. sr@latin
91Conflicts: glibc-misc < 6:2.7
1e57584d 92BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
6a92f230 93
63a3aacd
TP
94%description
95Gdm (the GNOME Display Manager) is a highly configurable
96reimplementation of xdm, the X Display Manager. Gdm allows you to log
97into your system with the X Window System running and supports running
98several different X sessions on your local machine at the same time.
264bf23f 99
3024dcd3 100%description -l es.UTF-8
557c7bf4 101Administrador de Entrada del GNOME.
102
3024dcd3
JR
103%description -l ja.UTF-8
104Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display
105Manager の再実装版です。 Gdm を使うと、 X Window System
106が動いているあなたの
107システムにいろいろなセッションを選択してログインすることができます。
daf0d1df 108
3024dcd3 109このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。
daf0d1df 110
3024dcd3
JR
111%description -l pl.UTF-8
112Gdm jest wysokokonfigurowalną reimplementacją xdma. Gdm pozwala
113logować się do systemu z poziomu X11 i wspiera jednoczesną pracę kilku
114różnych sesji X na lokalnej maszynie.
e2ef7640 115
3024dcd3 116%description -l pt_BR.UTF-8
557c7bf4 117Gerenciador de Entrada do GNOME.
118
3024dcd3
JR
119%description -l ru.UTF-8
120GDM (GNOME Display Manager) - это реимплементация xdm (X Display
121Manager). GDM позволяет вам входить в систему, на которой запущено X
122Window и поддерживает работу нескольуих разных X сеансов одновременно.
daf0d1df 123
3024dcd3
JR
124%description -l uk.UTF-8
125GDM (GNOME Display Manager) - це реімплементація xdm (X Display
126Manager). GDM дозволяє вам входити в систему, на якій запущено X
127Window та підтримує роботу кількох різних X сеансів одночасно.
daf0d1df 128
dc990d82 129%package init
130Summary: Init script for GDM
2a014025 131Summary(pl.UTF-8): Skrypt init dla GDM-a
dc990d82 132Group: X11/Applications
c21d8af4 133Requires(post,preun): /sbin/chkconfig
c5f3b061 134Requires: %{name} = %{epoch}:%{version}-%{release}
fa45eb38 135Requires: open
dc990d82 136
137%description init
138Init script for GDM.
139
3024dcd3 140%description init -l pl.UTF-8
dc990d82 141Skrypt init dla GDM-a.
142
264bf23f 143%prep
7b20fabd 144%setup -q
557c7bf4 145%patch0 -p1
ab8e93b2 146%patch1 -p1
7e11b9ef 147%patch2 -p1
59f24121 148%patch4 -p1
7b20fabd 149rm -f data/gdm.schemas.in
ab8e93b2 150
264bf23f 151%build
4a861350 152%{__libtoolize}
69c86ad4 153%{__glib_gettextize}
154%{__intltoolize}
dc990d82 155%{__aclocal}
7b20fabd 156%{__autoheader}
8a570202 157%{__autoconf}
158%{__automake}
557c7bf4 159%configure \
c7d57a18 160 --disable-console-helper \
161 --disable-scrollkeeper \
eff20e81 162 --with-console-kit \
c7d57a18 163 --enable-authentication-scheme=pam \
dc990d82 164 --with-pam-prefix=/etc \
557c7bf4 165 --with-tcp-wrappers=yes \
c7d57a18 166 --with%{!?with_selinux:out}-selinux \
167 --with-xdmcp=yes \
7b20fabd
PZ
168 --with-xinerama=yes \
169 --with-user=xdm \
170 --with-group=xdm
1e57584d 171
39948e93 172%{__make}
264bf23f 173
174%install
175rm -rf $RPM_BUILD_ROOT
dc990d82 176install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \
f2682e26 177 $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm} \
e2ef7640 178
557c7bf4 179%{__make} install \
180 DESTDIR=$RPM_BUILD_ROOT \
dbf1d434 181 PAM_PREFIX=/etc
6a92f230 182
ab564b73 183install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm
7b20fabd 184#install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin
557c7bf4 185install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm
dc990d82 186
b243135f 187install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
dc990d82 188
6a92f230
JR
189touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm
190
f3b794c1 191%find_lang %{name} --with-gnome --with-omf --all-name
264bf23f 192
bff5ddba 193# Remove useless files
194rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.{la,a}
195
c5f3b061 196# moved to gnome-session
197rm -f $RPM_BUILD_ROOT%{_datadir}/xsessions/gnome.desktop
198
f51bc435
JB
199%clean
200rm -rf $RPM_BUILD_ROOT
201
b55b9ca7 202%pre
d961ec46 203%groupadd -g 55 -r -f xdm
dbdd08ff 204%useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm
b55b9ca7 205
23405411 206%post
7b20fabd 207%gconf_schema_install gdm-simple-greeter.schemas
69c86ad4 208%scrollkeeper_update_post
a54cc062 209%update_icon_cache hicolor
23405411 210
7b20fabd
PZ
211%preun
212%gconf_schema_uninstall gdm-simple-greeter.schemas
213
dc990d82 214%postun
69c86ad4 215%scrollkeeper_update_postun
a54cc062 216%update_icon_cache hicolor
cd9e97f7 217
b55b9ca7 218if [ "$1" = "0" ]; then
50e794ab 219 %userremove xdm
220 %groupremove xdm
b55b9ca7 221fi
dc990d82 222
c7d57a18 223%triggerpostun -- %{name} < 1:2.13.0.8-1
224if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then
225 mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf
226fi
227
dc990d82 228%post init
a88fede8 229/sbin/chkconfig --add gdm
18676cb6 230if [ -f /var/lock/subsys/gdm ]; then
dbdd08ff 231 echo "Run \"/sbin/service gdm restart\" to restart gdm." >&2
232 echo "WARNING: it will terminate all sessions opened from gdm!" >&2
18676cb6 233else
dbdd08ff 234 echo "Run \"/sbin/service gdm start\" to start gdm." >&2
18676cb6 235fi
8a1f07f6 236
dc990d82 237%preun init
f51bc435 238if [ "$1" = "0" ]; then
dbdd08ff 239 %service gdm stop
f51bc435 240 /sbin/chkconfig --del gdm
a88fede8 241fi
e2ef7640 242
b6c954a8 243%files -f %{name}.lang
6a92f230 244%defattr(644,root,root,755)
2252f92d 245%doc AUTHORS ChangeLog NEWS README TODO
7b20fabd
PZ
246%attr(755,root,root) %{_libexecdir}/gdm-crash-logger
247%attr(755,root,root) %{_libexecdir}/gdm-factory-slave
248%attr(755,root,root) %{_libexecdir}/gdm-host-chooser
249%attr(755,root,root) %{_libexecdir}/gdm-product-slave
250%attr(755,root,root) %{_libexecdir}/gdm-session-worker
251%attr(755,root,root) %{_libexecdir}/gdm-simple-chooser
252%attr(755,root,root) %{_libexecdir}/gdm-simple-greeter
253%attr(755,root,root) %{_libexecdir}/gdm-simple-slave
254%attr(755,root,root) %{_libexecdir}/gdm-user-switch-applet
255%attr(755,root,root) %{_libexecdir}/gdm-xdmcp-chooser-slave
557c7bf4 256%attr(755,root,root) %{_sbindir}/*
7b20fabd 257%attr(755,root,root) %{_bindir}/*
dc990d82 258%dir %{_sysconfdir}/gdm
7b20fabd
PZ
259%dir %{_sysconfdir}/gdm/Init
260%attr(755,root,root) %config %{_sysconfdir}/gdm/Init/Default
557c7bf4 261%attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession
557c7bf4 262%attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession
caf999b7 263%attr(755,root,root) %config %{_sysconfdir}/gdm/Xsession
7b20fabd 264%dir %{_sysconfdir}/gdm/PostLogin
caf999b7 265%config %{_sysconfdir}/gdm/PostLogin/Default.sample
7b20fabd
PZ
266%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/custom.conf
267%{_sysconfdir}/gdm/gdm.schemas
268%{_sysconfdir}/gconf/schemas/gdm-simple-greeter.schemas
269%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
044dbf2f
ER
270%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm*
271%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm
7b20fabd
PZ
272%attr(750,xdm,xdm) %{_localstatedir}/gdm
273%attr(750,xdm,xdm) %{_localstatedir}/log/gdm
dc990d82 274%attr(750,xdm,xdm) /home/services/xdm
084cd121 275%{_pixmapsdir}/*
b6c954a8 276%{_datadir}/gdm
7b20fabd
PZ
277%{_datadir}/gnome-2.0/ui/GNOME_FastUserSwitchApplet.xml
278%{_datadir}/polkit-1/actions/gdm.policy
44a341f3 279%{_iconsdir}/hicolor/*/apps/*.png
7b20fabd
PZ
280%{_libdir}/bonobo/servers/*.server
281%{_localstatedir}/lib/gdm
3e1600cd 282%attr(750,xdm,xdm) %dir /var/cache/gdm
dc990d82 283
284%files init
285%defattr(644,root,root,755)
286%attr(754,root,root) /etc/rc.d/init.d/gdm
This page took 0.080125 seconds and 4 git commands to generate.