]> git.pld-linux.org Git - packages/gdm.git/blob - gdm.spec
d2b213d5a7c0b3e2dc342218f833366703243423
[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.16.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.16/%{name}-%{version}.tar.xz
25 # Source0-md5:  aacdff89e695cb66c8d4a6ff0a00e293
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-tools >= 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-xserver-Xephyr
71 BuildRequires:  xz
72 BuildRequires:  yelp-tools
73 Requires(post,postun):  glib2 >= %{glib2_version}
74 Requires(post,postun):  gtk-update-icon-cache
75 Requires(postun):       /usr/sbin/groupdel
76 Requires(postun):       /usr/sbin/userdel
77 Requires(pre):  /bin/id
78 Requires(pre):  /usr/sbin/groupadd
79 Requires(pre):  /usr/sbin/useradd
80 Requires(posttrans):    dconf
81 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
82 Requires:       /usr/bin/X
83 Requires:       accountsservice >= 0.6.12
84 Requires:       dbus-x11
85 Requires:       gdm-wm >= 3.2.1
86 Requires:       glib2 >= %{glib2_version}
87 Requires:       gnome-session >= 3.0.0
88 Requires:       gnome-settings-daemon >= 3.0.0
89 Requires:       hicolor-icon-theme
90 Requires:       pam >= 0.99.7.1
91 Requires:       polkit-gnome >= 0.93
92 Requires:       which
93 Requires:       xinitrc-ng >= 1.0
94 Requires:       xorg-app-sessreg
95 Requires:       xorg-app-xmodmap
96 Suggests:       ConsoleKit-x11 >= 0.4.1
97 Suggests:       pam-pam_gnome_keyring
98 Suggests:       xorg-xserver-Xephyr
99 Suggests:       zenity
100 Provides:       XDM
101 Provides:       group(xdm)
102 Provides:       user(xdm)
103 Obsoletes:      gdm-Xnest
104 Obsoletes:      gdm-systemd
105 Obsoletes:      gdm-user-switch-applet
106 Obsoletes:      gnome-applet-fast-user-switch
107 Conflicts:      gdkxft
108 # sr@Latn vs. sr@latin
109 Conflicts:      glibc-misc < 6:2.7
110 Conflicts:      systemd < 186
111 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
112
113 %description
114 Gdm (the GNOME Display Manager) is a highly configurable
115 reimplementation of xdm, the X Display Manager. Gdm allows you to log
116 into your system with the X Window System running and supports running
117 several different X sessions on your local machine at the same time.
118
119 %description -l es.UTF-8
120 Administrador de Entrada del GNOME.
121
122 %description -l ja.UTF-8
123 Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display Manager
124 の再実装版です。 Gdm を使うと、 X Window System が動いているあなたの
125 システムにいろいろなセッションを選択してログインすることができます。
126
127 このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。
128
129 %description -l pl.UTF-8
130 Gdm jest wysokokonfigurowalną reimplementacją xdma. Gdm pozwala
131 logować się do systemu z poziomu X11 i wspiera jednoczesną pracę kilku
132 różnych sesji X na lokalnej maszynie.
133
134 %description -l pt_BR.UTF-8
135 Gerenciador de Entrada do GNOME.
136
137 %description -l ru.UTF-8
138 GDM (GNOME Display Manager) - это реимплементация xdm (X Display
139 Manager). GDM позволяет вам входить в систему, на которой запущено X
140 Window и поддерживает работу нескольуих разных X сеансов одновременно.
141
142 %description -l uk.UTF-8
143 GDM (GNOME Display Manager) - це реімплементація xdm (X Display
144 Manager). GDM дозволяє вам входити в систему, на якій запущено X
145 Window та підтримує роботу кількох різних X сеансів одночасно.
146
147 %package libs
148 Summary:        GDM libraries
149 Summary(pl.UTF-8):      Biblioteki GDM
150 Group:          Libraries
151
152 %description libs
153 GDM libraries.
154
155 %description libs -l pl.UTF-8
156 Biblioteki GDM.
157
158 %package devel
159 Summary:        Header files for GDM
160 Summary(pl.UTF-8):      Pliki nagłówkowe i dokumentacja
161 Group:          X11/Development/Libraries
162 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
163
164 %description devel
165 This package contains the files necessary to develop applications
166 using GDM's libraries.
167
168 %description devel -l pl.UTF-8
169 Pakiet zawiera pliki potrzebne do rozwoju aplikacji używających
170 bibliotek programu GDM.
171
172 %package static
173 Summary:        Static libraries for GDM
174 Summary(pl.UTF-8):      Biblioteki statyczne dla GDM
175 Group:          X11/Development/Libraries
176 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
177
178 %description static
179 This package contains static libraries for GDM.
180
181 %description static -l pl.UTF-8
182 Pakiet zawiera statyczne biblioteki GDM.
183
184 %package init
185 Summary:        Init script for GDM
186 Summary(pl.UTF-8):      Skrypt init dla GDM-a
187 Group:          X11/Applications
188 Requires(post,preun):   /sbin/chkconfig
189 Requires(post,preun,postun):    systemd-units >= 38
190 Requires:       %{name} = %{epoch}:%{version}-%{release}
191 Requires:       open
192 Requires:       rc-scripts >= 0.4.3.0
193 Requires:       systemd-units >= 38
194
195 %description init
196 Init script for GDM.
197
198 %description init -l pl.UTF-8
199 Skrypt init dla GDM-a.
200
201 %package upstart
202 Summary:        Upstart job description for GDM
203 Summary(pl.UTF-8):      Opis zadania Upstart dla GDM
204 Group:          Daemons
205 Requires:       %{name} = %{epoch}:%{version}-%{release}
206 Requires:       upstart >= 0.6
207
208 %description upstart
209 Upstart job description for GDM.
210
211 %description upstart -l pl.UTF-8
212 Opis zadania Upstart dla GDM.
213
214 %prep
215 %setup -q
216 %patch0 -p1
217 %patch1 -p1
218 %patch2 -p1
219 #patch3 -p1
220
221 %build
222 touch data/gdm.schemas.in.in
223 %{__libtoolize}
224 %{__glib_gettextize}
225 %{__intltoolize}
226 %{__aclocal}
227 %{__autoheader}
228 %{__autoconf}
229 %{__automake}
230 %configure \
231         SYSTEMD_X_SERVER=/lib/systemd/systemd-multi-seat-x \
232         %{?debug:--enable-debug} \
233         --disable-console-helper \
234         --disable-silent-rules \
235         %{__with_without systemd systemd} \
236         --with-console-kit \
237         --enable-authentication-scheme=pam \
238         --with-pam-prefix=/etc \
239         --with-tcp-wrappers=yes \
240         --with-xdmcp=yes \
241         --with-xinerama=yes \
242         --with-user=xdm \
243         --with-group=xdm \
244         --enable-ipv6
245
246 %{__make} -j1
247
248 %install
249 rm -rf $RPM_BUILD_ROOT
250 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security,init} \
251         $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm} \
252         $RPM_BUILD_ROOT{%{_datadir}/xsessions,%{systemdunitdir}} \
253         $RPM_BUILD_ROOT%{systemdtmpfilesdir}
254
255 %{__make} install \
256         DESTDIR=$RPM_BUILD_ROOT \
257         PAM_PREFIX=%{_sysconfdir}
258
259 cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm-password
260 cp -p %{SOURCE10} $RPM_BUILD_ROOT/etc/pam.d/gdm-fingerprint
261 cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin
262 cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/pam.d/gdm-launch-environment
263 install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm
264 cp -p %{SOURCE7} $RPM_BUILD_ROOT/etc/init/%{name}.conf
265 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
266 ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/gdm.service
267 cp -p %{SOURCE9} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
268
269 touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm
270
271 %find_lang %{name} --with-gnome --with-omf --all-name
272
273 # allow executing ~/.Xclients and ~/.xsession
274 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/xsessions/custom.desktop
275 cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/xsessions/default.desktop
276
277 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
278
279 %clean
280 rm -rf $RPM_BUILD_ROOT
281
282 %posttrans
283 umask 022
284 /usr/bin/dconf update
285
286 %pre
287 %groupadd -g 55 -r -f xdm
288 %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm
289
290 %post
291 %update_icon_cache hicolor
292
293 %postun
294 %update_icon_cache hicolor
295 if [ "$1" = "0" ]; then
296         %userremove xdm
297         %groupremove xdm
298 fi
299
300 %triggerpostun -- %{name} < 2:3.2.1.1-10
301 if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then
302         mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf
303 fi
304
305 %post init
306 /sbin/chkconfig --add gdm
307 # -n skips restarting as it would otherise terminate all sessions opened from gdm!
308 %service -n gdm restart
309 %systemd_reload
310
311 %postun init
312 %systemd_reload
313
314 %preun init
315 if [ "$1" = "0" ]; then
316         %service gdm stop
317         /sbin/chkconfig --del gdm
318 fi
319
320 %post libs
321 /sbin/ldconfig
322 %glib_compile_schemas
323
324 %postun libs
325 /sbin/ldconfig
326 if [ "$1" = "0" ]; then
327         %glib_compile_schemas
328 fi
329
330 %files -f %{name}.lang
331 %defattr(644,root,root,755)
332 %doc AUTHORS ChangeLog NEWS README TODO
333 %attr(755,root,root) %{_sbindir}/gdm
334 %attr(755,root,root) %{_bindir}/gdm-screenshot
335 %attr(755,root,root) %{_bindir}/gdmflexiserver
336 %attr(755,root,root) %{_libexecdir}/gdm-host-chooser
337 %attr(755,root,root) %{_libexecdir}/gdm-session-worker
338 %attr(755,root,root) %{_libexecdir}/gdm-simple-chooser
339 %attr(755,root,root) %{_libdir}/gdm-wayland-session
340 %attr(755,root,root) %{_libdir}/gdm-x-session
341 %dir %{_sysconfdir}/gdm
342 %dir %{_sysconfdir}/gdm/Init
343 %attr(755,root,root) %config %{_sysconfdir}/gdm/Init/Default
344 %attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession
345 %attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession
346 %attr(755,root,root) %config %{_sysconfdir}/gdm/Xsession
347 %dir %{_sysconfdir}/gdm/PostLogin
348 %config %{_sysconfdir}/gdm/PostLogin/Default.sample
349 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/custom.conf
350 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/*
351 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm*
352 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm
353 %{_datadir}/dconf/profile/gdm
354 %attr(1755,root,xdm) %dir /var/cache/gdm
355 %attr(1770,root,xdm) %dir /var/lib/gdm
356 %attr(755,xdm,xdm) /var/lib/gdm/.local
357 %attr(750,xdm,xdm) %dir /var/log/gdm
358 %attr(711,root,xdm) %dir /var/run/gdm
359 %attr(755,xdm,xdm) %dir /var/run/gdm/greeter
360 %attr(750,xdm,xdm) /home/services/xdm
361 %{systemdtmpfilesdir}/%{name}.conf
362 %{_pixmapsdir}/*
363 %{_datadir}/gdm
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.040961 seconds and 2 git commands to generate.