Name: hetznercloud-cli Version: 1.65.0 Release: 1%{?dist} Summary: CLI for Hetzner Cloud License: MIT URL: https://github.com/hetznercloud/cli # Source0 points to the vendored tarball generated dynamically by rpkg.macros Source0: hetznercloud-cli-%{version}-vendor.tar.gz BuildRequires: go-rpm-macros BuildRequires: golang %description hetznercloud-cli is a command-line interface for managing Hetzner Cloud resources. %prep {{{ global spec # 1. Download the clean upstream source tarball from Hetzner's GitHub # (rpkg automatically provides the %{version} macro from your spec file) curl -L -O "https://github.com/hetznercloud/cli/archive/refs/tags/v%{version}.tar.gz" tar -xf "v%{version}.tar.gz" cd "cli-%{version}" # 2. Run Go vendoring to pull dependencies go mod vendor # 3. Pack everything back up into a clean archive that the spec file expects cd .. tar -czf "%{outdir}/hetznercloud-cli-%{version}-vendor.tar.gz" "cli-%{version}" }}} # Extract the resulting archive %setup -q -n cli-%{version} %build # Standard Fedora Go build flags %goto_build_dir %extension_build -o %{{buildroot}}/%{_bindir}/hcloud github.com/hetznercloud/cli/cmd/hcloud %files %license LICENSE %doc README.md %{_bindir}/hcloud %changelog * Sun Jun 14 2026 Frauke Dilg - 1.65.0-1 - Initial automated Copr packaging