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 Patch2: %{name}-nodaemon_option.patch
24 Patch3: %{name}-qt5.patch
25 URL: http://www.freedesktop.org/wiki/Software/LightDM
26 BuildRequires: autoconf
27 BuildRequires: automake >= 1:1.11
28 BuildRequires: docbook-dtd412-xml
29 BuildRequires: gettext-tools
30 BuildRequires: glib2-devel >= 1:2.30
31 BuildRequires: gnome-common
32 BuildRequires: gnome-doc-utils
33 BuildRequires: gobject-introspection-devel >= 0.9.5
34 BuildRequires: gtk-doc
35 BuildRequires: intltool >= 0.35.0
36 BuildRequires: libgcrypt-devel
37 BuildRequires: libtool
38 BuildRequires: libxcb-devel
39 BuildRequires: libxklavier-devel
40 BuildRequires: pam-devel
41 BuildRequires: perl-XML-Parser
42 BuildRequires: perl-base
43 BuildRequires: pkgconfig
44 BuildRequires: rpmbuild(macros) >= 1.690
45 BuildRequires: tar >= 1:1.22
47 BuildRequires: xorg-lib-libX11-devel
48 BuildRequires: xorg-lib-libXdmcp-devel
50 BuildRequires: yelp-tools
52 BuildRequires: QtCore-devel
53 BuildRequires: QtDBus-devel
54 BuildRequires: QtGui-devel
55 BuildRequires: qt4-build
58 BuildRequires: Qt5Core-devel
59 BuildRequires: Qt5DBus-devel
60 BuildRequires: Qt5Gui-devel
61 BuildRequires: qt5-build
65 Requires: lightdm-greeter
66 Requires: xinitrc-ng >= 1.1-2
70 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
72 %define bashdir %{_sysconfdir}/bash_completion.d
75 An X display manager that:
76 - Has a lightweight codebase
77 - Is standards compliant (PAM, ConsoleKit, etc)
78 - Has a well defined interface between the server and user interface
79 - Fully themeable (easiest with the webkit interface)
80 - Cross-desktop (greeters can be written in any toolkit)
82 %description -l hu.UTF-8
83 Egy X bejelentkezéskezelő, amely:
84 - pehelysúlyú kóddal rendelkezik
85 - követi a standardokat (PAM, ConsoleKit, stb.)
86 - jól-definiált felület a szerver és a felhasználói felület között
87 - teljesen témázható (a legkönnyebb a webkit felülettel)
88 - desktop-független (üdvözlők bármilyen eszközkészlettel írhatók)
91 Summary: LightDM GObject client library
93 Obsoletes: lightdm-libs < 1.7.0-0.6
95 %description libs-gobject
96 This package contains a GObject based library for LightDM clients to
97 use to interface with LightDM.
99 %package libs-gobject-devel
100 Summary: Development files for %{name}-gobject
101 Group: Development/Libraries
103 Requires: %{name}-libs-gobject = %{version}-%{release}
105 %description libs-gobject-devel
106 This package contains development files for a GObject based library
107 for LightDM clients to use to interface with LightDM.
110 Summary: LightDM Qt4 client library
112 Obsoletes: lightdm-libs-qt
113 Conflicts: lightdm-libs < 1.7.0-0.6
115 %description libs-qt4
116 This package contains a Qt4 based library for LightDM clients to use
117 to interface with LightDM.
119 %package libs-qt4-devel
120 Summary: Development files for %{name}-qt4
121 Group: Development/Libraries
122 Requires: %{name}-libs-qt4 = %{version}-%{release}
123 Obsoletes: lightdm-libs-qt-devel
125 %description libs-qt4-devel
126 This package contains development files for a Qt4 based library for
127 LightDM clients to use to interface with LightDM.
130 Summary: LightDM Qt5 client library
133 %description libs-qt5
134 This package contains a Qt5 based library for LightDM clients to use
135 to interface with LightDM.
137 %package libs-qt5-devel
138 Summary: Development files for %{name}-qt5
139 Group: Development/Libraries
140 Requires: %{name}-libs-qt5 = %{version}-%{release}
142 %description libs-qt5-devel
143 This package contains development files for a Qt5 based library for
144 LightDM clients to use to interface with LightDM.
147 Summary: lightdm API documentation
149 %if "%{_rpmversion}" >= "5"
154 lightdm API documentation.
157 Summary: Init script for Lightdm
158 Summary(pl.UTF-8): Skrypt init dla Lightdm-a
159 Group: X11/Applications
160 Requires(post,preun): /sbin/chkconfig
161 Requires(post,postun): systemd-units >= 38
162 Requires: %{name} = %{version}-%{release}
163 Requires: rc-scripts >= 0.4.3.0
164 Requires: systemd-units >= 38
165 Obsoletes: lightdm-upstart < 1.7.12-6
168 Init script for Lightdm.
170 %description init -l pl.UTF-8
171 Skrypt init dla Lightdm-a.
173 %package -n bash-completion-lightdm
174 Summary: Bash completion for LightDM
175 Summary(pl.UTF-8): Bashowe uzupełnianie parametrów dla LightDM
176 Group: Applications/Shells
177 Requires: %{name} = %{version}-%{release}
178 Requires: bash-completion
179 %if "%{_rpmversion}" >= "5"
183 %description -n bash-completion-lightdm
184 Bash completion for LightDM.
186 %description -n bash-completion-lightdm -l pl.UTF-8
187 Bashowe uzupełnianie parametrów dla LightDM.
203 --disable-silent-rules \
206 --enable-liblightdm-gobject \
207 %{?with_qt4:--enable-liblightdm-qt} \
208 %{?with_qt5:--enable-liblightdm-qt5} \
209 --with-html-dir=%{_gtkdocdir} \
211 --with-greeter-session=lightdm-gtk-greeter \
212 --with-greeter-user=xdm
214 %{?with_tests:%{__make} check}
217 rm -rf $RPM_BUILD_ROOT
219 INSTALL='install -p' \
220 DESTDIR=$RPM_BUILD_ROOT
222 install -d $RPM_BUILD_ROOT/etc/{pam.d,security,rc.d/init.d,dbus-1/system.d} \
223 $RPM_BUILD_ROOT%{bashdir} \
224 $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name}.conf.d \
225 $RPM_BUILD_ROOT/home/services/xdm \
226 $RPM_BUILD_ROOT%{_datadir}/xgreeters \
227 $RPM_BUILD_ROOT%{_datadir}/%{name}/{remote-sessions,%{name}.conf.d} \
228 $RPM_BUILD_ROOT%{systemdunitdir} \
229 $RPM_BUILD_ROOT/var/lib/%{name}-data \
230 $RPM_BUILD_ROOT/var/{log,cache}/%{name}
232 install -d $RPM_BUILD_ROOT{/var/run/lightdm,%{systemdtmpfilesdir}}
233 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/lightdm.conf
236 install -p %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
237 ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.service
239 cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/%{name}
240 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/lightdm-autologin
241 cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/lightdm-greeter
242 touch $RPM_BUILD_ROOT/etc/security/blacklist.%{name}
244 # We don't ship AppAmor
245 rm -rv $RPM_BUILD_ROOT/etc/apparmor.d
247 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{lb,wae}
249 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/bash-completion
250 cp -p data/bash-completion/{dm-tool,lightdm} $RPM_BUILD_ROOT%{bashdir}
252 %find_lang %{name} --with-gnome
255 rm -rf $RPM_BUILD_ROOT
258 %groupadd -g 55 -r -f xdm
259 %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm
262 if [ "$1" = "0" ]; then
267 %post libs-gobject -p /sbin/ldconfig
268 %postun libs-gobject -p /sbin/ldconfig
270 %post libs-qt4 -p /sbin/ldconfig
271 %postun libs-qt4 -p /sbin/ldconfig
273 %post libs-qt5 -p /sbin/ldconfig
274 %postun libs-qt5 -p /sbin/ldconfig
277 /sbin/chkconfig --add %{name}
278 %service -n %{name} restart
282 if [ "$1" = "0" ]; then
283 /sbin/chkconfig --del %{name}
284 %service %{name} stop
290 %files -f %{name}.lang
291 %defattr(644,root,root,755)
293 %dir %{_sysconfdir}/%{name}
294 %dir %{_sysconfdir}/%{name}/%{name}.conf.d
295 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf
296 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/keys.conf
297 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/users.conf
298 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/%{name}
299 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/lightdm-autologin
300 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/lightdm-greeter
301 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.%{name}
302 /etc/dbus-1/system.d/org.freedesktop.DisplayManager.conf
303 %attr(755,root,root) %{_bindir}/dm-tool
304 %attr(755,root,root) %{_sbindir}/lightdm
305 %attr(755,root,root) %{_libdir}/lightdm-guest-session
306 %{_libdir}/girepository-1.0/LightDM-1.typelib
307 %{systemdtmpfilesdir}/lightdm.conf
308 %dir %{_datadir}/xgreeters
309 %dir %{_datadir}/%{name}
310 %dir %{_datadir}/%{name}/remote-sessions
311 %dir %{_datadir}/%{name}/%{name}.conf.d
312 %{_mandir}/man1/dm-tool.1*
313 %{_mandir}/man1/%{name}.1*
314 %dir %attr(710,root,root) /var/cache/%{name}
315 %dir %attr(710,root,root) /var/log/%{name}
316 %dir %attr(770,root,root) /var/run/%{name}
317 %dir %attr(700,root,root) /var/lib/%{name}-data
318 %dir %attr(750,xdm,xdm) /home/services/xdm
321 %defattr(644,root,root,755)
322 %attr(755,root,root) %{_libdir}/liblightdm-gobject-1.so.*.*.*
323 %attr(755,root,root) %ghost %{_libdir}/liblightdm-gobject-1.so.0
327 %defattr(644,root,root,755)
328 %attr(755,root,root) %{_libdir}/liblightdm-qt-3.so.*.*.*
329 %attr(755,root,root) %ghost %{_libdir}/liblightdm-qt-3.so.0
331 %files libs-qt4-devel
332 %defattr(644,root,root,755)
333 %{_libdir}/liblightdm-qt-3.la
334 %attr(755,root,root) %{_libdir}/liblightdm-qt-3.so
335 %{_includedir}/lightdm-qt-3
336 %{_pkgconfigdir}/liblightdm-qt-3.pc
341 %defattr(644,root,root,755)
342 %attr(755,root,root) %{_libdir}/liblightdm-qt5-3.so.*.*.*
343 %attr(755,root,root) %ghost %{_libdir}/liblightdm-qt5-3.so.0
345 %files libs-qt5-devel
346 %defattr(644,root,root,755)
347 %{_libdir}/liblightdm-qt5-3.la
348 %attr(755,root,root) %{_libdir}/liblightdm-qt5-3.so
349 %{_includedir}/lightdm-qt5-3
350 %{_pkgconfigdir}/liblightdm-qt5-3.pc
353 %files libs-gobject-devel
354 %defattr(644,root,root,755)
355 %{_datadir}/gir-1.0/LightDM-1.gir
356 %{_includedir}/lightdm-gobject-1
357 %{_pkgconfigdir}/liblightdm-gobject-1.pc
358 %{_libdir}/liblightdm-gobject-1.la
359 %attr(755,root,root) %{_libdir}/liblightdm-gobject-1.so
361 %{_datadir}/vala/vapi/liblightdm-gobject-1.vapi
364 %defattr(644,root,root,755)
365 %{_gtkdocdir}/lightdm-gobject-1
368 %defattr(644,root,root,755)
369 %attr(754,root,root) /etc/rc.d/init.d/%{name}
370 %{systemdunitdir}/%{name}.service
372 %files -n bash-completion-lightdm
373 %defattr(644,root,root,755)