%global forgeurl https://github.com/javalsai/lidm Version: 1.2.3 %forgemeta Name: lidm Release: %{autorelease} Summary: A really light unix login manager made in C License: GPL-3.0-only URL: %{forgeurl} Source0: %{forgesource} BuildRequires: gcc BuildRequires: make BuildRequires: pam-devel BuildRequires: pam_yubico BuildRequires: systemd-rpm-macros Requires: pam_yubico %description LiDM is a really light unix login manager made in C, highly customizable and held together by hopes and prayers. LiDM is like any Display Manager you have seen but without using any X.org graphics at all. Instead being a purely text based interface inside your terminal/TTY. Features: - Simple as C, meant to depend only on standard libc and basic unix system headers. - Fully customizable: ALL strings, colors (with its ANSI keys) and most behavior. - Xorg* and wayland sessions, while supporting the default user shell (if enabled in config) - Init agnostinc (systemd, dinit, runit, openrc and s6). - Supports fido yubikeys (via pam_u2f). %prep %forgesetup %build %make_build %install %make_install install -Dm644 assets/services/systemd.service %{buildroot}%{_unitdir}/lidm.service install -Dm644 themes/cherry.ini %{buildroot}%{_datadir}/lidm/themes/cherry.ini install -Dm644 themes/default.ini %{buildroot}%{_datadir}/lidm/themes/default.ini install -Dm644 themes/kanagawa-dragon.ini %{buildroot}%{_datadir}/lidm/themes/kanagawa-dragon.ini install -Dm644 themes/kanagawa-wave.ini %{buildroot}%{_datadir}/lidm/themes/kanagawa-wave.ini install -Dm644 themes/minimal.ini %{buildroot}%{_datadir}/lidm/themes/minimal.ini install -Dm644 themes/nature.ini %{buildroot}%{_datadir}/lidm/themes/nature.ini install -Dm644 themes/nord.ini %{buildroot}%{_datadir}/lidm/themes/nord.ini install -Dm644 themes/nothing.ini %{buildroot}%{_datadir}/lidm/themes/nothing.ini install -Dm644 themes/old-blue.ini %{buildroot}%{_datadir}/lidm/themes/old-blue.ini install -Dm644 themes/tasteless.ini %{buildroot}%{_datadir}/lidm/themes/tasteless.ini %preun %systemd_preun lidm.service %postun %systemd_postun lidm.service %files %license LICENSE %doc README.md %{_bindir}/lidm %{_mandir}/man1/lidm.1* %{_mandir}/man5/lidm-config.5* %{_sysconfdir}/lidm.ini /%{_unitdir}/lidm.service %dir %{_datadir}/lidm %dir %{_datadir}/lidm/themes %{_datadir}/lidm/themes/*.ini %changelog %autochangelog