%define _commit 85a680178d1b310788272edd8fb6bf86304cf721 %define _commitish 85a6801 %define _gitver +2.g%{_commitish} Name: swayidle Version: 1.3 Release: 1%{?dist} Summary: Idle management daemon for Wayland Group: User Interface/X License: MIT URL: https://github.com/swaywm/swayidle Source0: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: meson BuildRequires: scdoc BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(wayland-protocols) >= 1.14 BuildRequires: pkgconfig(wayland-server) %description This is sway's idle management daemon, swayidle. It is compatible with any Wayland compositor which implements the KDE idle protocol. See the man page, swayidle(1), for instructions on configuring swayidle. %prep %autosetup -p 1 -n %{name}-%{version} %build export CFLAGS="%{optflags}" %meson %meson_build %install %meson_install %files %license LICENSE %doc README.md %{_bindir}/swayidle %{_datadir}/bash-completion/completions/swayidle %{_datadir}/fish/completions/swayidle.fish %{_datadir}/zsh/site-functions/_swayidle %{_mandir}/man1/swayidle.1.gz %changelog