%bcond_without check %global debug_package %{nil} Name: awww-switch Version: %{?version}%{!?version:0.1.0} Release: %autorelease Summary: Periodically switches wallpapers via awww License: MIT URL: https://github.com/nanobytecz/awww-switch Source0: %{name}-%{version}.tar.gz Source1: vendor-%{name}-%{version}.tar.gz BuildRequires: golang Requires: awww %description awww-switch is a small Go daemon that periodically picks a random image from a configured directory and invokes awww img to switch the wallpaper. %prep %autosetup -n %{name}-%{version} -a1 %build export GOFLAGS="-mod=vendor -buildmode=pie -trimpath" go build -o %{name} ./cmd/%{name} %install install -Dpm0755 %{name} %{buildroot}%{_bindir}/%{name} install -Dpm0644 config.yaml.example %{buildroot}%{_pkgdocdir}/config.yaml.example %check %if %{with check} export GOFLAGS="-mod=vendor" go test ./... %endif %files %doc README.md %{_bindir}/%{name} %{_pkgdocdir}/config.yaml.example %changelog * Sun Apr 12 2026 Codex - 0.1.0-1 - Initial package