## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 # Generated by go2rpm 1.18.0 %if 0%{?fedora} || 0%{?rhel} > 8 %bcond check 1 %else %bcond_without check %endif # https://github.com/hetznercloud/cli %global goipath github.com/hetznercloud/cli Version: 1.61.0 %global debug_package %{nil} %if 0%{?rhel} == 8 %global gobuilddir %{_builddir}/cli-%{version}/_build %global bash_completions_dir %{_datadir}/bash-completion/completions %global fish_completions_dir %{_datadir}/fish/vendor_completions.d %global zsh_completions_dir %{_datadir}/zsh/site-functions %gometa %else %gometa -L -f %endif Name: hcloud Release: %autorelease Summary: A command-line interface for Hetzner Cloud # Generated by go-vendor-tools License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml %if 0%{?rhel} >= 9 BuildRequires: go-vendor-tools %endif %description A command-line interface for Hetzner Cloud. %prep %if 0%{?rhel} == 8 %autosetup %{forgesetupargs} install -m 0755 -vd %{gobuilddir}/bin %{gobuilddir}/src/$(dirname %{goipath}) ln -s "$(pwd)" %{gobuilddir}/src/%{goipath} %else %goprep -A %endif %setup -q -T -D -a1 %{forgesetupargs} %autopatch -p1 # Upstream uses goreleaser to set the version, but we need to set it manually here. sed 's/versionPrerelease = "dev"/versionPrerelease = ""/' -i internal/version/version.go %if 0%{?fedora} || 0%{?rhel} > 8 %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %endif %build %global gomodulesmode GO111MODULE=on for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done # Build shell completions. for SHELL in bash fish zsh; do %{gobuilddir}/bin/%{name} completion $SHELL > %{name}.${SHELL} done %install %if 0%{?rhel} >= 9 %go_vendor_license_install -c %{S:2} %endif install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ # Install shell completions. install -Dpm 0644 %{name}.bash %{buildroot}%{bash_completions_dir}/%{name} install -Dpm 0644 %{name}.fish %{buildroot}%{fish_completions_dir}/%{name}.fish install -Dpm 0644 %{name}.zsh %{buildroot}%{zsh_completions_dir}/_%{name} %check %if 0%{?rhel} >= 9 %go_vendor_license_check -c %{S:2} %endif %if %{with check} %gotest ./... %endif %if 0%{?rhel} >= 9 %files -f %{go_vendor_license_filelist} %else %files %endif %license LICENSE vendor/modules.txt %doc docs examples CHANGELOG.md CONTRIBUTING.md README.md %{_bindir}/hcloud %{bash_completions_dir}/%{name} %{fish_completions_dir}/%{name}.fish %{zsh_completions_dir}/_%{name} %changelog ## START: Generated by rpmautospec * Thu Mar 19 2026 sheeEngineering - 1.61.0-2 - RPMAUTOSPEC: unresolvable merge ## END: Generated by rpmautospec