File web-greeter.spec of Package web-greeter
#
# spec file for package web-greeter
#
# Copyright © 2016-2017 Antergos Developers <dev@antergos.com>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://github.com/antergos/web-greeter/issues
#
Name: web-greeter
Version: 3.0.0rc2
Release: 0
Summary: A modern, visually appealing greeter for LightDM
Group: System/X11/Displaymanagers
License: GPL-3.0+
URL: http://github.com/antergos/web-greeter
Source: https://github.com/Antergos/web-greeter/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: lightdm-gtk-greeter
BuildRequires: AppStream
BuildRequires: python3-whither
BuildRequires: python3-qt5
BuildRequires: zip
Requires: python3-gobject
Requires: liblightdm-gobject-1-0
Requires: python3-whither
Requires: lightdm
Requires: accountsservice
Requires(post): /usr/sbin/update-alternatives
Requires(postun): /usr/sbin/update-alternatives
Provides: lightdm-greeter
%description
Web Greeter for LightDM utilizes themes built with HTML/CSS/JavaScript for it's login screen.
Web Greeter themes provide modern, visually appealing, and feature-rich
login screens. Two themes are included by default. There is also a growing number of
3rd-Party themes available online.
%prep
%setup -q -n %{name}-%{version}
%build
%install
rm -rf themes/default/.tx
make DESTDIR=%{buildroot} PREFIX=%{_prefix} install
mkdir -p %{buildroot}%{_sysconfdir}/alternatives/
touch %{buildroot}%{_sysconfdir}/alternatives/lightdm-default-greeter.desktop
ln -s %{_sysconfdir}/alternatives/lightdm-default-greeter.desktop \
%{buildroot}%{_datadir}/xgreeters/lightdm-default-greeter.desktop
%post
update-alternatives --install \
%{_datadir}/xgreeters/lightdm-default-greeter.desktop \
lightdm-default-greeter.desktop \
%{_datadir}/xgreeters/web-greeter.desktop \
20
%postun
if [ "$1" = 0 ]; then
update-alternatives --remove \
lightdm-default-greeter.desktop \
%{_datadir}/xgreeters/web-greeter.desktop
fi
%files
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/lightdm/%{name}.yml
%{_sysconfdir}/lightdm/Xgreeter
%{_bindir}/%name
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1.gz
%{_datadir}/metainfo/**
%{_datadir}/xgreeters/*.desktop
%ghost %attr(0644,root,root) %{_sysconfdir}/alternatives/lightdm-default-greeter.desktop
%ghost %attr(0644,root,root) %{_sysconfdir}/xdg/lightdm/lightdm.conf.d/90-greeter-wrapper.conf
%changelog