## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global forgeurl https://codeberg.org/fairyglade/ly %global tag v1.2.0 %forgemeta Name: lydm Version: 1.2.0 Release: %autorelease Summary: TUI display manager License: WTFPL URL: %{forgeurl} Source0: %{forgesource} # Zig dependencies Source1: https://github.com/Hejsil/zig-clap/archive/refs/tags/0.11.0.tar.gz Source2: https://github.com/AnErrupTion/zigini/archive/96ca1d9f1a7ec741f07ceb104dae2b3a7bdfd48a.tar.gz Source3: https://github.com/AnErrupTion/ini/archive/ac6e656157b2ac6c98392283a139b47c44a85d54.tar.gz Source4: https://github.com/AnErrupTion/termbox2/archive/290ac6b8225aacfd16851224682b851b65fcb918.tar.gz %global _lydm_zig_options -Dname="%{name}" -Ddest_directory="%{buildroot}" BuildRequires: zig-rpm-macros BuildRequires: zig >= 0.15 BuildRequires: pkgconfig(pam) BuildRequires: rpm_macro(_pam_confdir) BuildRequires: pkgconfig(xcb) BuildRequires: systemd-rpm-macros %{?systemd_ordering} %description Ly is a lightweight TUI (ncurses-like) display manager for Linux and BSD, designed with portability in mind (e.g. it does not require systemd to run). %prep %forgeautosetup %zig_prep %zig_fetch %{S:1} %zig_fetch %{S:2} %zig_fetch %{S:3} %zig_fetch %{S:4} %build %zig_build %{_lydm_zig_options} %install DESTDIR="%{buildroot}" %zig_build %{_lydm_zig_options} installexe %{?_zig_install_options} # ly build process installs binary with default name rm -f "%{buildroot}/usr/bin/ly" %check %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun %{name}.service %files %license license.md %doc readme.md %{_bindir}/%{name} %config(noreplace) %{_sysconfdir}/ly %config(noreplace) %{_pam_confdir}/ly %{_unitdir}/ly.service %changelog ## START: Generated by rpmautospec * Sun Nov 02 2025 John Doe - 1.2.0-1 - Uncommitted changes ## END: Generated by rpmautospec