ad5e194
%global goipath github.com/ovh/go-ovh
ad5e194
%global commit  ba5adb4cf0148a3dbdbd30586f075266256a77b1
ad5e194
%gometa
ad5e194
3616b0c
%ifnarch s390x
3616b0c
# https://github.com/ovh/go-ovh/issues/45
3616b0c
%bcond_without tests
3616b0c
%endif
3616b0c
ad5e194
Name:           %{goname}
ad5e194
Version:        0
3616b0c
Release:        0.2%{?dist}
ad5e194
Summary:        Simple Go wrapper for the OVH API
ad5e194
License:        BSD
ad5e194
URL:            %{gourl}
ad5e194
Source0:        %{gosource}
ad5e194
BuildRequires:  golang(gopkg.in/ini.v1)
ad5e194
ad5e194
ad5e194
%description
ad5e194
%{summary}.
ad5e194
ad5e194
ad5e194
%package devel
ad5e194
Summary:        %{summary}
ad5e194
BuildArch:      noarch
ad5e194
ad5e194
ad5e194
%description devel
ad5e194
%{summary}.
ad5e194
ad5e194
This package contains the source code needed for building packages that import
ad5e194
the %{goipath} Go namespace.
ad5e194
ad5e194
ad5e194
%prep
ad5e194
%forgeautosetup
ad5e194
ad5e194
ad5e194
%install
ad5e194
%goinstall
ad5e194
ad5e194
3616b0c
%if %{with tests}
ad5e194
%check
ad5e194
%gochecks
3616b0c
%endif
ad5e194
ad5e194
ad5e194
%files devel -f devel.file-list
ad5e194
%license LICENSE
ad5e194
%doc README.md
ad5e194
ad5e194
ad5e194
%changelog
3616b0c
* Fri Dec 07 2018 Carl George <carl@george.computer> - 0-0.2.20181203gitba5adb4
3616b0c
- Skip tests on s390x
3616b0c
ad5e194
* Mon Dec 03 2018 Carl George <carl@george.computer> - 0-0.1.20181203gitba5adb4
ad5e194
- Initial package