File goose.spec of Package goose

#
# spec file for package goose
#

Name:           goose
Version:        v(\d+\.\d+\.\d+)
Release:        0
Summary:        An open source, extensible AI agent that goes beyond code suggestions
License:        Apache-2.0
Group:          Development/Tools
Url:            https://github.com/block/goose
Source:         goose-%{version}.tar.zst
Source1:        vendor.tar.zst
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      aarch64 x86_64

%description
goose is an open source, extensible AI agent that goes beyond code suggestions - 
install, execute, edit, and test with any LLM. It automates engineering tasks 
and helps developers work more efficiently with AI agents.

%prep
%setup -q -n goose-%{version}
%autosetup -p1 -n goose-%{version}
# Use the vendor directory from the service
cp %{SOURCE1} vendor.tar.zst
tar -xf vendor.tar.zst

%build
# Build using cargo
cargo build --release

%install
# Install the binary to the staging area
mkdir -p %{buildroot}%{_bindir}
install -D -m 0755 target/release/goose %{buildroot}%{_bindir}/goose

%files
%defattr(-,root,root)
%{_bindir}/goose

%changelog
* Tue Nov 19 2025 mslacken <mslacken@example.com> 1.15.0-0
- Update to version 1.15.0
- Add support for new features and bug fixes
* Mon Aug 26 2024 mslacken <mslacken@example.com> 1.14.0-0
- Initial package for goose
openSUSE Build Service is sponsored by