1 Summary: A lightweight display manager
2 Summary(hu.UTF-8): Egy könnyűsúlyú bejelentkezéskezelő
6 # library/bindings are LGPLv2 or LGPLv3, the rest GPLv3+
7 License: (LGPLv2 or LGPLv3) and GPLv3+
8 Group: X11/Applications
9 Source0: https://launchpad.net/lightdm/1.7/%{version}/+download/%{name}-%{version}.tar.xz
10 # Source0-md5: f17a8a5203f32f79a231e52f7e1a2d85
12 Source2: %{name}-autologin.pamd
13 Source3: %{name}-greeter.pamd
16 Patch1: upstart-path.patch
17 Patch2: %{name}-nodaemon_option.patch
18 URL: http://www.freedesktop.org/wiki/Software/LightDM
19 BuildRequires: QtCore-devel
20 BuildRequires: QtDBus-devel
21 BuildRequires: QtGui-devel
22 BuildRequires: autoconf
23 BuildRequires: docbook-dtd412-xml
24 BuildRequires: gettext-devel
25 BuildRequires: glib2-devel >= 1:2.30
26 BuildRequires: gnome-common
27 BuildRequires: gnome-doc-utils
28 BuildRequires: gtk+2-devel >= 2:2.24
29 BuildRequires: gtk-doc
30 BuildRequires: intltool
31 BuildRequires: libgcrypt-devel
32 BuildRequires: libtool
33 BuildRequires: libxklavier-devel
34 BuildRequires: pam-devel
35 BuildRequires: perl-XML-Parser
36 BuildRequires: perl-base
37 BuildRequires: pkgconfig
38 BuildRequires: qt4-build
39 BuildRequires: rpmbuild(macros) >= 1.690
40 BuildRequires: tar >= 1:1.22
43 BuildRequires: yelp-tools
46 Requires: lightdm-greeter
47 Requires: xinitrc-ng >= 1.1-2
51 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54 An X display manager that:
55 - Has a lightweight codebase
56 - Is standards compliant (PAM, ConsoleKit, etc)
57 - Has a well defined interface between the server and user interface
58 - Fully themeable (easiest with the webkit interface)
59 - Cross-desktop (greeters can be written in any toolkit)
61 %description -l hu.UTF-8
62 Egy X bejelentkezéskezelő, amely:
63 - pehelysúlyú kóddal rendelkezik
64 - követi a standardokat (PAM, ConsoleKit, stb.)
65 - jól-definiált felület a szerver és a felhasználói felület között
66 - teljesen témázható (a legkönnyebb a webkit felülettel)
67 - desktop-független (üdvözlők bármilyen eszközkészlettel írhatók)
70 Summary: LightDM GObject client library
72 Obsoletes: lightdm-libs < 1.7.0-0.6
74 %description libs-gobject
75 This package contains a GObject based library for LightDM clients to
76 use to interface with LightDM.
78 %package libs-gobject-devel
79 Summary: Development files for %{name}-gobject
80 Group: Development/Libraries
82 Requires: %{name}-libs-gobject = %{version}-%{release}
84 %description libs-gobject-devel
85 This package contains development files for a GObject based library
86 for LightDM clients to use to interface with LightDM.
89 Summary: LightDM Qt client library
91 Conflicts: lightdm-libs < 1.7.0-0.6
94 This package contains a Qt based library for LightDM clients to use to
95 interface with LightDM.
97 %package libs-qt-devel
98 Summary: Development files for %{name}-qt
99 Group: Development/Libraries
100 Requires: %{name}-libs-qt = %{version}-%{release}
102 %description libs-qt-devel
103 This package contains development files for a Qt based library for
104 LightDM clients to use to interface with LightDM.
107 Summary: lightdm API documentation
111 lightdm API documentation.
114 Summary: Init script for Lightdm
115 Summary(pl.UTF-8): Skrypt init dla Lightdm-a
116 Group: X11/Applications
117 Requires(post,preun): /sbin/chkconfig
118 Requires(post,postun): systemd-units >= 38
119 Requires: %{name} = %{version}-%{release}
120 Requires: rc-scripts >= 0.4.3.0
121 Requires: systemd-units >= 38
122 Obsoletes: lightdm-upstart < 1.7.12-6
123 Conflicts: upstart < 0.6
126 Init script for Lightdm.
128 %description init -l pl.UTF-8
129 Skrypt init dla Lightdm-a.
145 --disable-silent-rules \
148 --enable-liblightdm-qt \
149 --with-html-dir=%{_gtkdocdir} \
151 --with-greeter-session=lightdm-gtk-greeter \
152 --with-greeter-user=xdm
156 rm -rf $RPM_BUILD_ROOT
158 DESTDIR=$RPM_BUILD_ROOT
160 install -d $RPM_BUILD_ROOT/etc/{pam.d,security,init,rc.d/init.d,dbus-1/system.d} \
161 $RPM_BUILD_ROOT/home/services/xdm \
162 $RPM_BUILD_ROOT%{_datadir}/xgreeters \
163 $RPM_BUILD_ROOT%{_datadir}/lightdm/remote-sessions \
164 $RPM_BUILD_ROOT%{systemdunitdir} \
165 $RPM_BUILD_ROOT/var/{log,cache}/lightdm
168 cp -p data/init/%{name}.conf $RPM_BUILD_ROOT/etc/init
169 install -p %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/lightdm
170 ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/lightdm.service
172 cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/lightdm
173 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/lightdm-autologin
174 cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/lightdm-greeter
175 touch $RPM_BUILD_ROOT/etc/security/blacklist.lightdm
177 # We don't ship AppAmor
178 rm -rv $RPM_BUILD_ROOT/etc/apparmor.d
180 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{lb,wae}
182 %find_lang %{name} --with-gnome
185 rm -rf $RPM_BUILD_ROOT
188 %groupadd -g 55 -r -f xdm
189 %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm
192 if [ "$1" = "0" ]; then
197 %post libs-gobject -p /sbin/ldconfig
198 %postun libs-gobject -p /sbin/ldconfig
200 %post libs-qt -p /sbin/ldconfig
201 %postun libs-qt -p /sbin/ldconfig
204 /sbin/chkconfig --add %{name}
205 %service -n %{name} restart
206 %upstart_post %{name}
210 if [ "$1" = "0" ]; then
211 /sbin/chkconfig --del %{name}
212 %service %{name} stop
217 %upstart_postun %{name}
219 %files -f %{name}.lang
220 %defattr(644,root,root,755)
222 %dir %{_sysconfdir}/%{name}
223 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf
224 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/keys.conf
225 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/users.conf
226 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/lightdm
227 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/lightdm-autologin
228 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/lightdm-greeter
229 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.lightdm
230 /etc/dbus-1/system.d/org.freedesktop.DisplayManager.conf
231 %attr(755,root,root) %{_bindir}/dm-tool
232 %attr(755,root,root) %{_sbindir}/lightdm
233 %dir %{_libdir}/%{name}
234 %attr(755,root,root) %{_libdir}/%{name}/gdmflexiserver
235 %attr(755,root,root) %{_libdir}/%{name}/lightdm-guest-session-wrapper
236 %attr(755,root,root) %{_libdir}/%{name}/lightdm-set-defaults
237 %{_libdir}/girepository-1.0/LightDM-1.typelib
238 %dir %{_datadir}/xgreeters
239 %dir %{_datadir}/%{name}
240 %dir %{_datadir}/%{name}/remote-sessions
241 %{_mandir}/man1/lightdm*
242 %dir %attr(710,root,root) /var/cache/lightdm
243 %dir %attr(710,root,root) /var/log/lightdm
244 %dir %attr(750,xdm,xdm) /home/services/xdm
247 %defattr(644,root,root,755)
248 %attr(755,root,root) %{_libdir}/liblightdm-gobject-1.so.*.*.*
249 %attr(755,root,root) %ghost %{_libdir}/liblightdm-gobject-1.so.0
252 %defattr(644,root,root,755)
253 %attr(755,root,root) %{_libdir}/liblightdm-qt-3.so.*.*.*
254 %attr(755,root,root) %ghost %{_libdir}/liblightdm-qt-3.so.0
256 %files libs-gobject-devel
257 %defattr(644,root,root,755)
258 %{_datadir}/gir-1.0/LightDM-1.gir
259 %{_includedir}/lightdm-gobject-1
260 %{_pkgconfigdir}/liblightdm-gobject-1.pc
261 %{_libdir}/liblightdm-gobject-1.la
262 %attr(755,root,root) %{_libdir}/liblightdm-gobject-1.so
264 %{_datadir}/vala/vapi/liblightdm-gobject-1.vapi
267 %defattr(644,root,root,755)
268 %{_libdir}/liblightdm-qt-3.la
269 %attr(755,root,root) %{_libdir}/liblightdm-qt-3.so
270 %{_includedir}/lightdm-qt-3
271 %{_pkgconfigdir}/liblightdm-qt-3.pc
274 %defattr(644,root,root,755)
275 %{_gtkdocdir}/lightdm-gobject-1
278 %defattr(644,root,root,755)
279 %attr(754,root,root) /etc/rc.d/init.d/%{name}
280 %config(noreplace) %verify(not md5 mtime size) /etc/init/%{name}.conf
281 %{systemdunitdir}/lightdm.service