# Run tests in check section
# Test needs network
%bcond_with check
# https://github.com/armon/consul-api
%global goipath github.com/armon/consul-api
%global commit eb2c6b5be1b66bab83016e0b05f01b8d5496ffbd
%global common_description %{expand:
This package provides the consulapi package which attempts to provide
programmatic access to the full Consul API.
Currently, all of the Consul APIs included in version 0.4 are supported.}
%gometa
Name: %{goname}
Version: 0
Release: 0.1%{?dist}
Summary: Golang API client for Consul
# Detected licences
# - *No copyright* Mozilla Public License (v2.0) at 'LICENSE'
License: MPLv2.0
URL: %{gourl}
Source0: %{gosource}
%description
%{common_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
%{common_description}
This package contains library source intended for
building other packages which use import path with
%{goipath} prefix.
%prep
%forgeautosetup
%install
%goinstall
%if %{with check}
%check
%gochecks
%endif
%files devel -f devel.file-list
%license LICENSE
%doc README.md
%changelog
* Mon Apr 08 20:35:32 CET 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.1.20190408giteb2c6b5
- First package for Fedora