## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 %bcond check 1 %bcond upgrade 1 Name: awww Version: 0.12.0 Release: %autorelease -p Summary: Efficient animated wallpaper daemon for Wayland SourceLicense: GPL-3.0-only # 0BSD OR MIT OR Apache-2.0 # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # BSD-2-Clause # BSD-2-Clause OR Apache-2.0 OR MIT # BSD-3-Clause # BSD-3-Clause OR Apache-2.0 # MIT # MIT OR Apache-2.0 # MIT OR Apache-2.0 OR Zlib # MIT OR Zlib OR Apache-2.0 # Unlicense OR MIT # Zlib # Zlib OR Apache-2.0 OR MIT License: %{shrink: GPL-3.0-only AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND (BSD-3-Clause OR Apache-2.0) AND MIT AND (MIT OR Apache-2.0 OR Zlib) AND (Unlicense OR MIT) AND Zlib } # LICENSE.dependencies contains a full license breakdown URL: https://codeberg.org/LGFae/%{name} Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: %{name}-%{version}-vendor.tar.zstd Source2: cargo-vendor.sh %if %{with upgrade} Source3: swww-compat-shim.sh %endif # cpufeatures: error: This crate works only on `aarch64`, `loongarch64`, `x86`, and `x86-64` targets. ExclusiveArch: x86_64 aarch64 BuildRequires: cargo-rpm-macros >= 25 BuildRequires: pkgconfig(liblz4) BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(wayland-protocols) BuildRequires: pkgconfig(xkbcommon) BuildRequires: scdoc %if %{with upgrade} Obsoletes: swww < 0.12.0 Provides: swww %endif %global _description %{expand: An Answer to your Wayland Wallpaper Woes. Efficient animated wallpaper daemon for wayland, controlled at runtime. AWWW requires a Wayland compositor with wlr-layer-shell support} %description %{_description} %prep %autosetup -n %{name} -p1 -a1 %cargo_prep -v vendor chmod -x example_scripts/*.sh %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %{cargo_vendor_manifest} for fname in doc/*.scd; do scdoc <"$fname" >"${fname%.scd}" done %install for bin in awww awww-daemon; do install -D -pv -m0755 target/rpm/$bin -t %{buildroot}%{_bindir} done for fname in doc/*.[1-9]; do install -D -pv -m0644 "$fname" "%{buildroot}%{_mandir}/man${fname##*.}/${fname##*/}" done install -D -m 0644 -pv completions/awww.bash %{buildroot}%{bash_completions_dir}/awww install -D -m 0644 -pv completions/awww.fish %{buildroot}%{fish_completions_dir}/awww install -D -m 0644 -pv completions/_awww %{buildroot}%{zsh_completions_dir}/_awww %if %{with upgrade} install -D -pv -m0755 %{SOURCE3} "%{buildroot}%{_bindir}/swww" ln -sf swww "%{buildroot}%{_bindir}/swww-daemon" %endif %if %{with check} %check %cargo_test %endif %files %license LICENSE %license LICENSE.dependencies %license cargo-vendor.txt %doc CHANGELOG.md %doc README.md %doc example_scripts %{_bindir}/awww %{_bindir}/awww-daemon %if %{with upgrade} %{_bindir}/swww %{_bindir}/swww-daemon %endif %{_mandir}/man1/awww*.1* %{bash_completions_dir}/awww %{fish_completions_dir}/awww %{zsh_completions_dir}/_awww %changelog ## START: Generated by rpmautospec * Wed Mar 25 2026 Aleksei Bavshin - 0.12.0-0.2 - Provide upgrade path from swww * Wed Mar 25 2026 Aleksei Bavshin - 0.12.0-0.1 - Update and rename to awww 0.12.0 ## END: Generated by rpmautospec