packages lxdm.spec
      Pages: < 1 >  DOWNLOAD      
Name:          lxdm
Version:       0.4.1
Release:       2mamba
Summary:       The "Lightweight X11 Desktop Environment" is an extremely fast-performing and energy-saving desktop environment. 
Group:         Graphical Desktop/Applications/Environment
Vendor:        openmamba
Distribution:  openmamba
Packager:      Fabio Giani <fabio.giani@...>
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
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: libglib-devel
BuildRequires: libgtk-devel
BuildRequires: libpango-devel
BuildRequires: libX11-devel
BuildRequires: libXmu-devel
BuildRequires: pam-devel
## AUTOBUILDREQ-END

%description
The "Lightweight X11 Desktop Environment" is an extremely fast-performing and energy-saving desktop environment. Maintained by an international community of developers, it comes with a beautiful interface, multi-language support, standard keyboard short cuts and additional features like tabbed file browsing. LXDE uses less CPU and less RAM than other environments. It is especially designed for cloud computers with low hardware specifications, such as, netbooks, mobile devices (e.g. MIDs) or older computers.

%debug_package

%prep
%setup -q
%patch0 -p1

# Remove pregenerated lxdm.conf to recreate with passed directories
# Fixes configuring for using /usr/local/libexec
rm -f data/lxdm.conf

%build
%configure
%make

%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall

%find_lang %{name}

%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

%post
if [ $1 -ge 1 ]; then
   /usr/sbin/alternatives --install \
      %{_sbindir}/login_manager login_manager %{_sbindir}/lxdm 20
fi
exit 0

%postun
if [ "$1" = "0" ]; then
   /usr/sbin/update-alternatives --remove login_manager %{_sbindir}/lxdm
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
%doc AUTHORS COPYING README TODO
%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
%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

%changelog
* Sat Mar 31 2012 Silvan Calarco <silvan.calarco@...> 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@...> 0.4.1-1mamba
- update to 0.4.1

* Tue Apr 19 2011 Silvan Calarco <silvan.calarco@...> 0.3.0-3mamba
- modified Xsession startup file to read /etc/profile and /etc/xprofile

* Sun Jan 30 2011 Silvan Calarco <silvan.calarco@...> 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@...> 0.3.0-1mamba
- update to 0.3.0

* Tue Jun 22 2010 Silvan Calarco <silvan.calarco@...> 0.1.0-3mamba
- fixed specfile name (must be the same as package name)

* Sat Jan 23 2010 Fabio Giani <fabio.giani@...> 0.1.0-2mamba
- group changed

* Fri Jan 15 2010 Fabio Giani <fabio.giani@...> 0.1.0-1mamba
- package created by autospec