%global tag v1.3.1 %global pkg_version 1.3.1 Name: ly Version: %{pkg_version} Release: 1%{?dist} Summary: A lightweight TUI display manager for Linux and BSD License: WTFPL URL: https://github.com/fairyglade/ly Source0: %{url}/archive/%{tag}/%{name}-%{tag}.tar.gz BuildRequires: zig BuildRequires: systemd-devel BuildRequires: pam-devel BuildRequires: libxcb-devel Requires: pam Requires: xauth Requires: systemd %description Ly is a lightweight TUI (ncurses-like) display manager for Linux and BSD. It features a simple, clean interface and supports both X and Wayland. %prep %autosetup -n %{name}-%{pkg_version} %build # Set local cache directory to avoid network/permission issues in Mock/Copr export ZIG_GLOBAL_CACHE_DIR=$(pwd)/.zig-cache zig build -Doptimize=ReleaseSafe -Dinit_system=systemd --summary all %install export ZIG_GLOBAL_CACHE_DIR=$(pwd)/.zig-cache # Zig's build system handles creating directories and placing files # We pass DESTDIR to redirect the install from /usr to the buildroot DESTDIR=%{buildroot} zig build install --prefix %{_prefix} -Dinit_system=systemd %post %systemd_post ly@.service %preun %systemd_preun ly@.service %postun %systemd_postun_with_restart ly@.service %files %license license.md %doc readme.md %{_bindir}/ly %dir %{_sysconfdir}/ly %config(noreplace) %{_sysconfdir}/ly/config.ini %{_unitdir}/ly@.service %{_datadir}/ly/ %changelog * Sat Jan 31 2026 Your Name - 1.3.1-1 - Updated to version 1.3.1 - Switched to Zig-native installation (fixes missing res/ly.service error) - Fixed file casing for readme.md and license.md