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