# Generated by rust2rpm 25 %bcond_with check Name: swww Version: 0.9.5 Release: %autorelease Summary: Efficient animated wallpaper daemon for wayland, controlled at runtime # 0BSD OR MIT OR Apache-2.0 # Apache-2.0 # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # BSD-2-Clause # BSD-3-Clause # CC0-1.0 OR Apache-2.0 # ISC # MIT # MIT OR Apache-2.0 # MIT OR Apache-2.0 OR NCSA # MIT OR Apache-2.0 OR Zlib # MIT OR Zlib OR Apache-2.0 # Unlicense OR MIT # Zlib OR Apache-2.0 OR MIT License: GPL-3.0-only AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND BSD-3-Clause AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Apache-2.0 OR NCSA) AND (CC0-1.0 OR Apache-2.0) AND (MIT OR Apache-2.0 OR Zlib) AND (Unlicense OR MIT) AND Zlib URL: https://github.com/LGFae/swww Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: cargo-rpm-macros >= 24 BuildRequires: scdoc BuildRequires: pkgconfig(liblz4) %global _description %{expand: %{summary}.} %description %{_description} %prep %autosetup -p1 cargo vendor %cargo_prep -v vendor %build cargo build --locked --profile rpm ./doc/gen.sh #%%{cargo_license_summary} #%%{cargo_license} > LICENSE.dependencies #%%{cargo_vendor_manifest} %install install -Dpm755 target/release/swww %{buildroot}%{_bindir}/swww install -Dpm755 target/release/swww-daemon %{buildroot}%{_bindir}/swww-daemon install -Dpm644 completions/_swww %{buildroot}%{zsh_completions_dir}/_%{name} install -Dpm644 completions/swww.bash %{buildroot}%{bash_completions_dir}/%{name} install -Dpm644 completions/swww.fish %{buildroot}%{fish_completions_dir}/%{name}.fish install -Dpm644 ./doc/generated/*.1 -t %{buildroot}%{_mandir}/man1 %if %{with check} %check %cargo_test %endif %files %license LICENSE #%%license LICENSE.dependencies #%%license cargo-vendor.txt %doc CHANGELOG.md %doc README.md %{_bindir}/swww %{_bindir}/swww-daemon %{_mandir}/man1/swww*.1.* %{bash_completions_dir}/%{name} %{fish_completions_dir}/%{name}.fish %{zsh_completions_dir}/_%{name} %changelog %autochangelog