File akamai-purge.spec of Package failed_akamai-purge1

Name:           akamai-purge
Version:        1.1.0
Release:        2.1
Summary:        Akamai Purge CLI Tool
License:        MIT
URL:            https://github.com/akamai/cli-purge
Source0:        %{name}-%{version}-gh.tar.gz
Source1:        vendor.tar.zst

BuildRequires:  go
BuildRequires:  gcc
BuildRequires:  glibc-devel

%description
Akamai Purge CLI tool for invalidating cached content on Akamai's CDN.

%prep
%setup -q -n cli-purge-%{version}
tar -I zstd -xf %{SOURCE1}

%build
export GOCACHE=$(mktemp -d)
export GOPATH=$(mktemp -d)
go build -trimpath -buildmode=pie -mod=vendor -o akamai-purge

%install
install -Dm755 akamai-purge %{buildroot}/usr/bin/akamai-purge

%files
/usr/bin/akamai-purge

%changelog
* Sun Aug 10 2025 Your Name <your.email@example.com> - 1.1.0-2.1
- Initial package
```

---

### Explanation of Changes:
1. **Regenerated `vendor` Directory**:
   - The `vendor` directory was likely incomplete or corrupted, causing the build to fail. Regenerating it ensures all dependencies are correctly included.

2. **No Changes to `.spec` File**:
   - The `.spec` file already correctly references the `vendor` directory. No modifications are necessary.

---

### Next Steps:
1. Regenerate the `vendor` directory as described above.
2. Rebuild the package using the same build environment.

This should resolve the build failure. If additional issues arise, please provide the updated build log for further analysis.
openSUSE Build Service is sponsored by