]> git.pld-linux.org Git - packages/gdm.git/blob - gdm.spec
Update to 3.12.0
[packages/gdm.git] / gdm.spec
1 #
2 # TODO:
3 # - s=/dev/null=/home/services/xdm= in %%trigger for graceful upgrade from xdm/kdm/gdm 2.2
4 # - check all /etc/pam.d/gdm-* to be pldized:
5 #   gdm-autologin[4] gdm-fingerprint[10] gdm-password[1] gdm-smartcard gdm-launch-environment[11]
6 #
7 # Conditional build:
8 %bcond_without  systemd # by default use systemd for session tracking instead of ConsoleKit (fallback to ConsoleKit on runtime)
9
10 %define         glib2_version 1:2.36.0
11 Summary:        GNOME Display Manager
12 Summary(es.UTF-8):      Administrador de Entrada del GNOME
13 Summary(ja.UTF-8):      GNOME ディスプレイマネージャ
14 Summary(pl.UTF-8):      gdm - zarządca ekranów GNOME
15 Summary(pt_BR.UTF-8):   Gerenciador de Entrada do GNOME
16 Summary(ru.UTF-8):      Дисплейный менеджер GNOME
17 Summary(uk.UTF-8):      Дисплейний менеджер GNOME
18 Name:           gdm
19 Version:        3.12.0
20 Release:        1
21 Epoch:          2
22 License:        GPL/LGPL
23 Group:          X11/Applications
24 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gdm/3.12/%{name}-%{version}.tar.xz
25 # Source0-md5:  67922d0fecd9a5cad0601f9b93106f83
26 Source1:        %{name}.pamd
27 Source2:        %{name}.init
28 Source3:        %{name}-pld-logo.png
29 Source4:        %{name}-autologin.pamd
30 Source5:        %{name}-custom.desktop
31 Source6:        %{name}-default.desktop
32 Source7:        %{name}.upstart
33 Source9:        %{name}.tmpfiles
34 Source10:       %{name}-fingerprint.pamd
35 Source11:       %{name}-launch-environment.pamd
36 Patch0:         %{name}-xdmcp.patch
37 Patch1:         %{name}-xsession.patch
38 Patch2:         %{name}-defaults.patch
39 Patch3:         shell-check.patch
40 URL:            http://www.gnome.org/projects/gdm/
41 BuildRequires:  accountsservice-devel >= 0.6.12
42 BuildRequires:  audit-libs-devel
43 BuildRequires:  autoconf >= 2.60
44 BuildRequires:  automake >= 1:1.11
45 BuildRequires:  check-devel >= 0.9.4
46 BuildRequires:  gettext-devel >= 0.17
47 BuildRequires:  glib2-devel >= %{glib2_version}
48 BuildRequires:  gobject-introspection-devel >= 0.9.12
49 BuildRequires:  gtk+3-devel >= 3.0.0
50 BuildRequires:  intltool >= 0.40.0
51 BuildRequires:  iso-codes
52 BuildRequires:  libcanberra-gtk3-devel >= 0.4
53 BuildRequires:  libselinux-devel
54 BuildRequires:  libtool
55 BuildRequires:  libwrap-devel
56 BuildRequires:  pam-devel
57 BuildRequires:  pkgconfig
58 BuildRequires:  plymouth-devel
59 BuildRequires:  rpmbuild(find_lang) >= 1.23
60 BuildRequires:  rpmbuild(macros) >= 1.627
61 %{?with_systemd:BuildRequires:  systemd-devel >= 186}
62 BuildRequires:  tar >= 1:1.22
63 BuildRequires:  xorg-lib-libX11-devel
64 BuildRequires:  xorg-lib-libXau-devel
65 BuildRequires:  xorg-lib-libXdmcp-devel
66 BuildRequires:  xorg-lib-libXext-devel
67 BuildRequires:  xorg-lib-libXft-devel
68 BuildRequires:  xorg-lib-libXi-devel
69 BuildRequires:  xorg-lib-libXinerama-devel
70 BuildRequires:  xorg-lib-libXrandr-devel
71 BuildRequires:  xorg-xserver-Xephyr
72 BuildRequires:  xz
73 BuildRequires:  yelp-tools
74 Requires(post,postun):  glib2 >= %{glib2_version}
75 Requires(post,postun):  gtk-update-icon-cache
76 Requires(postun):       /usr/sbin/groupdel
77 Requires(postun):       /usr/sbin/userdel
78 Requires(pre):  /bin/id
79 Requires(pre):  /usr/sbin/groupadd
80 Requires(pre):  /usr/sbin/useradd
81 Requires(posttrans):    dconf
82 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
83 Requires:       /usr/bin/X
84 Requires:       accountsservice >= 0.6.12
85 Requires:       dbus-x11
86 Requires:       gdm-wm >= 3.2.1
87 Requires:       glib2 >= %{glib2_version}
88 Requires:       gnome-session >= 3.0.0
89 Requires:       gnome-settings-daemon >= 3.0.0
90 Requires:       hicolor-icon-theme
91 Requires:       pam >= 0.99.7.1
92 Requires:       polkit-gnome >= 0.93
93 Requires:       which
94 Requires:       xinitrc-ng >= 1.0
95 Requires:       xorg-app-sessreg
96 Requires:       xorg-app-xmodmap
97 Suggests:       ConsoleKit-x11 >= 0.4.1
98 Suggests:       pam-pam_gnome_keyring
99 Suggests:       xorg-xserver-Xephyr
100 Suggests:       zenity
101 Provides:       XDM
102 Provides:       group(xdm)
103 Provides:       user(xdm)
104 Obsoletes:      gdm-Xnest
105 Obsoletes:      gdm-systemd
106 Obsoletes:      gdm-user-switch-applet
107 Obsoletes:      gnome-applet-fast-user-switch
108 Conflicts:      gdkxft
109 # sr@Latn vs. sr@latin
110 Conflicts:      glibc-misc < 6:2.7
111 Conflicts:      systemd < 186
112 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
113
114 %description
115 Gdm (the GNOME Display Manager) is a highly configurable
116 reimplementation of xdm, the X Display Manager. Gdm allows you to log
117 into your system with the X Window System running and supports running
118 several different X sessions on your local machine at the same time.
119
120 %description -l es.UTF-8
121 Administrador de Entrada del GNOME.
122
123 %description -l ja.UTF-8
124 Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display Manager
125 の再実装版です。 Gdm を使うと、 X Window System が動いているあなたの
126 システムにいろいろなセッションを選択してログインすることができます。
127
128 このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。
129
130 %description -l pl.UTF-8
131 Gdm jest wysokokonfigurowalną reimplementacją xdma. Gdm pozwala
132 logować się do systemu z poziomu X11 i wspiera jednoczesną pracę kilku
133 różnych sesji X na lokalnej maszynie.
134
135 %description -l pt_BR.UTF-8
136 Gerenciador de Entrada do GNOME.
137
138 %description -l ru.UTF-8
139 GDM (GNOME Display Manager) - это реимплементация xdm (X Display
140 Manager). GDM позволяет вам входить в систему, на которой запущено X
141 Window и поддерживает работу нескольуих разных X сеансов одновременно.
142
143 %description -l uk.UTF-8
144 GDM (GNOME Display Manager) - це реімплементація xdm (X Display
145 Manager). GDM дозволяє вам входити в систему, на якій запущено X
146 Window та підтримує роботу кількох різних X сеансів одночасно.
147
148 %package libs
149 Summary:        GDM libraries
150 Summary(pl.UTF-8):      Biblioteki GDM
151 Group:          Libraries
152
153 %description libs
154 GDM libraries.
155
156 %description libs -l pl.UTF-8
157 Biblioteki GDM.
158
159 %package devel
160 Summary:        Header files for GDM
161 Summary(pl.UTF-8):      Pliki nagłówkowe i dokumentacja
162 Group:          X11/Development/Libraries
163 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
164
165 %description devel
166 This package contains the files necessary to develop applications
167 using GDM's libraries.
168
169 %description devel -l pl.UTF-8
170 Pakiet zawiera pliki potrzebne do rozwoju aplikacji używających
171 bibliotek programu GDM.
172
173 %package static
174 Summary:        Static libraries for GDM
175 Summary(pl.UTF-8):      Biblioteki statyczne dla GDM
176 Group:          X11/Development/Libraries
177 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
178
179 %description static
180 This package contains static libraries for GDM.
181
182 %description static -l pl.UTF-8
183 Pakiet zawiera statyczne biblioteki GDM.
184
185 %package init
186 Summary:        Init script for GDM
187 Summary(pl.UTF-8):      Skrypt init dla GDM-a
188 Group:          X11/Applications
189 Requires(post,preun):   /sbin/chkconfig
190 Requires(post,preun,postun):    systemd-units >= 38
191 Requires:       %{name} = %{epoch}:%{version}-%{release}
192 Requires:       open
193 Requires:       rc-scripts >= 0.4.3.0
194 Requires:       systemd-units >= 38
195
196 %description init
197 Init script for GDM.
198
199 %description init -l pl.UTF-8
200 Skrypt init dla GDM-a.
201
202 %package upstart
203 Summary:        Upstart job description for GDM
204 Summary(pl.UTF-8):      Opis zadania Upstart dla GDM
205 Group:          Daemons
206 Requires:       %{name} = %{epoch}:%{version}-%{release}
207 Requires:       upstart >= 0.6
208
209 %description upstart
210 Upstart job description for GDM.
211
212 %description upstart -l pl.UTF-8
213 Opis zadania Upstart dla GDM.
214
215 %prep
216 %setup -q
217 %patch0 -p1
218 %patch1 -p1
219 %patch2 -p1
220 #patch3 -p1
221
222 %build
223 touch data/gdm.schemas.in.in
224 %{__libtoolize}
225 %{__glib_gettextize}
226 %{__intltoolize}
227 %{__aclocal}
228 %{__autoheader}
229 %{__autoconf}
230 %{__automake}
231 %configure \
232         SYSTEMD_X_SERVER=/lib/systemd/systemd-multi-seat-x \
233         %{?debug:--enable-debug} \
234         --disable-console-helper \
235         --disable-silent-rules \
236         %{__with_without systemd systemd} \
237         --with-console-kit \
238         --enable-authentication-scheme=pam \
239         --with-pam-prefix=/etc \
240         --with-tcp-wrappers=yes \
241         --with-xdmcp=yes \
242         --with-xinerama=yes \
243         --with-user=xdm \
244         --with-group=xdm \
245         --enable-ipv6
246
247 %{__make} -j1
248
249 %install
250 rm -rf $RPM_BUILD_ROOT
251 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security,init} \
252         $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm} \
253         $RPM_BUILD_ROOT{%{_datadir}/xsessions,%{systemdunitdir}} \
254         $RPM_BUILD_ROOT%{systemdtmpfilesdir}
255
256 %{__make} install \
257         DESTDIR=$RPM_BUILD_ROOT \
258         PAM_PREFIX=%{_sysconfdir}
259
260 cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm-password
261 cp -p %{SOURCE10} $RPM_BUILD_ROOT/etc/pam.d/gdm-fingerprint
262 cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin
263 cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/pam.d/gdm-launch-environment
264 install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm
265 cp -p %{SOURCE7} $RPM_BUILD_ROOT/etc/init/%{name}.conf
266 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
267 ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/gdm.service
268 install %{SOURCE9} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
269
270 touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm
271
272 %find_lang %{name} --with-gnome --with-omf --all-name
273
274 # allow executing ~/.Xclients and ~/.xsession
275 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/xsessions/custom.desktop
276 cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/xsessions/default.desktop
277
278 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
279
280 %clean
281 rm -rf $RPM_BUILD_ROOT
282
283 %posttrans
284 umask 022
285 /usr/bin/dconf update
286
287 %pre
288 %groupadd -g 55 -r -f xdm
289 %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm
290
291 %post
292 %update_icon_cache hicolor
293
294 %postun
295 %update_icon_cache hicolor
296 if [ "$1" = "0" ]; then
297         %userremove xdm
298         %groupremove xdm
299 fi
300
301 %triggerpostun -- %{name} < 2:3.2.1.1-10
302 if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then
303         mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf
304 fi
305
306 %post init
307 /sbin/chkconfig --add gdm
308 # -n skips restarting as it would otherise terminate all sessions opened from gdm!
309 %service -n gdm restart
310 %systemd_reload
311
312 %postun init
313 %systemd_reload
314
315 %preun init
316 if [ "$1" = "0" ]; then
317         %service gdm stop
318         /sbin/chkconfig --del gdm
319 fi
320
321 %post libs
322 /sbin/ldconfig
323 %glib_compile_schemas
324
325 %postun libs
326 /sbin/ldconfig
327 if [ "$1" = "0" ]; then
328         %glib_compile_schemas
329 fi
330
331 %files -f %{name}.lang
332 %defattr(644,root,root,755)
333 %doc AUTHORS ChangeLog NEWS README TODO
334 %attr(755,root,root) %{_sbindir}/gdm
335 %attr(755,root,root) %{_bindir}/gdm-screenshot
336 %attr(755,root,root) %{_bindir}/gdmflexiserver
337 %attr(755,root,root) %{_libexecdir}/gdm-host-chooser
338 %attr(755,root,root) %{_libexecdir}/gdm-session-worker
339 %attr(755,root,root) %{_libexecdir}/gdm-simple-chooser
340 %dir %{_sysconfdir}/gdm
341 %dir %{_sysconfdir}/gdm/Init
342 %attr(755,root,root) %config %{_sysconfdir}/gdm/Init/Default
343 %attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession
344 %attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession
345 %attr(755,root,root) %config %{_sysconfdir}/gdm/Xsession
346 %dir %{_sysconfdir}/gdm/PostLogin
347 %config %{_sysconfdir}/gdm/PostLogin/Default.sample
348 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/custom.conf
349 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/*
350 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm*
351 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm
352 %{_datadir}/dconf/profile/gdm
353 %attr(1755,root,xdm) %dir /var/cache/gdm
354 %attr(1770,root,xdm) %dir /var/lib/gdm
355 %attr(755,xdm,xdm) /var/lib/gdm/.local
356 %attr(750,xdm,xdm) %dir /var/log/gdm
357 %attr(711,root,xdm) %dir /var/run/gdm
358 %attr(755,xdm,xdm) %dir /var/run/gdm/greeter
359 %attr(750,xdm,xdm) /home/services/xdm
360 %{systemdtmpfilesdir}/%{name}.conf
361 %{_pixmapsdir}/*
362 %{_datadir}/gdm
363 %{_datadir}/gnome-session/sessions/gdm-shell.session
364 %{_datadir}/xsessions/custom.desktop
365 %{_datadir}/xsessions/default.desktop
366 %{_iconsdir}/hicolor/*/apps/*.png
367
368 %files libs
369 %defattr(644,root,root,755)
370 %attr(755,root,root) %{_libdir}/libgdm.so.1.0.0
371 %attr(755,root,root) %ghost %{_libdir}/libgdm.so.1
372 %{_libdir}/girepository-1.0/Gdm-1.0.typelib
373 %{_datadir}/glib-2.0/schemas/org.gnome.login-screen.gschema.xml
374
375 %files devel
376 %defattr(644,root,root,755)
377 %dir %{_includedir}/gdm
378 %{_includedir}/gdm/gdm-client-glue.h
379 %{_includedir}/gdm/gdm-client.h
380 %{_includedir}/gdm/gdm-sessions.h
381 %{_includedir}/gdm/gdm-user-switching.h
382 %{_pkgconfigdir}/gdm.pc
383 %{_libdir}/libgdm.so
384 %{_datadir}/gir-1.0/Gdm-1.0.gir
385
386 %files static
387 %defattr(644,root,root,755)
388 %{_libdir}/libgdm.a
389
390 %files init
391 %defattr(644,root,root,755)
392 %attr(754,root,root) /etc/rc.d/init.d/gdm
393 %{systemdunitdir}/gdm.service
394
395 %files upstart
396 %defattr(644,root,root,755)
397 %config(noreplace) %verify(not md5 mtime size) /etc/init/%{name}.conf
This page took 0.065491 seconds and 4 git commands to generate.