%global tag v%{version} %global debug_package %{nil} Name: waylock Version: 1.6.0 Release: %autorelease Summary: Screen locker for Wayland compositors License: ISC URL: https://codeberg.org/ifreund/waylock Source0: %{url}/archive/%{tag}.tar.gz BuildRequires: zig >= 0.16 BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(wayland-scanner) BuildRequires: pkgconfig(wayland-protocols) BuildRequires: pkgconfig(xkbcommon) BuildRequires: pam-devel BuildRequires: scdoc %description waylock is a small screenlocker for Wayland compositors implementing the ext-session-lock-v1 protocol. %prep %autosetup -n %{name} %build %install DESTDIR=%{buildroot} zig build install \ --release=safe \ --prefix %{_prefix} \ --search-prefix %{_prefix} \ -Dpie=true %files %license LICENSE %{_bindir}/waylock %config(noreplace) %{_sysconfdir}/pam.d/waylock %{_mandir}/man1/waylock.1* %changelog %autochangelog