]> git.pld-linux.org Git - packages/gdm2.20.git/blob - gdm2.20.spec
- rel 4
[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:        4
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.627
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:       systemd-units >= 37-0.10
79 Requires:       which
80 Requires:       xinitrc-ng >= 1.0
81 Requires:       xorg-app-sessreg
82 Requires:       xorg-app-xmodmap
83 Suggests:       zenity
84 Provides:       XDM
85 Provides:       gdm = 2:%{version}
86 Provides:       group(xdm)
87 Provides:       user(xdm)
88 Obsoletes:      gdm <= 2:%{version}
89 Conflicts:      gdkxft
90 Conflicts:      gdm > 2:%{version}
91 # sr@Latn vs. sr@latin
92 Conflicts:      glibc-misc < 6:2.7
93 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
94
95 %define         _localstatedir  /var/lib
96
97 %description
98 Gdm (the GNOME Display Manager) is a highly configurable
99 reimplementation of xdm, the X Display Manager. Gdm allows you to log
100 into your system with the X Window System running and supports running
101 several different X sessions on your local machine at the same time.
102
103 %description -l es.UTF-8
104 Administrador de Entrada del GNOME.
105
106 %description -l ja.UTF-8
107 Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display
108 Manager の再実装版です。 Gdm を使うと、 X Window System
109 が動いているあなたの
110 システムにいろいろなセッションを選択してログインすることができます。
111
112 このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。
113
114 %description -l pl.UTF-8
115 Gdm jest wysokokonfigurowalną reimplementacją xdma. Gdm pozwala
116 logować się do systemu z poziomu X11 i wspiera jednoczesną pracę kilku
117 różnych sesji X na lokalnej maszynie.
118
119 %description -l pt_BR.UTF-8
120 Gerenciador de Entrada do GNOME.
121
122 %description -l ru.UTF-8
123 GDM (GNOME Display Manager) - это реимплементация xdm (X Display
124 Manager). GDM позволяет вам входить в систему, на которой запущено X
125 Window и поддерживает работу нескольуих разных X сеансов одновременно.
126
127 %description -l uk.UTF-8
128 GDM (GNOME Display Manager) - це реімплементація xdm (X Display
129 Manager). GDM дозволяє вам входити в систему, на якій запущено X
130 Window та підтримує роботу кількох різних X сеансів одночасно.
131
132 %package Xnest
133 Summary:        Xnest (ie embedded X) server for GDM
134 Summary(pl.UTF-8):      Serwer Xnest dla GDM
135 Group:          X11/Applications
136 Requires:       %{name} = %{version}-%{release}
137 Requires:       xorg-xserver-Xnest
138 Obsoletes:      gdm-Xnest <= 2:%{version}
139
140 %description Xnest
141 This package add support for Xnest server in gdm.
142
143 %description Xnest -l pl.UTF-8
144 Ten pakiet dodaje do gdm wsparcie dla Xnest.
145
146 %package init
147 Summary:        Init script for GDM
148 Summary(pl.UTF-8):      Skrypt init dla GDM-a
149 Group:          X11/Applications
150 Requires(post,preun):   /sbin/chkconfig
151 Requires:       %{name} = %{version}-%{release}
152 Requires:       open
153 Obsoletes:      gdm-init <= 2:%{version}
154 Conflicts:      gdm-init > 2:%{version}
155
156 %description init
157 Init script for GDM.
158
159 %description init -l pl.UTF-8
160 Skrypt init dla GDM-a.
161
162 %prep
163 %setup -q -a4 -n gdm-%{version}
164 %patch0 -p1
165 %patch1 -p1
166 %patch2 -p1
167 %patch3 -p1
168 %patch4 -p1
169
170 sed -i -e 's#sr@Latn#sr@latin#' po/LINGUAS
171 mv po/sr@{Latn,latin}.po
172
173 %build
174 %{__libtoolize}
175 %{__glib_gettextize}
176 %{__intltoolize}
177 %{__aclocal}
178 %{__autoconf}
179 %{__automake}
180 %configure \
181         LIBS="-lXau" \
182         --disable-console-helper \
183         --disable-scrollkeeper \
184         --with-console-kit=yes \
185         --enable-authentication-scheme=pam \
186         --enable-secureremote \
187         --with-pam-prefix=/etc \
188         --with-tcp-wrappers=yes \
189         --with%{!?with_selinux:out}-selinux \
190         --with-libaudit=yes \
191         --with-xdmcp=yes \
192         --with-xinerama=yes \
193         --with-dmx=yes \
194         --enable-ipv6=yes
195
196 %{__make}
197
198 %install
199 rm -rf $RPM_BUILD_ROOT
200 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \
201         $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm} \
202         $RPM_BUILD_ROOT%{_datadir}/gdm/themes/storky \
203         $RPM_BUILD_ROOT%{systemdunitdir}
204
205 %{__make} install \
206         DESTDIR=$RPM_BUILD_ROOT \
207         PAM_PREFIX=/etc
208
209 mv $RPM_BUILD_ROOT%{_datadir}/gdm/BuiltInSessions/default.desktop \
210         $RPM_BUILD_ROOT%{_datadir}/xsessions
211
212 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm
213 install %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin
214 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm
215
216 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
217
218 ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/gdm.service
219
220 install storky/*.* $RPM_BUILD_ROOT%{_datadir}/gdm/themes/storky/
221
222 touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm
223
224 %find_lang gdm --with-gnome --with-omf --all-name
225
226 # Remove useless files
227 rm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.{la,a}
228
229 # moved to gnome-session
230 rm $RPM_BUILD_ROOT%{_datadir}/xsessions/gnome.desktop
231
232 %clean
233 rm -rf $RPM_BUILD_ROOT
234
235 %pre
236 %groupadd -g 55 -r -f xdm
237 %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm
238
239 %post
240 %scrollkeeper_update_post
241 %update_icon_cache hicolor
242 %systemd_reload
243
244 %postun
245 %scrollkeeper_update_postun
246 %update_icon_cache hicolor
247 %systemd_reload
248
249 if [ "$1" = "0" ]; then
250         %userremove xdm
251         %groupremove xdm
252 fi
253
254 %triggerpostun -- gdm < 1:2.13.0.8-1
255 if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then
256     mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf
257 fi
258
259 %post init
260 /sbin/chkconfig --add gdm
261 if [ -f /var/lock/subsys/gdm ]; then
262         echo "Run \"/sbin/service gdm restart\" to restart gdm." >&2
263         echo "WARNING: it will terminate all sessions opened from gdm!" >&2
264 else
265         echo "Run \"/sbin/service gdm start\" to start gdm." >&2
266 fi
267
268 %preun init
269 if [ "$1" = "0" ]; then
270         %service gdm stop
271         /sbin/chkconfig --del gdm
272 fi
273
274 %files -f gdm.lang
275 %defattr(644,root,root,755)
276 %doc AUTHORS ChangeLog NEWS README TODO
277 %attr(755,root,root) %{_bindir}/gdm-dmx-reconnect-proxy
278 %attr(755,root,root) %{_bindir}/gdmdynamic
279 %attr(755,root,root) %{_bindir}/gdmflexiserver
280 %attr(755,root,root) %{_bindir}/gdmphotosetup
281 %attr(755,root,root) %{_bindir}/gdmthemetester
282 %attr(755,root,root) %{_libdir}/gdm-ssh-session
283 %attr(755,root,root) %{_libdir}/gdmaskpass
284 %attr(755,root,root) %{_libdir}/gdmopen
285 %attr(755,root,root) %{_libdir}/gdmtranslate
286 %attr(755,root,root) %{_libdir}/gdmchooser
287 %attr(755,root,root) %{_libdir}/gdmgreeter
288 %attr(755,root,root) %{_libdir}/gdmlogin
289 %attr(755,root,root) %{_sbindir}/*
290
291 %{systemdunitdir}/gdm.service
292 %dir %{_sysconfdir}/gdm
293 %dir %{_sysconfdir}/gdm/Init
294 %dir %{_sysconfdir}/gdm/PreSession
295 %dir %{_sysconfdir}/gdm/PostSession
296 %dir %{_sysconfdir}/gdm/PostLogin
297 %dir %{_sysconfdir}/gdm/modules
298 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/Init/Default
299 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/PostLogin/Default.sample
300 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/PostSession/Default
301 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/PreSession/Default
302 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/XKeepsCrashing
303 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/Xsession
304 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/custom.conf
305 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/locale.alias
306 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/modules/*
307
308 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm*
309 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm
310 %attr(1770,root,xdm) /var/lib/gdm
311 %attr(750,xdm,xdm) /var/log/gdm
312 %attr(750,xdm,xdm) /home/services/xdm
313 %{_pixmapsdir}/*
314 %{_datadir}/gdm
315 %{_datadir}/xsessions/default.desktop
316 %{_datadir}/xsessions/ssh.desktop
317 %{_iconsdir}/hicolor/*/apps/*.png
318 %{_iconsdir}/hicolor/*/apps/*.svg
319 %attr(755,root,root) %{_libdir}/gtk-2.0/modules/lib*.so
320 %{_mandir}/man1/gdm*
321
322 %files Xnest
323 %defattr(644,root,root,755)
324 %attr(755,root,root) %{_bindir}/gdmXnest
325 %attr(755,root,root) %{_bindir}/gdmXnestchooser
326
327 %files init
328 %defattr(644,root,root,755)
329 %attr(754,root,root) /etc/rc.d/init.d/gdm
This page took 2.417348 seconds and 3 git commands to generate.