Name: lidm Version: 1.2.3 Release: %autorelease Summary: LiDM Display Manager License: GPL-3.0-or-later URL: https://github.com/javalsai/lidm Source0: %{url}/archive/refs/tags/v%{version}.tar.gz BuildRequires: make BuildRequires: gcc BuildRequires: pam-devel Requires: pam %description LiDM is a lightweight display manager implemented in C. It uses PAM for authentication and provides themes, simple configuration, and multiple service options. This package contains the LiDM executable and data files. # --------------------------------------------------------------------- # lidm-service: systemd unit packaged separately # --------------------------------------------------------------------- %package service Summary: Systemd service file for LiDM Requires: %{name} = %{version}-%{release} Requires(post): systemd Requires(preun): systemd Requires(postun): systemd %description service Systemd service unit for the LiDM display manager. Installing this package adds the lidm.service unit but does not automatically enable it. # --------------------------------------------------------------------- %prep %autosetup -n %{name}-%{version} %build %make_build %install # Install main program + data %make_install # Install systemd service file (renamed to lidm.service) install -Dpm644 assets/services/systemd.service \ %{buildroot}%{_unitdir}/lidm.service # --------------------------------------------------------------------- %post service %systemd_post lidm.service %preun service %systemd_preun lidm.service %postun service %systemd_postun_with_restart lidm.service # --------------------------------------------------------------------- %files %license LICENSE %doc README.md /usr/bin/lidm /etc/lidm.ini /usr/share/man/man1/lidm.1.gz /usr/share/man/man5/lidm-config.5.gz # --------------------------------------------------------------------- %files service %{_unitdir}/lidm.service # --------------------------------------------------------------------- %changelog %autochangelog