Name: swww Version: 0.11.0 Release: 1%{?dist} Summary: Efficient animated wallpaper daemon for Wayland, controlled at runtime License: GPL-3.0-or-later URL: https://github.com/LGFae/swww Source0: https://github.com/LGFae/swww/archive/refs/tags/v%{version}.zip BuildRequires: rust BuildRequires: cargo BuildRequires: scdoc BuildRequires: wayland-devel BuildRequires: wayland-protocols-devel BuildRequires: libdav1d-devel BuildRequires: lz4-devel BuildRequires: libxkbcommon-devel Requires: lz4 Requires: libxkbcommon %description swww is a wallpaper manager for Wayland compositors that supports animated gifs, static images, and smooth transitions between images. It is controlled at runtime via a command line interface. %prep %autosetup -n %{name}-%{version} %build export RUSTUP_TOOLCHAIN=stable cargo build --locked --release --all-features # Generate man pages ./doc/gen.sh %install install -D target/release/swww -t %{buildroot}%{_bindir} install -D target/release/swww-daemon -t %{buildroot}%{_bindir} # Install completions install -Dm644 completions/_swww -t %{buildroot}%{_datadir}/zsh/site-functions/ install -Dm644 completions/swww.bash %{buildroot}%{_datadir}/bash-completion/completions/swww install -Dm644 completions/swww.elv %{buildroot}%{_datadir}/elvish/lib/swww.elv install -Dm644 completions/swww.fish -t %{buildroot}%{_datadir}/fish/vendor_completions.d/ # Install man pages install -Dm644 doc/generated/*.1 -t %{buildroot}%{_mandir}/man1/ # Install documentation install -Dm644 README.md CHANGELOG.md -t %{buildroot}%{_docdir}/%{name}/ cp -a example_scripts %{buildroot}%{_docdir}/%{name}/ %files %license LICENSE %doc %{_docdir}/%{name}/ %{_bindir}/swww %{_bindir}/swww-daemon %{_datadir}/zsh/site-functions/_swww %{_datadir}/bash-completion/completions/swww %{_datadir}/elvish/lib/swww.elv %{_datadir}/fish/vendor_completions.d/swww.fish %{_mandir}/man1/*.1* %changelog * Sat Sep 14 2025 陈念秋 woshiliuziao@gmail.com - 0.11.0-1 - Initial package