2 %bcond_with tests # build without tests (tests fail mostly)
3 %bcond_without qt4 # build without Qt4
4 %bcond_without qt5 # build without Qt5
6 Summary: A lightweight display manager
7 Summary(hu.UTF-8): Egy könnyűsúlyú bejelentkezéskezelő
9 # Odd versions are development, use only Even versions here (1.x = x odd/even)
12 # library/bindings are LGPLv2 or LGPLv3, the rest GPLv3+
13 License: (LGPLv2 or LGPLv3) and GPLv3+
14 Group: X11/Applications
15 Source0: https://launchpad.net/lightdm/1.14/%{version}/+download/%{name}-%{version}.tar.xz
16 # Source0-md5: 9997e78eb6de3b8c1ef0508bf84c6694
18 Source2: %{name}-autologin.pamd
19 Source3: %{name}-greeter.pamd
21 Source5: %{name}-tmpfiles.conf
23 Patch1: upstart-path.patch
24 Patch2: %{name}-nodaemon_option.patch
25 Patch3: %{name}-qt5.patch
26 URL: http://www.freedesktop.org/wiki/Software/LightDM
27 BuildRequires: autoconf
28 BuildRequires: automake >= 1:1.11
29 BuildRequires: docbook-dtd412-xml
30 BuildRequires: gettext-tools
31 BuildRequires: glib2-devel >= 1:2.30
32 BuildRequires: gnome-common
33 BuildRequires: gnome-doc-utils
34 BuildRequires: gobject-introspection-devel >= 0.9.5
35 BuildRequires: gtk-doc
36 BuildRequires: intltool >= 0.35.0
37 BuildRequires: libgcrypt-devel
38 BuildRequires: libtool
39 BuildRequires: libxcb-devel
40 BuildRequires: libxklavier-devel
41 BuildRequires: pam-devel
42 BuildRequires: perl-XML-Parser
43 BuildRequires: perl-base
44 BuildRequires: pkgconfig
45 BuildRequires: rpmbuild(macros) >= 1.690
46 BuildRequires: tar >= 1:1.22
48 BuildRequires: xorg-lib-libX11-devel
49 BuildRequires: xorg-lib-libXdmcp-devel
51 BuildRequires: yelp-tools
53 BuildRequires: QtCore-devel
54 BuildRequires: QtDBus-devel
55 BuildRequires: QtGui-devel
56 BuildRequires: qt4-build
59 BuildRequires: Qt5Core-devel
60 BuildRequires: Qt5DBus-devel
61 BuildRequires: Qt5Gui-devel
62 BuildRequires: qt5-build
66 Requires: lightdm-greeter
67 Requires: xinitrc-ng >= 1.1-2
71 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
73 %define bashdir %{_sysconfdir}/bash_completion.d
76 An X display manager that:
77 - Has a lightweight codebase
78 - Is standards compliant (PAM, ConsoleKit, etc)
79 - Has a well defined interface between the server and user interface
80 - Fully themeable (easiest with the webkit interface)
81 - Cross-desktop (greeters can be written in any toolkit)
83 %description -l hu.UTF-8
84 Egy X bejelentkezéskezelő, amely:
85 - pehelysúlyú kóddal rendelkezik
86 - követi a standardokat (PAM, ConsoleKit, stb.)
87 - jól-definiált felület a szerver és a felhasználói felület között
88 - teljesen témázható (a legkönnyebb a webkit felülettel)
89 - desktop-független (üdvözlők bármilyen eszközkészlettel írhatók)
92 Summary: LightDM GObject client library
94 Obsoletes: lightdm-libs < 1.7.0-0.6
96 %description libs-gobject
97 This package contains a GObject based library for LightDM clients to
98 use to interface with LightDM.
100 %package libs-gobject-devel
101 Summary: Development files for %{name}-gobject
102 Group: Development/Libraries
104 Requires: %{name}-libs-gobject = %{version}-%{release}
106 %description libs-gobject-devel
107 This package contains development files for a GObject based library
108 for LightDM clients to use to interface with LightDM.
111 Summary: LightDM Qt4 client library
113 Obsoletes: lightdm-libs-qt
114 Conflicts: lightdm-libs < 1.7.0-0.6
116 %description libs-qt4
117 This package contains a Qt4 based library for LightDM clients to use
118 to interface with LightDM.
120 %package libs-qt4-devel
121 Summary: Development files for %{name}-qt4
122 Group: Development/Libraries
123 Requires: %{name}-libs-qt4 = %{version}-%{release}
124 Obsoletes: lightdm-libs-qt-devel
126 %description libs-qt4-devel
127 This package contains development files for a Qt4 based library for
128 LightDM clients to use to interface with LightDM.
131 Summary: LightDM Qt5 client library
134 %description libs-qt5
135 This package contains a Qt5 based library for LightDM clients to use
136 to interface with LightDM.
138 %package libs-qt5-devel
139 Summary: Development files for %{name}-qt5
140 Group: Development/Libraries
141 Requires: %{name}-libs-qt5 = %{version}-%{release}
143 %description libs-qt5-devel
144 This package contains development files for a Qt5 based library for
145 LightDM clients to use to interface with LightDM.
148 Summary: lightdm API documentation
150 %if "%{_rpmversion}" >= "5"
155 lightdm API documentation.
158 Summary: Init script for Lightdm
159 Summary(pl.UTF-8): Skrypt init dla Lightdm-a
160 Group: X11/Applications
161 Requires(post,preun): /sbin/chkconfig
162 Requires(post,postun): systemd-units >= 38
163 Requires: %{name} = %{version}-%{release}
164 Requires: rc-scripts >= 0.4.3.0
165 Requires: systemd-units >= 38
166 Obsoletes: lightdm-upstart < 1.7.12-6
167 Conflicts: upstart < 0.6
170 Init script for Lightdm.
172 %description init -l pl.UTF-8
173 Skrypt init dla Lightdm-a.
175 %package -n bash-completion-lightdm
176 Summary: Bash completion for LightDM
177 Summary(pl.UTF-8): Bashowe uzupełnianie parametrów dla LightDM
178 Group: Applications/Shells
179 Requires: %{name} = %{version}-%{release}
180 Requires: bash-completion
181 %if "%{_rpmversion}" >= "5"
185 %description -n bash-completion-lightdm
186 Bash completion for LightDM.
188 %description -n bash-completion-lightdm -l pl.UTF-8
189 Bashowe uzupełnianie parametrów dla LightDM.
206 --disable-silent-rules \
209 --enable-liblightdm-gobject \
210 %{?with_qt4:--enable-liblightdm-qt} \
211 %{?with_qt5:--enable-liblightdm-qt5} \
212 --with-html-dir=%{_gtkdocdir} \
214 --with-greeter-session=lightdm-gtk-greeter \
215 --with-greeter-user=xdm
217 %{?with_tests:%{__make} check}
220 rm -rf $RPM_BUILD_ROOT
222 INSTALL='install -p' \
223 DESTDIR=$RPM_BUILD_ROOT
225 install -d $RPM_BUILD_ROOT/etc/{pam.d,security,init,rc.d/init.d,dbus-1/system.d} \
226 $RPM_BUILD_ROOT%{bashdir} \
227 $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name}.conf.d \
228 $RPM_BUILD_ROOT/home/services/xdm \
229 $RPM_BUILD_ROOT%{_datadir}/xgreeters \
230 $RPM_BUILD_ROOT%{_datadir}/%{name}/{remote-sessions,%{name}.conf.d} \
231 $RPM_BUILD_ROOT%{systemdunitdir} \
232 $RPM_BUILD_ROOT/var/lib/%{name}-data \
233 $RPM_BUILD_ROOT/var/{log,cache}/%{name}
235 install -d $RPM_BUILD_ROOT{/var/run/lightdm,%{systemdtmpfilesdir}}
236 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/lightdm.conf
239 cp -p data/init/%{name}.conf $RPM_BUILD_ROOT/etc/init
240 install -p %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
241 ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.service
243 cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/%{name}
244 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/lightdm-autologin
245 cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/lightdm-greeter
246 touch $RPM_BUILD_ROOT/etc/security/blacklist.%{name}
248 # We don't ship AppAmor
249 rm -rv $RPM_BUILD_ROOT/etc/apparmor.d
251 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{lb,wae}
253 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/bash-completion
254 cp -p data/bash-completion/{dm-tool,lightdm} $RPM_BUILD_ROOT%{bashdir}
256 %find_lang %{name} --with-gnome
259 rm -rf $RPM_BUILD_ROOT
262 %groupadd -g 55 -r -f xdm
263 %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm
266 if [ "$1" = "0" ]; then
271 %post libs-gobject -p /sbin/ldconfig
272 %postun libs-gobject -p /sbin/ldconfig
274 %post libs-qt4 -p /sbin/ldconfig
275 %postun libs-qt4 -p /sbin/ldconfig
277 %post libs-qt5 -p /sbin/ldconfig
278 %postun libs-qt5 -p /sbin/ldconfig
281 /sbin/chkconfig --add %{name}
282 %service -n %{name} restart
283 %upstart_post %{name}
287 if [ "$1" = "0" ]; then
288 /sbin/chkconfig --del %{name}
289 %service %{name} stop
294 %upstart_postun %{name}
296 %files -f %{name}.lang
297 %defattr(644,root,root,755)
299 %dir %{_sysconfdir}/%{name}
300 %dir %{_sysconfdir}/%{name}/%{name}.conf.d
301 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf
302 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/keys.conf
303 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/users.conf
304 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/%{name}
305 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/lightdm-autologin
306 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/lightdm-greeter
307 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.%{name}
308 /etc/dbus-1/system.d/org.freedesktop.DisplayManager.conf
309 %attr(755,root,root) %{_bindir}/dm-tool
310 %attr(755,root,root) %{_sbindir}/lightdm
311 %attr(755,root,root) %{_libdir}/lightdm-guest-session
312 %{_libdir}/girepository-1.0/LightDM-1.typelib
313 %{systemdtmpfilesdir}/lightdm.conf
314 %dir %{_datadir}/xgreeters
315 %dir %{_datadir}/%{name}
316 %dir %{_datadir}/%{name}/remote-sessions
317 %dir %{_datadir}/%{name}/%{name}.conf.d
318 %{_mandir}/man1/dm-tool.1*
319 %{_mandir}/man1/%{name}.1*
320 %dir %attr(710,root,root) /var/cache/%{name}
321 %dir %attr(710,root,root) /var/log/%{name}
322 %dir %attr(770,root,root) /var/run/%{name}
323 %dir %attr(700,root,root) /var/lib/%{name}-data
324 %dir %attr(750,xdm,xdm) /home/services/xdm
327 %defattr(644,root,root,755)
328 %attr(755,root,root) %{_libdir}/liblightdm-gobject-1.so.*.*.*
329 %attr(755,root,root) %ghost %{_libdir}/liblightdm-gobject-1.so.0
333 %defattr(644,root,root,755)
334 %attr(755,root,root) %{_libdir}/liblightdm-qt-3.so.*.*.*
335 %attr(755,root,root) %ghost %{_libdir}/liblightdm-qt-3.so.0
337 %files libs-qt4-devel
338 %defattr(644,root,root,755)
339 %{_libdir}/liblightdm-qt-3.la
340 %attr(755,root,root) %{_libdir}/liblightdm-qt-3.so
341 %{_includedir}/lightdm-qt-3
342 %{_pkgconfigdir}/liblightdm-qt-3.pc
347 %defattr(644,root,root,755)
348 %attr(755,root,root) %{_libdir}/liblightdm-qt5-3.so.*.*.*
349 %attr(755,root,root) %ghost %{_libdir}/liblightdm-qt5-3.so.0
351 %files libs-qt5-devel
352 %defattr(644,root,root,755)
353 %{_libdir}/liblightdm-qt5-3.la
354 %attr(755,root,root) %{_libdir}/liblightdm-qt5-3.so
355 %{_includedir}/lightdm-qt5-3
356 %{_pkgconfigdir}/liblightdm-qt5-3.pc
359 %files libs-gobject-devel
360 %defattr(644,root,root,755)
361 %{_datadir}/gir-1.0/LightDM-1.gir
362 %{_includedir}/lightdm-gobject-1
363 %{_pkgconfigdir}/liblightdm-gobject-1.pc
364 %{_libdir}/liblightdm-gobject-1.la
365 %attr(755,root,root) %{_libdir}/liblightdm-gobject-1.so
367 %{_datadir}/vala/vapi/liblightdm-gobject-1.vapi
370 %defattr(644,root,root,755)
371 %{_gtkdocdir}/lightdm-gobject-1
374 %defattr(644,root,root,755)
375 %attr(754,root,root) /etc/rc.d/init.d/%{name}
376 %config(noreplace) %verify(not md5 mtime size) /etc/init/%{name}.conf
377 %{systemdunitdir}/%{name}.service
379 %files -n bash-completion-lightdm
380 %defattr(644,root,root,755)