]> git.pld-linux.org Git - packages/gdm2.20.git/blob - gdm2.20.spec
- Requires(post,postun): gtk-update-icon-cache
[packages/gdm2.20.git] / gdm2.20.spec
1 #
2 # TODO:
3 # - s=/dev/null=/home/services/xdm= in %%trigger for graceful upgrade from xdm/kdm/gdm 2.2
4 # - check /etc/pam.d/gdm-autologin
5 #
6 # Conditiional build:
7 %bcond_without  selinux # without selinux
8 #
9 Summary:        GNOME Display Manager
10 Summary(es.UTF-8):      Administrador de Entrada del GNOME
11 Summary(ja.UTF-8):      GNOME ディスプレイマネージャ
12 Summary(pl.UTF-8):      gdm - zarządca ekranów GNOME
13 Summary(pt_BR.UTF-8):   Gerenciador de Entrada do GNOME
14 Summary(ru.UTF-8):      Дисплейный менеджер GNOME
15 Summary(uk.UTF-8):      Дисплейний менеджер GNOME
16 Name:           gdm2.20
17 Version:        2.20.11
18 Release:        3
19 License:        GPL/LGPL
20 Group:          X11/Applications
21 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gdm/2.20/gdm-%{version}.tar.bz2
22 # Source0-md5:  67696b64c81c317f61065810a32e8b36
23 Source1:        gdm.pamd
24 Source2:        gdm.init
25 Source3:        gdm-pld-logo.png
26 # http://cvs.pld-linux.org/cgi-bin/cvsweb/pld-artwork/gdm/storky/
27 Source4:        gdm-storky.tar.gz
28 # Source4-md5:  e293fbe4a60004056f6894463b874ae8
29 Source5:        gdm-autologin.pamd
30 Patch0:         gdm-xdmcp.patch
31 Patch1:         gdm-conf.patch
32 Patch2:         gdm-xsession.patch
33 Patch3:         gdm-desktop.patch
34 Patch4:         gdm-defaults.patch
35 URL:            http://www.gnome.org/projects/gdm/
36 BuildRequires:  ConsoleKit-devel
37 BuildRequires:  attr-devel
38 BuildRequires:  audit-libs-devel
39 BuildRequires:  autoconf >= 2.52
40 BuildRequires:  automake
41 BuildRequires:  dbus-glib-devel >= 0.73
42 BuildRequires:  docbook-dtd412-xml
43 BuildRequires:  gettext-devel
44 BuildRequires:  gnome-common
45 BuildRequires:  gnome-doc-utils
46 BuildRequires:  gtk+2-devel >= 2:2.12.0
47 BuildRequires:  intltool >= 0.36.1
48 BuildRequires:  libart_lgpl-devel >= 2.3.19
49 BuildRequires:  libglade2-devel >= 1:2.6.2
50 BuildRequires:  libgnomeui-devel >= 2.20.0
51 BuildRequires:  libgsf-devel >= 1.14.6
52 BuildRequires:  librsvg-devel >= 1:2.18.1
53 %{?with_selinux:BuildRequires:  libselinux-devel}
54 BuildRequires:  libtool
55 BuildRequires:  libxml2-devel >= 1:2.6.29
56 BuildRequires:  pam-devel
57 BuildRequires:  perl-modules
58 BuildRequires:  pkgconfig
59 BuildRequires:  rpmbuild(find_lang) >= 1.23
60 BuildRequires:  rpmbuild(macros) >= 1.311
61 BuildRequires:  scrollkeeper
62 BuildRequires:  sed >= 4.0
63 BuildRequires:  xorg-lib-libXdmcp-devel
64 BuildRequires:  xorg-lib-libXi-devel
65 BuildRequires:  xorg-lib-libXinerama-devel
66 BuildRequires:  xorg-lib-libdmx-devel
67 BuildRequires:  zenity
68 Requires(post,postun):  /usr/bin/scrollkeeper-update
69 Requires(post,postun):  gtk-update-icon-cache
70 Requires(post,postun):  hicolor-icon-theme
71 Requires(postun):       /usr/sbin/groupdel
72 Requires(postun):       /usr/sbin/userdel
73 Requires(pre):  /bin/id
74 Requires(pre):  /usr/sbin/groupadd
75 Requires(pre):  /usr/sbin/useradd
76 Requires:       libgnomeui >= 2.20.0
77 Requires:       pam >= 0.99.7.1
78 Requires:       which
79 Requires:       xorg-app-sessreg
80 Requires:       xorg-app-xmodmap
81 Suggests:       zenity
82 Provides:       XDM
83 Provides:       gdm = 2:%{version}
84 Provides:       group(xdm)
85 Provides:       user(xdm)
86 Obsoletes:      gdm <= 2:%{version}
87 Conflicts:      gdkxft
88 Conflicts:      gdm > 2:%{version}
89 # sr@Latn vs. sr@latin
90 Conflicts:      glibc-misc < 6:2.7
91 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
92
93 %define         _localstatedir  /var/lib
94
95 %description
96 Gdm (the GNOME Display Manager) is a highly configurable
97 reimplementation of xdm, the X Display Manager. Gdm allows you to log
98 into your system with the X Window System running and supports running
99 several different X sessions on your local machine at the same time.
100
101 %description -l es.UTF-8
102 Administrador de Entrada del GNOME.
103
104 %description -l ja.UTF-8
105 Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display
106 Manager の再実装版です。 Gdm を使うと、 X Window System
107 が動いているあなたの
108 システムにいろいろなセッションを選択してログインすることができます。
109
110 このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。
111
112 %description -l pl.UTF-8
113 Gdm jest wysokokonfigurowalną reimplementacją xdma. Gdm pozwala
114 logować się do systemu z poziomu X11 i wspiera jednoczesną pracę kilku
115 różnych sesji X na lokalnej maszynie.
116
117 %description -l pt_BR.UTF-8
118 Gerenciador de Entrada do GNOME.
119
120 %description -l ru.UTF-8
121 GDM (GNOME Display Manager) - это реимплементация xdm (X Display
122 Manager). GDM позволяет вам входить в систему, на которой запущено X
123 Window и поддерживает работу нескольуих разных X сеансов одновременно.
124
125 %description -l uk.UTF-8
126 GDM (GNOME Display Manager) - це реімплементація xdm (X Display
127 Manager). GDM дозволяє вам входити в систему, на якій запущено X
128 Window та підтримує роботу кількох різних X сеансів одночасно.
129
130 %package Xnest
131 Summary:        Xnest (ie embedded X) server for GDM
132 Summary(pl.UTF-8):      Serwer Xnest dla GDM
133 Group:          X11/Applications
134 Requires:       %{name} = %{version}-%{release}
135 Requires:       xorg-xserver-Xnest
136 Obsoletes:      gdm-Xnest <= 2:%{version}
137
138 %description Xnest
139 This package add support for Xnest server in gdm.
140
141 %description Xnest -l pl.UTF-8
142 Ten pakiet dodaje do gdm wsparcie dla Xnest.
143
144 %package init
145 Summary:        Init script for GDM
146 Summary(pl.UTF-8):      Skrypt init dla GDM-a
147 Group:          X11/Applications
148 Requires(post,preun):   /sbin/chkconfig
149 Requires:       %{name} = %{version}-%{release}
150 Requires:       open
151 Obsoletes:      gdm-init <= 2:%{version}
152 Conflicts:      gdm-init > 2:%{version}
153
154 %description init
155 Init script for GDM.
156
157 %description init -l pl.UTF-8
158 Skrypt init dla GDM-a.
159
160 %prep
161 %setup -q -a4 -n gdm-%{version}
162 %patch0 -p1
163 %patch1 -p1
164 %patch2 -p1
165 %patch3 -p1
166 %patch4 -p1
167
168 sed -i -e 's#sr@Latn#sr@latin#' po/LINGUAS
169 mv po/sr@{Latn,latin}.po
170
171 %build
172 %{__libtoolize}
173 %{__glib_gettextize}
174 %{__intltoolize}
175 %{__aclocal}
176 %{__autoconf}
177 %{__automake}
178 %configure \
179         LIBS="-lXau" \
180         --disable-console-helper \
181         --disable-scrollkeeper \
182         --with-console-kit=yes \
183         --enable-authentication-scheme=pam \
184         --enable-secureremote \
185         --with-pam-prefix=/etc \
186         --with-tcp-wrappers=yes \
187         --with%{!?with_selinux:out}-selinux \
188         --with-libaudit=yes \
189         --with-xdmcp=yes \
190         --with-xinerama=yes \
191         --with-dmx=yes \
192         --enable-ipv6=yes
193
194 %{__make}
195
196 %install
197 rm -rf $RPM_BUILD_ROOT
198 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \
199         $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm} \
200         $RPM_BUILD_ROOT%{_datadir}/gdm/themes/storky
201
202 %{__make} install \
203         DESTDIR=$RPM_BUILD_ROOT \
204         PAM_PREFIX=/etc
205
206 mv $RPM_BUILD_ROOT%{_datadir}/gdm/BuiltInSessions/default.desktop \
207         $RPM_BUILD_ROOT%{_datadir}/xsessions
208
209 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm
210 install %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin
211 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm
212
213 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
214
215 install storky/*.* $RPM_BUILD_ROOT%{_datadir}/gdm/themes/storky/
216
217 touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm
218
219 %find_lang gdm --with-gnome --with-omf --all-name
220
221 # Remove useless files
222 rm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.{la,a}
223
224 # moved to gnome-session
225 rm $RPM_BUILD_ROOT%{_datadir}/xsessions/gnome.desktop
226
227 %clean
228 rm -rf $RPM_BUILD_ROOT
229
230 %pre
231 %groupadd -g 55 -r -f xdm
232 %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm
233
234 %post
235 %scrollkeeper_update_post
236 %update_icon_cache hicolor
237
238 %postun
239 %scrollkeeper_update_postun
240 %update_icon_cache hicolor
241
242 if [ "$1" = "0" ]; then
243         %userremove xdm
244         %groupremove xdm
245 fi
246
247 %triggerpostun -- gdm < 1:2.13.0.8-1
248 if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then
249     mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf
250 fi
251
252 %post init
253 /sbin/chkconfig --add gdm
254 if [ -f /var/lock/subsys/gdm ]; then
255         echo "Run \"/sbin/service gdm restart\" to restart gdm." >&2
256         echo "WARNING: it will terminate all sessions opened from gdm!" >&2
257 else
258         echo "Run \"/sbin/service gdm start\" to start gdm." >&2
259 fi
260
261 %preun init
262 if [ "$1" = "0" ]; then
263         %service gdm stop
264         /sbin/chkconfig --del gdm
265 fi
266
267 %files -f gdm.lang
268 %defattr(644,root,root,755)
269 %doc AUTHORS ChangeLog NEWS README TODO
270 %attr(755,root,root) %{_bindir}/gdm-dmx-reconnect-proxy
271 %attr(755,root,root) %{_bindir}/gdmdynamic
272 %attr(755,root,root) %{_bindir}/gdmflexiserver
273 %attr(755,root,root) %{_bindir}/gdmphotosetup
274 %attr(755,root,root) %{_bindir}/gdmthemetester
275 %attr(755,root,root) %{_libdir}/gdm-ssh-session
276 %attr(755,root,root) %{_libdir}/gdmaskpass
277 %attr(755,root,root) %{_libdir}/gdmopen
278 %attr(755,root,root) %{_libdir}/gdmtranslate
279 %attr(755,root,root) %{_libdir}/gdmchooser
280 %attr(755,root,root) %{_libdir}/gdmgreeter
281 %attr(755,root,root) %{_libdir}/gdmlogin
282 %attr(755,root,root) %{_sbindir}/*
283
284 %dir %{_sysconfdir}/gdm
285 %dir %{_sysconfdir}/gdm/Init
286 %dir %{_sysconfdir}/gdm/PreSession
287 %dir %{_sysconfdir}/gdm/PostSession
288 %dir %{_sysconfdir}/gdm/PostLogin
289 %dir %{_sysconfdir}/gdm/modules
290 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/Init/Default
291 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/PostLogin/Default.sample
292 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/PostSession/Default
293 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/PreSession/Default
294 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/XKeepsCrashing
295 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/Xsession
296 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/custom.conf
297 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/locale.alias
298 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/modules/*
299
300 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm*
301 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm
302 %attr(1770,root,xdm) /var/lib/gdm
303 %attr(750,xdm,xdm) /var/log/gdm
304 %attr(750,xdm,xdm) /home/services/xdm
305 %{_pixmapsdir}/*
306 %{_datadir}/gdm
307 %{_datadir}/xsessions/default.desktop
308 %{_datadir}/xsessions/ssh.desktop
309 %{_iconsdir}/hicolor/*/apps/*.png
310 %{_iconsdir}/hicolor/*/apps/*.svg
311 %attr(755,root,root) %{_libdir}/gtk-2.0/modules/lib*.so
312 %{_mandir}/man1/gdm*
313
314 %files Xnest
315 %defattr(644,root,root,755)
316 %attr(755,root,root) %{_bindir}/gdmXnest
317 %attr(755,root,root) %{_bindir}/gdmXnestchooser
318
319 %files init
320 %defattr(644,root,root,755)
321 %attr(754,root,root) /etc/rc.d/init.d/gdm
This page took 0.059665 seconds and 3 git commands to generate.