lxdm/lxdm.spec

189 lines
5.8 KiB
RPMSpec
Raw Permalink Normal View History

Name: lxdm
Version: 0.4.1
Release: 10mamba
Summary: Login manager for the Lightweight X11 Desktop Environment
Group: Graphical Desktop/Applications/Environment
Vendor: openmamba
Distribution: openmamba
Packager: Fabio Giani <fabio.giani@gmail.com>
URL: http://www.lxde.org/
Source: http://downloads.sourceforge.net/project/lxde/lxdm/LXDM%20%{version}/lxdm-%{version}.tar.gz
Patch0: %{name}-0.3.0-Xsession-default-profile.patch
Patch1: %{name}-0.4.1-glib-2.32.patch
Patch2: lxdm-0.4.1-pam_console_remove.patch
Patch3: lxdm-0.4.1-active_vt_1.patch
Patch4: lxdm-0.4.1-Xorg-no-background.patch
Patch5: lxdm-0.4.1-disable-consolekit.patch
Patch6: lxdm-0.4.1-automake-1.14.patch
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-root
## AUTOBUILDREQ-BEGIN
BuildRequires: ConsoleKit-devel
BuildRequires: glibc-devel
BuildRequires: libatk-devel
BuildRequires: libcairo-devel
BuildRequires: libdbus-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libgtk2-devel
BuildRequires: libpango-devel
BuildRequires: libX11-devel
BuildRequires: libxcb-devel
BuildRequires: pam-devel
## AUTOBUILDREQ-END
%description
Login manager for the Lightweight X11 Desktop Environment.
%debug_package
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
# Remove pregenerated lxdm.conf to recreate with passed directories
# Fixes configuring for using /usr/local/libexec
rm -f data/lxdm.conf
%build
autoreconf -f -i
%configure \
--disable-consolekit
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
install -d %{buildroot}/lib/systemd/system
cat >%{buildroot}/lib/systemd/system/lxdm.service << _EOF
[Unit]
Description=LXDE Display Manager
Conflicts=getty@tty1.service
After=systemd-user-sessions.service getty@tty1.service
Conflicts=plymouth-quit.service
[Service]
ExecStart=/usr/sbin/lxdm
Restart=always
[Install]
Alias=display-manager.service
_EOF
rm -f %{buildroot}%{_sysconfdir}/lxdm/PreLogin
%find_lang %{name}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
if [ $1 -ge 1 ]; then
sed -i "s|# arg=/usr/bin/X.*|arg=/usr/bin/Xorg -background none -nolisten tcp|" \
%{_sysconfdir}/lxdm/lxdm.conf
/usr/sbin/alternatives --install \
%{_sbindir}/login_manager login_manager %{_sbindir}/lxdm 20
systemctl -q daemon-reload || true
systemctl -q enable lxdm.service || true
fi
exit 0
%postun
if [ "$1" = "0" ]; then
/usr/sbin/update-alternatives --remove login_manager %{_sbindir}/lxdm
systemctl -q disable lxdm.service || true
fi
exit 0
%posttrans
# runtime fix a configuration issue when upgrading from previous buggy releases
if [ $1 -ge 1 ]; then
sed -i "s|/usr/local/libexec/lxdm-greeter-gtk|%{_libexecdir}/lxdm-greeter-gtk|" %{_sysconfdir}/lxdm/lxdm.conf
fi
:
%files -f %{name}.lang
%defattr(-,root,root)
%{_sysconfdir}/lxdm/Xsession
%dir %{_sysconfdir}/lxdm
%config(noreplace) %{_sysconfdir}/lxdm/*
%{_sysconfdir}/pam.d/lxdm
%{_bindir}/lxdm-config
%{_sbindir}/lxdm
%{_sbindir}/lxdm-binary
%{_libexecdir}/lxdm-greeter-gdk
%{_libexecdir}/lxdm-greeter-gtk
%{_libexecdir}/lxdm-numlock
/lib/systemd/system/lxdm.service
%dir %{_datadir}/lxdm
%{_datadir}/lxdm/config.ui
%dir %{_datadir}/lxdm/themes
%dir %{_datadir}/lxdm/themes/Industrial
%{_datadir}/lxdm/themes/Industrial/*
/usr/share/lxdm/lxdm.glade
%doc AUTHORS COPYING
#README TODO
%changelog
* Mon Jun 30 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.1-10mamba
- rebuilt without ConsoleKit (added patch)
* Mon Jul 15 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.1-9mamba
- fix lxdm.service after fixing plymouth 0.8.8 for smooth transition
- lxdm.conf: run X as "Xorg -background none -nolisten tcp"
* Mon Jun 24 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.1-8mamba
- lxdm.service: remove plymouth from After list to allow smooth transition to X
* Sat May 25 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.1-7mamba
- systemd service file: add conflict with getty@tty1 to fix start on tty1
- patch default lxdm.conf with active_vt=1
* Sat May 25 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.1-6mamba
- really remove %{_sysconfdir}/lxfm/PreLogin
* Fri Apr 26 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.1-5mamba
- remove empty PreLogin template as a workaround for it blocking login (seen on r-pi)
- remove pam_console entry from pam configuration
* Fri Mar 22 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.1-4mamba
- provide and enable as systemd display-manager.service alias
* Sat Jul 28 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.1-3mamba
- added patch to fix 100% cpu hog after glib 2.32 update
* Sat Mar 31 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.1-2mamba
- fix wrong path /usr/local/libexec in lxdm.conf by making sure it is recreated using configure options
* Sat Nov 12 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.1-1mamba
- update to 0.4.1
* Tue Apr 19 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.0-3mamba
- modified Xsession startup file to read /etc/profile and /etc/xprofile
* Sun Jan 30 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.0-2mamba
- set as an alternative for login_manager
- build debug package
- fix attributes for /etc/lxdm/Xsession (was set as not executable 0644)
* Mon Dec 13 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.0-1mamba
- update to 0.3.0
* Tue Jun 22 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.0-3mamba
- fixed specfile name (must be the same as package name)
* Sat Jan 23 2010 Fabio Giani <fabio.giani@gmail.com> 0.1.0-2mamba
- group changed
* Fri Jan 15 2010 Fabio Giani <fabio.giani@gmail.com> 0.1.0-1mamba
- package created by autospec