From 96058c5dd98df58ed742dc1cdb8e2bcd0b790d7f Mon Sep 17 00:00:00 2001 From: Eriq Taing Date: Wed, 3 Dec 2025 21:19:32 -0500 Subject: [PATCH] Introduce awww package --- .gitea/workflows/build-awww.yml | 32 +++++++++++++ awww.spec | 85 +++++++++++++++++++++++++++++++++ 2 files changed, 117 insertions(+) create mode 100644 .gitea/workflows/build-awww.yml create mode 100644 awww.spec diff --git a/.gitea/workflows/build-awww.yml b/.gitea/workflows/build-awww.yml new file mode 100644 index 0000000..6a9e07b --- /dev/null +++ b/.gitea/workflows/build-awww.yml @@ -0,0 +1,32 @@ +name: Build awww +on: + push: + branches: + - main + paths: + - .gitea/workflows/build-awww.yml + - "awww.spec" + workflow_dispatch: + +jobs: + build_push: + name: Build and push image + runs-on: ubuntu-latest + + steps: + - name: Setup environment + shell: bash + run: | + sudo apt-get update + sudo apt-get install -y podman iptables + + # These stage versions are pinned by https://github.com/renovatebot/renovate + - name: Checkout + uses: actions/checkout@v6 # v5 + + - name: Build RPM and Upload + uses: https://git.hydrosaber.com/hydros/build-rpm@main + with: + spec-file-path: ./awww.spec + repository-user: eriq12 + repository-user-token: ${{ secrets.RPM_PACKAGE_TOKEN }} diff --git a/awww.spec b/awww.spec new file mode 100644 index 0000000..f2eccb2 --- /dev/null +++ b/awww.spec @@ -0,0 +1,85 @@ +# Generated by rust2rpm 25 +%bcond_with check + +Name: awww +Version: 0.11.2 +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://codeberg.org/LGFae/awww/ +Source: %{url}/archive/v%{version}.tar.gz + +BuildRequires: cargo-rpm-macros >= 24 +BuildRequires: pkgconfig(dav1d) +BuildRequires: pkgconfig(liblz4) +BuildRequires: pkgconfig(wayland-client) +BuildRequires: pkgconfig(wayland-protocols) +BuildRequires: scdoc + +Obsoletes: swww <= 0.11.2 + +%global _description %{expand: +%{summary}.} + +%description %{_description} + +%prep +%autosetup -n %{name} +cargo vendor +%cargo_prep -v vendor + +%build +%cargo_build -f avif +./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}/_swww +install -Dpm644 completions/swww.bash %{buildroot}%{bash_completions_dir}/swww +install -Dpm644 completions/swww.fish %{buildroot}%{fish_completions_dir}/swww.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}/swww +%{fish_completions_dir}/swww.fish +%{zsh_completions_dir}/_swww + +%changelog +## START: Generated by rpmautospec +* Mon Nov 24 2025 John Doe - 0.11.2-1 +- Uncommitted changes +## END: Generated by rpmautospec