dada2e7
Name:           lightdm-autologin-greeter
dada2e7
Version:        1.0
4e6a138
Release:        5%{?dist}
dada2e7
Summary:        Autologin greeter using LightDM
dada2e7
dada2e7
License:        MIT
dada2e7
URL:            https://github.com/spanezz/lightdm-autologin-greeter
dada2e7
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
dada2e7
dada2e7
Source1:        %{name}.README.distro
dada2e7
dada2e7
%if 0%{?fedora} || 0%{?rhel} >= 8
dada2e7
BuildRequires:  python3-devel
dada2e7
Requires:       python3-gobject
dada2e7
%else
dada2e7
BuildRequires:  python2-devel
dada2e7
Requires:       pygobject3
dada2e7
%endif
dada2e7
Requires:       lightdm-gobject
dada2e7
dada2e7
# LightDM is required for this to be useful
dada2e7
Requires:       lightdm
dada2e7
4e6a138
# All LightDM greeters provide this
4e6a138
Provides:       lightdm-greeter = 1.2
4e6a138
dada2e7
BuildArch:      noarch
dada2e7
dada2e7
%description
dada2e7
%{name} is a minimal greeter for LightDM that has
dada2e7
the same autologin behavior as nodm, but being based on LightDM,
dada2e7
it stays on top of modern display manager requirements.
dada2e7
dada2e7
The difference between LightDM's built-in autologin and this greeter,
dada2e7
is the behavior in case of 0-seconds autologin delay. When LightDM
dada2e7
automatically logs in with no delay, upon logout it will show the
dada2e7
login window again. The intent is that if the default user logged out,
dada2e7
they probably intend to log in again as a different user.
dada2e7
dada2e7
In the case of managing a kiosk-like setup, if the X session quits, then
dada2e7
the desired behavior is to just start it again.
dada2e7
dada2e7
LightDM with an autologin timeout of 1 or more seconds would work,
dada2e7
but one sees the login dialog window appear and disappear
dada2e7
on-screen at each system startup.
dada2e7
dada2e7
With this greeter, the X session starts right away, and is restarted
dada2e7
if it quits, without any flicker of a login dialog box.
dada2e7
dada2e7
If one is not setting up a kiosk-like setup, it's very likely that the
dada2e7
default autologin behavior of LightDM is the way to go, and that this
dada2e7
greeter is not needed.
dada2e7
dada2e7
dada2e7
dada2e7
%prep
dada2e7
%autosetup
dada2e7
# Install Source1 into source tree
cbfffe1
cp %{S:1} README.distro
dada2e7
dada2e7
%build
dada2e7
# Nothing to build
dada2e7
dada2e7
dada2e7
%install
dada2e7
mkdir -p %{buildroot}%{_prefix}
dada2e7
dada2e7
cp -a bin %{buildroot}%{_prefix}
dada2e7
cp -a share %{buildroot}%{_prefix}
dada2e7
dada2e7
%if 0%{?fedora} || 0%{?rhel} >= 8
dada2e7
sed -i "s:#!/usr/bin/python:#!%{__python3}:" %{buildroot}%{_bindir}/%{name}
dada2e7
%else
dada2e7
sed -i "s:#!/usr/bin/python:#!%{__python2}:" %{buildroot}%{_bindir}/%{name}
dada2e7
%endif
dada2e7
dada2e7
dada2e7
%files
dada2e7
%license LICENSE
cbfffe1
%doc README.md README.distro
dada2e7
%{_bindir}/%{name}
dada2e7
%{_datadir}/xgreeters/%{name}.desktop
dada2e7
%{_datadir}/lightdm/lightdm.conf.d/60-%{name}.conf
dada2e7
dada2e7
dada2e7
%changelog
4e6a138
* Tue Aug 22 2017 Neal Gompa <ngompa13@gmail.com> - 1.0-5
4e6a138
- Revert removing lightdm-greeter Provides
4e6a138
4ee5093
* Mon Aug 21 2017 Leigh Scott <leigh123linux@googlemail.com> - 1.0-4
4ee5093
- Remove provides lightdm-greeter as it is matched first on netinstall (rhbz #1481192)
4ee5093
851c3ee
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-3
851c3ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
851c3ee
cbfffe1
* Tue May 23 2017 Neal Gompa <ngompa13@gmail.com> - 1.0-2
cbfffe1
- Rename distro readme file to README.distro on install
cbfffe1
dada2e7
* Mon May 15 2017 Neal Gompa <ngompa13@gmail.com> - 1.0-1
dada2e7
- Update to 1.0
dada2e7
dada2e7
* Mon May 15 2017 Neal Gompa <ngompa13@gmail.com> - 0-0.git20170515.22021f3
dada2e7
- Initial packaging