## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 %global debug_package %{nil} %global crate goose Name: rust-goose Version: 1.19.1 Release: %autorelease Summary: an open source, extensible AI agent client URL: https://github.com/block/goose Source: %{url}/archive/v%{version}/%{crate}-%{version}.tar.gz # To create the vendor tarball: # tar xf %%{crate}-%%{version}.crate ; pushd %%{crate}-%%{version} ; \ # patch -p1 < ../0001-Patch-windows-dependencies-across-workspace.patch ; \ # patch -p1 < ../0002-Remove-patch-from-crunchy-git-fork.patch # cargo vendor --versioned-dirs && tar Jcvf ../%%{crate}-%%{version}-vendor.tar.xz vendor/ ; popd Source1: %{crate}-%{version}-vendor.tar.xz # Patches to remove windows dependencies from crates Patch: 0001-Patch-windows-dependencies-across-workspace.patch # Remove downstream patch for crunchy Patch1: 0002-Remove-patch-from-crunchy-git-fork.patch License: %{shrink: (Apache-2.0 OR MIT) AND BSD-3-Clause (MIT OR Apache-2.0) AND NCSA (MIT OR Apache-2.0) AND Unicode-3.0 0BSD OR MIT OR Apache-2.0 Apache-2.0 Apache-2.0 OR BSL-1.0 Apache-2.0 OR ISC OR MIT 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-2-Clause OR Apache-2.0 OR MIT BSD-3-Clause BSD-3-Clause AND MIT BSD-3-Clause OR MIT BSL-1.0 CC0-1.0 CC0-1.0 OR Apache-2.0 CC0-1.0 OR Apache-2.0 OR Apache-2.0 WITH LLVM-exception CC0-1.0 OR MIT-0 OR Apache-2.0 ISC ISC AND (Apache-2.0 OR ISC) ISC AND (Apache-2.0 OR ISC) AND OpenSSL LGPL-3.0-or-later MIT MIT AND BSD-3-Clause MIT OR Apache-2.0 MIT OR Apache-2.0 OR Zlib MIT OR Zlib OR Apache-2.0 MIT-0 MPL-2.0 Unicode-3.0 Unlicense OR MIT Zlib Zlib OR Apache-2.0 OR MIT } BuildRequires: cargo-rpm-macros >= 25 BuildRequires: systemd BuildRequires: openssl-devel BuildRequires: cmake BuildRequires: clang-libs BuildRequires: clang BuildRequires: libxcb-devel # The crate `libdbus-sys` requires dbus-1 BuildRequires: pkgconfig(dbus-1) %global _description %{expand: an open source, extensible AI agent that goes beyond code suggestions - install, execute, edit, and test with any LLM. } %description %_description %prep %autosetup -n %{crate}-%{version} -p1 -a1 %cargo_prep -v vendor %build %cargo_build %cargo_vendor_manifest %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install install -Dpm 0755 target/rpm/goose -t %{buildroot}%{_bindir} install -Dpm 0755 target/rpm/goosed -t %{buildroot}%{_bindir} %if %{with check} %check # The following tests are trying to reach out to the internete and thus, # failing to resolve DNS. # Need to be patched upstream to not rely internet access. %cargo_test -- -- --skip providers::gcpauth::tests::test_token_refresh_race_condition \ --skip routes::audio::tests::test_transcribe_endpoint_requires_auth \ --skip tunnel::lapstone_test::test_tunnel_end_to_end \ --skip tunnel::lapstone_test::test_tunnel_post_request %endif %files %license LICENSE %license LICENSE.dependencies %license cargo-vendor.txt %doc README.md %{_bindir}/goose %{_bindir}/goosed %changelog ## START: Generated by rpmautospec * Mon Jan 12 2026 Rodolfo Olivieri - 1.19.1-1 - Uncommitted changes * Thu Jan 08 2026 Rodolfo Olivieri - 1.19.0-2 - simplify * Thu Jan 08 2026 Rodolfo Olivieri - 1.19.0-1 - Initial commit ## END: Generated by rpmautospec