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