Name: lightdm Summary: Lightweight Display Manager Version: 1.2.2 Release: 11%{?dist} License: GPLv2+ URL: http://www.freedesktop.org/wiki/Software/LightDM Source0: https://launchpad.net/lightdm/1.2/%{version}/+download/lightdm-%{version}.tar.gz Source1: lightdm.pam # this one probably needs love -- rex Source2: lightdm-autologin.pam Source3: lightdm-tmpfiles.conf Patch2: lightdm-lock-screen-before-switch.patch ## Downstream patches: Patch11: lightdm-1.2.2-fedora_config.patch # hack in support for --nodaemon option Patch12: lightdm-1.2.2-nodaemon_option.patch BuildRequires: automake libtool BuildRequires: gettext BuildRequires: gnome-common BuildRequires: gtk-doc BuildRequires: intltool BuildRequires: pam-devel BuildRequires: pkgconfig(dbus-glib-1) BuildRequires: pkgconfig(gio-2.0) >= 2.26 BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gmodule-export-2.0) BuildRequires: pkgconfig(gobject-2.0) BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.9.5 BuildRequires: pkgconfig(libxklavier) BuildRequires: pkgconfig(QtCore) BuildRequires: pkgconfig(QtDBus) BuildRequires: pkgconfig(QtGui) BuildRequires: pkgconfig(QtNetwork) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xcb) BuildRequires: pkgconfig(xdmcp) BuildRequires: vala Requires: %{name}-gobject%{?_isa} = %{version}-%{release} Requires: accountsservice ## this seems to still be a hard-requirement for now, at least ## until support for systemd restart/shutdown is implemented #if 0%{?fedora} < 17 Requires: ConsoleKit #endif Requires: dbus-x11 # aka /sbin/shutdown, and friends Requires: systemd Requires: xorg-x11-xinit # beware of bootstrapping -- rex # leaving this here, means greeters will have to require lightdm too, # instead of relying on -gobject, -qt to pull it in Requires: lightdm-greeter # needed for anaconda to boot into runlevel 5 after install Provides: service(graphical-login) = lightdm %description LightDM is an X display manager that: * Has a lightweight codebase * Is standards compliant (PAM, ConsoleKit, etc) * Has a well defined interface between the server and user interface * Fully themeable (easiest with the webkit interface) * Cross-desktop (greeters can be written in any toolkit) %package gobject Summary: LightDM GObject client library # omit base package, to allow for easier bootstrapping # requires greeters to manually # Requires: lightdm #Requires: %{name} = %{version}-%{release} %description gobject This package contains a GObject based library for LightDM clients to use to interface with LightDM. %package qt Summary: LightDM QT client library # see comment in -gobject above #Requires: %{name} = %{version}-%{release} %description qt This package contains a QT based library for LightDM clients to use to interface with LightDM. # make split -gobject/-qt -devel's ? meh, maybe later -- rex %package devel Summary: Development files for LightDM Requires: %{name}-gobject%{?_isa} = %{version}-%{release} Requires: %{name}-qt%{?_isa} = %{version}-%{release} %description devel This package contains libraries, header files and documentation for developing greeters for LightDM. %prep %setup -q %patch2 -p1 -b .lock-screen %patch11 -p1 -b .fedora_config %patch12 -p1 -b .nodaemon_option # AUTHORS is (mostly) empty, let's fix this echo "Robert Ancell " >> AUTHORS # nuke rpath, among other things autoreconf -f -i %build %configure \ --disable-static \ --enable-gtk-doc \ --enable-introspection \ --with-greeter-user=lightdm \ --with-greeter-session=lightdm-kde-greeter make %{?_smp_mflags} V=1 %install make install DESTDIR=%{buildroot} INSTALL='install -p' find %{buildroot} -name '*.la' -exec rm -fv {} ';' # We don't ship AppAmor rm -rfv %{buildroot}%{_sysconfdir}/apparmor.d/ # install pam file install -Dpm 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/lightdm install -Dpm 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pam.d/lightdm-autologin install -Dpm 644 %{SOURCE3} %{buildroot}%{_prefix}/lib/tmpfiles.d/lightdm.conf # We need to own these #mkdir -p %{buildroot}%{_localstatedir}/cache/%{name}/{authority,dmrc} mkdir -p %{buildroot}%{_localstatedir}/cache/%{name}/ mkdir -p %{buildroot}%{_localstatedir}/run/%{name}/authority mkdir -p %{buildroot}%{_localstatedir}/log/%{name} mkdir -p %{buildroot}%{_localstatedir}/lib/%{name} %find_lang %{name} %pre /usr/sbin/useradd -M -u 43 -d /var/log/lightdm -s /sbin/nologin -r lightdm > /dev/null 2>&1 #/usr/sbin/usermod -d /var/log/lightdm -s /sbin/nologin lightdm >/dev/null 2>&1 ## ignore errors, as we can't disambiguate between lightdm already existed ## and couldn't create account with the current adduser. exit 0 %files -f %{name}.lang %doc AUTHORS COPYING NEWS README %{_sysconfdir}/dbus-1/system.d/org.freedesktop.DisplayManager.conf %config(noreplace) %{_sysconfdir}/init/lightdm.conf %config(noreplace) %{_sysconfdir}/pam.d/lightdm* %dir %{_sysconfdir}/lightdm/ %config(noreplace) %{_sysconfdir}/lightdm/keys.conf %config(noreplace) %{_sysconfdir}/lightdm/lightdm.conf %config(noreplace) %{_sysconfdir}/lightdm/users.conf %{_bindir}/dm-tool %{_sbindir}/lightdm %{_libexecdir}/lightdm/ %{_libdir}/girepository-1.0/LightDM-1.typelib %{_mandir}/man*/lightdm.*.* %dir %attr(1775,lightdm,lightdm) %{_localstatedir}/cache/lightdm/ # because of systemd %{_prefix}/lib/tmpfiles.d/lightdm.conf %ghost %dir %{_localstatedir}/run/lightdm %dir %attr(1770,lightdm,lightdm) %{_localstatedir}/lib/lightdm/ %dir %attr(1770,lightdm,lightdm) %{_localstatedir}/log/lightdm/ %post gobject -p /sbin/ldconfig %postun gobject -p /sbin/ldconfig %files gobject %{_libdir}/liblightdm-gobject-1.so.* %post qt -p /sbin/ldconfig %postun qt -p /sbin/ldconfig %files qt %{_libdir}/liblightdm-qt-2.so.* %files devel %doc %{_datadir}/gtk-doc/html/lightdm-gobject-1/ %{_includedir}/lightdm-gobject-1/ %{_includedir}/lightdm-qt-2/ %{_libdir}/liblightdm-gobject-1.so %{_libdir}/liblightdm-qt-2.so %{_libdir}/pkgconfig/liblightdm-gobject-1.pc %{_libdir}/pkgconfig/liblightdm-qt-2.pc %{_datadir}/gir-1.0/LightDM-1.gir %{_datadir}/vala/vapi/liblightdm-gobject-1.vapi %changelog * Sun Jun 10 2012 Gregor Tätzner - 1.2.2-11 - Use alternatives to handle lightdm-greeter configuration * Mon May 14 2012 Rex Dieter 1.2.2-10 - move /etc/tmpfiles.d/* => /usr/lib/tempfiles.d/ * Wed May 09 2012 Rex Dieter 1.2.2-9 - fix typo, Requires: accountsservice * Thu Apr 26 2012 Rex Dieter 1.2.2-8 - Requires: accountservice ConsoleKit systemd * Wed Apr 25 2012 Rex Dieter 1.2.2-7 - respin nodaemon_option patch * Wed Apr 25 2012 Rex Dieter 1.2.2-6 - Requires: xorg-x11-xinit - Requires: lightdm-greeter - -gobject,-qt: drop dep on base pkg (easier for bootstrapping) * Wed Apr 25 2012 Rex Dieter 1.2.2-5 - make sane default lightdm.conf for fedora - nodaemon_option.patch - Requires: xorg-x11-xinit * Wed Apr 25 2012 Rex Dieter 1.2.2-4 - update lightdm.pam - make /var/log/lightdm /var/lib/lightdm group-writable too * Wed Apr 25 2012 Rex Dieter 1.2.2-3 - omit useless %%post(un) scriptlets - %%pre: add lightdm user/group - BR: gnome-common - %%build: --with-greeter-session=lightdm-gtk-greeter (for now) * Tue Apr 24 2012 Rex Dieter 1.2.2-2 - pkgconfig-style deps * Tue Apr 24 2012 Rex Dieter 1.2.2-1 - 1.2.2 * Fri Feb 17 2012 Christoph Wickert - 1.1.3-1 - Update to 1.1.3 * Fri Feb 17 2012 Christoph Wickert - 1.0.6-1 - Update to 1.0.6 - Make build verbose * Sun Oct 02 2011 Christoph Wickert - 1.0.0-1 - Update to 1.0.0 * Wed Aug 17 2011 Christoph Wickert - 0.9.3-1 - Update to 0.9.3 * Fri Jul 08 2011 Christoph Wickert - 0.4.2-1 - Update to 0.4.2 * Sat Jul 02 2011 Christoph Wickert - 0.4.1-1 - Update to 0.4.1 * Sat Jun 25 2011 Christoph Wickert - 0.4.0-1 - Update to 0.4.0 * Fri Apr 22 2011 Christoph Wickert - 0.3.2-1 - Update to 0.3.2 * Sun Jan 23 2011 Christoph Wickert - 0.2.3-1 - Update to 0.2.3 * Sat Oct 23 2010 Christoph Wickert - 0.1.2-1 - Initial package