# Generated by go2rpm # Needs network %bcond_with check # https://github.com/hashicorp/consul/api %global goipath github.com/hashicorp/consul Version: 1.0.1 %global tag api/v1.0.1 %global distprefix %{nil} %gometa %global common_description %{expand: Consul is a tool for service discovery and configuration. Consul is distributed, highly available, and extremely scalable. Consul provides several key features: - Service Discovery - Consul makes it simple for services to register themselves and to discover other services via a DNS or HTTP interface. External services such as SaaS providers can be registered as well. - Health Checking - Health Checking enables Consul to quickly alert operators about any issues in a cluster. The integration with service discovery prevents routing traffic to unhealthy hosts and enables service level circuit breakers. - Key/Value Storage - A flexible key/value store enables storing dynamic configuration, feature flagging, coordination, leader election and more. The simple HTTP API makes it easy to use anywhere. - Multi-Datacenter - Consul is built to be datacenter aware, and can support any number of regions without complex configuration. - Service Segmentation - Consul Connect enables secure service-to-service communication with automatic TLS encryption and identity-based authorization.} %global golicenses LICENSE NOTICE.md %global godocs INTERNALS.md README.md CHANGELOG.md README-api.md Name: %{goname}-api Release: 1%{?dist} Summary: Solution to connect and configure applications across dynamic, distributed infrastructure # Upstream license specification: MPL-2.0 License: MPLv2.0 URL: %{gourl} Source0: %{gosource} # https://github.com/hashicorp/consul/commit/ac45b1748215eee71ed3c7d311757d0db62fa8ca Patch0: 0001-fix-remaining-CI-failures-after-Go-1.12.1-Upgrade.patch BuildRequires: golang(github.com/hashicorp/go-cleanhttp) BuildRequires: golang(github.com/hashicorp/go-rootcerts) BuildRequires: golang(github.com/hashicorp/serf/coordinate) BuildRequires: golang(github.com/mitchellh/mapstructure) %if %{with check} # Tests BuildRequires: golang(github.com/hashicorp/consul/sdk/testutil) BuildRequires: golang(github.com/hashicorp/consul/sdk/testutil/retry) BuildRequires: golang(github.com/hashicorp/go-uuid) BuildRequires: golang(github.com/hashicorp/serf/serf) BuildRequires: golang(github.com/pascaldekloe/goe/verify) BuildRequires: golang(github.com/stretchr/testify/assert) BuildRequires: golang(github.com/stretchr/testify/require) %endif %description %{common_description} %gopkg %prep %goprep %patch0 -p1 find ./* -maxdepth 0 -type d -not -name "api" -and -not -name "_build" -exec rm -rf "{}" \; rm -rf ./*.go mv api/README.md README-api.md %install %gopkginstall %if %{with check} %check %gocheck %endif %gopkgfiles %changelog * Fri Apr 19 16:57:04 CEST 2019 Robert-André Mauchin - 1.0.1-1 - Initial package