# Generated by go2rpm 1.3
%bcond_without check
# https://github.com/hetznercloud/hcloud-go
%global goipath github.com/hetznercloud/hcloud-go
Version: 2.8.0
%gometa
%global goaltipaths github.com/hetznercloud/hcloud-go/v2
%global common_description %{expand:
A Go library for the Hetzner Cloud API.}
%global debug_package %{nil}
%global golicenses LICENSE
%global godocs CHANGES.md README.md
Name: %{goname}
Release: %autorelease
Summary: Go library for the Hetzner Cloud API
License: MIT
URL: %{gourl}
Source0: %{gosource}
BuildRequires: go-rpm-macros
%if %{with check}
# Tests
BuildRequires: golang(github.com/google/go-cmp/cmp)
%endif
%description
%{common_description}
%gopkg
%prep
%goprep
%generate_buildrequires
%go_generate_buildrequires
%install
%gopkginstall
%if %{with check}
%check
%gocheck
%endif
%gopkgfiles
%changelog
%autochangelog