# vim: syntax=spec Name: sway-audio-idle-inhibit-git Version: v0.2.0.0.git.60.8727d007 Release: 60%{?dist} Summary: Prevents swayidle from sleeping while any application is outputting or receiving audio. License: GPLv3 URL: https://github.com/ErikReider/SwayAudioIdleInhibit VCS: git+https://github.com/ErikReider/SwayAudioIdleInhibit#8727d007cea23c2dcccb3d233698d0bc83769120: Source: SwayAudioIdleInhibit-8727d007.tar.gz BuildRequires: meson >= 0.60.0 BuildRequires: git BuildRequires: gcc-c++ BuildRequires: pkgconfig(libpulse) BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(systemd) %{?systemd_requires} %description Prevents swayidle from sleeping while any application is outputting or receiving audio. Should work with all Wayland desktops that support the zwp_idle_inhibit_manager_v1 protocol but only tested in Sway This only works for Pulseaudio / Pipewire Pulse %prep %setup -T -b 0 -q -n SwayAudioIdleInhibit %build %meson %meson_build %install %meson_install %post %systemd_user_post sway-audio-idle-inhibit.service %preun %systemd_user_preun sway-audio-idle-inhibit.service %files %doc README.md %{_bindir}/sway-audio-idle-inhibit %{_userunitdir}/sway-audio-idle-inhibit.service %license LICENSE # Changelog will be empty until you make first annotated Git tag. %changelog