From eea50640d1ccd6739e1d2e33e61f08ecd4e6c5d6 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Tue, 31 Dec 2024 22:41:03 -0800 Subject: [PATCH] add: swww (#2744) (#2804) closes #2743 (cherry picked from commit acf1c96cd4ada6f294a460fe5e3469e176381b17) Co-authored-by: madomado --- anda/desktops/waylands/swww/anda.hcl | 5 ++ anda/desktops/waylands/swww/swww.spec | 93 +++++++++++++++++++++++++ anda/desktops/waylands/swww/update.rhai | 1 + 3 files changed, 99 insertions(+) create mode 100644 anda/desktops/waylands/swww/anda.hcl create mode 100644 anda/desktops/waylands/swww/swww.spec create mode 100644 anda/desktops/waylands/swww/update.rhai diff --git a/anda/desktops/waylands/swww/anda.hcl b/anda/desktops/waylands/swww/anda.hcl new file mode 100644 index 0000000000..8f4e2ba38a --- /dev/null +++ b/anda/desktops/waylands/swww/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "swww.spec" + } +} diff --git a/anda/desktops/waylands/swww/swww.spec b/anda/desktops/waylands/swww/swww.spec new file mode 100644 index 0000000000..a00fbee492 --- /dev/null +++ b/anda/desktops/waylands/swww/swww.spec @@ -0,0 +1,93 @@ +Name: swww +Version: 0.9.5 +Release: 1%?dist +Summary: Wallpaper daemon for Wayland +SourceLicense: GPL-3.0-only +License: (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 (CC0-1.0 OR Apache-2.0) AND ISC AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Apache-2.0 OR NCSA) AND (MIT OR Apache-2.0 OR Zlib) AND (MIT OR Zlib OR Apache-2.0) AND (Unlicense OR MIT) AND (Zlib OR Apache-2.0 OR MIT) +URL: https://github.com/LGFae/swww +Source0: %url/archive/refs/tags/v%version.tar.gz +BuildRequires: anda-srpm-macros rust-packaging rpm_macro(bash_completions_dir) mold +BuildRequires: scdoc +BuildRequires: zstd +BuildRequires: pkgconfig(liblz4) +BuildRequires: pkgconfig(xkbcommon) + +%description +swww is a wallpaper daemon for Wayland that is controlled +at runtime. It uses LZ4 compression for frame animations +for animated wallpapers. + +%package bash-completion +Summary: Bash Completion for %{name} +Supplements: (%{name} and bash-completion) +Requires: bash-completion +BuildArch: noarch + +%description bash-completion +Bash command-line completion support for %{name}. + +%package fish-completion +Summary: Fish Completion for %{name} +Group: System/Shells +Supplements: (%{name} and fish) +Requires: fish +BuildArch: noarch + +%description fish-completion +Fish command-line completion support for %{name}. + +%package zsh-completion +Summary: Zsh Completion for %{name} +Group: System/Shells +Supplements: (%{name} and zsh) +Requires: zsh +BuildArch: noarch + +%description zsh-completion +Zsh command-line completion support for %{name}. + +%prep +%autosetup +%cargo_prep_online + +%build +%cargo_license_summary_online +%{cargo_license_online} > LICENSE.dependencies +./doc/gen.sh + +%install +%{cargo_install} & +(cd daemon && %{cargo_install} &) +wait +install -Dm644 -T completions/swww.bash %buildroot%bash_completions_dir/swww +install -Dm644 -T completions/swww.fish %buildroot%fish_completions_dir/swww.fish +install -Dm644 -T completions/_swww %buildroot%zsh_completions_dir/_swww +install -Dm644 -t %buildroot%_mandir/man1 doc/generated/swww*1 + +%files +%doc CHANGELOG.md README.md +%license LICENSE LICENSE.dependencies +%_bindir/swww +%dnl %_bindir/swww-daemon +%_mandir/man1/%name-clear-cache.1.gz +%_mandir/man1/%name-clear.1.gz +%_mandir/man1/%name-daemon.1.gz +%_mandir/man1/%name-img.1.gz +%_mandir/man1/%name-init.1.gz +%_mandir/man1/%name-kill.1.gz +%_mandir/man1/%name-query.1.gz +%_mandir/man1/%name-restore.1.gz +%_mandir/man1/%name.1.gz + +%files bash-completion +%bash_completions_dir/swww + +%files fish-completion +%fish_completions_dir/swww.fish + +%files zsh-completion +%zsh_completions_dir/_swww + +%changelog +* Tue Dec 24 2024 madonuko - 0.9.5-1 +- Initial package diff --git a/anda/desktops/waylands/swww/update.rhai b/anda/desktops/waylands/swww/update.rhai new file mode 100644 index 0000000000..da227c1d0a --- /dev/null +++ b/anda/desktops/waylands/swww/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("LGFae/swww"));