Group :: Other
RPM: consul
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%global import_path github.com/hashicorp/consul
Name: consul
Version: 1.16.2
Release: alt1
Summary: Consul is a tool for service discovery and configuration
License: MPL-2.0
Group: Other
Url: https://github.com/hashicorp/consul
Packager: Mikhail Gordeev <obirvalger at altlinux.org>
Source: %name-%version.tar
BuildRequires(pre): rpm-build-golang
BuildRequires: golang
%description
Consul is a distributed, highly available, and data center aware solution to
connect and configure applications across dynamic, distributed infrastructure.
%prep
%setup
%build
export BUILDDIR="$PWD/.build"
export IMPORT_PATH="%import_path"
export GOPATH="$BUILDDIR:%go_path"
%golang_prepare
cd .build/src/%import_path
%golang_build .
%install
export BUILDDIR="$PWD/.build"
export IGNORE_SOURCES=1
%golang_install
%files
%_bindir/*
%doc *.md
%changelog
…
Full changelog you can see here
Name: consul
Version: 1.16.2
Release: alt1
Summary: Consul is a tool for service discovery and configuration
License: MPL-2.0
Group: Other
Url: https://github.com/hashicorp/consul
Packager: Mikhail Gordeev <obirvalger at altlinux.org>
Source: %name-%version.tar
BuildRequires(pre): rpm-build-golang
BuildRequires: golang
%description
Consul is a distributed, highly available, and data center aware solution to
connect and configure applications across dynamic, distributed infrastructure.
%prep
%setup
%build
export BUILDDIR="$PWD/.build"
export IMPORT_PATH="%import_path"
export GOPATH="$BUILDDIR:%go_path"
%golang_prepare
cd .build/src/%import_path
%golang_build .
%install
export BUILDDIR="$PWD/.build"
export IGNORE_SOURCES=1
%golang_install
%files
%_bindir/*
%doc *.md
%changelog
…
Full changelog you can see here