From 64400db42d74e19ee5d728dc4ae16f1b6db2206b Mon Sep 17 00:00:00 2001 From: Robert-André Mauchin Date: Jun 23 2019 13:20:07 +0000 Subject: Initial import Signed-off-by: Robert-André Mauchin --- diff --git a/.gitignore b/.gitignore index b12381b..53119ee 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /serf-a72c045.tar.gz +/serf-0.8.3.tar.gz diff --git a/golang-github-hashicorp-serf.spec b/golang-github-hashicorp-serf.spec index 4a90a37..cca044b 100644 --- a/golang-github-hashicorp-serf.spec +++ b/golang-github-hashicorp-serf.spec @@ -1,73 +1,101 @@ -# http://github.com/hashicorp/serf -%global provider_prefix github.com/hashicorp/serf -%global goipath %{provider_prefix} -%global commit a72c0453da2ba628a013e98bf323a76be4aa1443 -%global commitdate 20151109 +# Generated by go2rpm +%bcond_without check + +# https://github.com/hashicorp/serf +%global goipath github.com/hashicorp/serf +Version: 0.8.3 %gometa +%global common_description %{expand: +Serf is a decentralized solution for service discovery and orchestration that is +lightweight, highly available, and fault tolerant. + +Serf runs on Linux, Mac OS X, and Windows. An efficient and lightweight gossip +protocol is used to communicate with other nodes. Serf can detect node failures +and notify the rest of the cluster. An event system is built on top of Serf, +letting you use Serf's gossip protocol to propagate events such as deploys, +configuration changes, etc. Serf is completely masterless with no single point +of failure. + +Here are some example use cases of Serf, though there are many others: + + - Discovering web servers and automatically adding them to a load balancer + - Organizing many memcached or redis nodes into a cluster, perhaps with + something like twemproxy or maybe just configuring an application with the + address of all the nodes + - Triggering web deploys using the event system built on top of Serf + - Propagating changes to configuration to relevant nodes. + - Updating DNS records to reflect cluster changes as they occur. + - Much, much more. +} + +%global golicenses LICENSE +%global godocs CHANGELOG.md README.md + Name: %{goname} -Version: 0.6.4 -Release: 0.12.%{commitdate}git%{shortcommit}%{?dist} -Summary: Service orchestration and management tool http://www.serfdom.io +Release: 1%{?dist} +Summary: Service orchestration and management tool + +# Upstream license specification: MPL-2.0 License: MPLv2.0 URL: %{gourl} Source0: %{gosource} -%description -%{summary} +BuildRequires: golang(github.com/armon/circbuf) +BuildRequires: golang(github.com/armon/go-metrics) +BuildRequires: golang(github.com/hashicorp/go-msgpack/codec) +BuildRequires: golang(github.com/hashicorp/go-syslog) +BuildRequires: golang(github.com/hashicorp/logutils) +BuildRequires: golang(github.com/hashicorp/mdns) +BuildRequires: golang(github.com/hashicorp/memberlist) +BuildRequires: golang(github.com/mitchellh/cli) +BuildRequires: golang(github.com/mitchellh/mapstructure) +BuildRequires: golang(github.com/ryanuber/columnize) -%package devel -Summary: %{summary} -BuildArch: noarch - -BuildRequires: golang(github.com/armon/circbuf) -BuildRequires: golang(github.com/armon/go-metrics) -BuildRequires: golang(github.com/hashicorp/go-msgpack/codec) -BuildRequires: golang(github.com/hashicorp/go-syslog) -BuildRequires: golang(github.com/hashicorp/logutils) -BuildRequires: golang(github.com/hashicorp/mdns) -BuildRequires: golang(github.com/hashicorp/memberlist) -#BuildRequires: golang(github.com/mitchellh/cli) -BuildRequires: golang-github-mitchellh-cli-devel-temporary -BuildRequires: golang(github.com/mitchellh/mapstructure) -BuildRequires: golang(github.com/ryanuber/columnize) - -#Requires: golang(github.com/mitchellh/cli) - -%description devel -%{summary} +%description +%{common_description} -This package contains library source intended for -building other packages which use import path with -%{gobaseipath} prefix. +%gopkg %prep -%forgesetup +%goprep + +%build +for cmd in cmd/* ; do + %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd +done %install -%goinstall +%gopkginstall +install -m 0755 -vd %{buildroot}%{_bindir} +install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ +%if %{with check} %check -%gochecks %{gobaseipath}/{command,command/agent,serf} +# Needs network +%gocheck -t cmd -t serf +%endif -#define license tag if not already defined -%{!?_licensedir:%global license %doc} +%files +%license %{golicenses} +%doc %{godocs} +%{_bindir}/* -%files devel -f devel.file-list -%license LICENSE -%doc CHANGELOG.md README.md +%gopkgfiles %changelog -* Fri Feb 01 2019 Fedora Release Engineering - 0.6.4-0.12.20151109git%{shortcommit}.gita72c045 +* Fri Apr 19 17:14:00 CEST 2019 Robert-André Mauchin - 0.8.3-1 +- Release 0.8.3 + +* Fri Feb 01 2019 Fedora Release Engineering - 0.6.4-0.12.20151109gita72c045 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild -* Tue Oct 23 2018 Nicolas Mailhot -- 0.6.4-0.11.20151109git%{shortcommit} +* Tue Oct 23 2018 Nicolas Mailhot - 0.6.4-0.11.20151109gita72c045 - redhat-rpm-config-123 triggers bugs in gosetup, remove it from Go spec files as it’s just an alias - https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/RWD5YATAYAFWKIDZBB7EB6N5DAO4ZKFM/ -* Fri Jul 13 2018 Fedora Release Engineering +* Fri Jul 13 2018 Fedora Release Engineering - 0.6.4-0.10.20151109gita72c045 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 28 2018 Jan Chaloupka - 0.6.4-0.9.20151109gita72c045 @@ -113,4 +141,3 @@ building other packages which use import path with * Wed Apr 15 2015 jchaloup - 0-0.1.git4bd6183 - First package for Fedora resolves: #1212318 - diff --git a/sources b/sources index a1bc435..995f1b0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -38607227b07f8d8811634c7c227c4819 serf-a72c045.tar.gz +SHA512 (serf-0.8.3.tar.gz) = 1ffcc9f34d2a79c2112e394292b587680fced0cc0cd81b8ab40bb82059e0fd3155679f945c1af475efcb20cc2427d0da625d859fecf79fdf54b9d31b0f358502