consul/consul.spec
Your Name e30b6be79d
Some checks failed
Run CI/CD... / main (push) Failing after 5m36s
1.20.3
2025-02-13 20:41:04 +00:00

64 lines
1.9 KiB
RPMSpec

%define getsource github.com/hashicorp/%{name}
%define debug %nil
%define debug_package %nil
Name: consul
Version: 1.20.3
Release: 1
Summary: Service discovery tool
URL: https://www.consul.io
Source0: https://github.com/hashicorp/consul/archive/v%{version}/%{name}-%{version}.tar.gz
License: MPLv2.0
Group: System/Cluster
Source1000: %{name}.rpmlintrc
BuildRequires: go >=1.10
BuildRequires: git-core
BuildRequires: upx
BuildRequires: ncurses
%description
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.
Consul runs on Linux, Mac OS X, FreeBSD, Solaris, and Windows.
A commercial version called Consul Enterprise is also available.
%prep
%setup -q
%build
%ifarch x86_64 amd64
arch="amd64"
%else
arch="386"
%endif
build-support/scripts/build-local.sh -o linux -a $arch
%install
install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
%files
%doc README.md LICENSE
%{_bindir}/%{name}