|
|
94616a |
%global with_devel 0
|
|
|
94616a |
%global with_bundled 1
|
|
|
12ae81 |
%global with_debug 1
|
|
|
94616a |
%global with_check 0
|
|
|
94616a |
|
|
|
94616a |
%if 0%{?with_debug}
|
|
|
18e3f8 |
# https://bugzilla.redhat.com/show_bug.cgi?id=995136#c12
|
|
|
18e3f8 |
%global _dwz_low_mem_die_limit 0
|
|
|
18e3f8 |
%else
|
|
|
18e3f8 |
%global debug_package %{nil}
|
|
|
18e3f8 |
%endif
|
|
|
18e3f8 |
%global provider github
|
|
|
18e3f8 |
%global provider_tld com
|
|
|
18e3f8 |
%global project coreos
|
|
|
18e3f8 |
%global repo etcd
|
|
|
b6dfdf |
# https://github.com/coreos/etcd
|
|
|
b6dfdf |
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
|
|
|
b6dfdf |
%global import_path %{provider_prefix}
|
|
|
b6dfdf |
%global commit bc9ddf260115d2680191c46977ae72b837785472
|
|
|
be5080 |
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
18e3f8 |
|
|
|
18e3f8 |
Name: %{repo}
|
|
|
b6dfdf |
Version: 2.2.5
|
|
|
b6dfdf |
Release: 1%{?dist}
|
|
|
319373 |
Summary: A highly-available key value store for shared configuration
|
|
|
319373 |
License: ASL 2.0
|
|
|
b6dfdf |
URL: https://%{provider_prefix}
|
|
|
b6dfdf |
Source0: https://%{provider_prefix}/archive/v%{version}.tar.gz
|
|
|
18e3f8 |
Source1: %{name}.service
|
|
|
18e3f8 |
Source2: %{name}.conf
|
|
|
18e3f8 |
|
|
|
12ae81 |
Patch0: etcdmain-Add-max-snapshots-and-max-wals-to-help.patch
|
|
|
12ae81 |
Patch1: set-etcd-advertise-client-urls-if-needed.patch
|
|
|
94616a |
|
|
|
18e3f8 |
ExclusiveArch: %{ix86} x86_64 %{arm}
|
|
|
18e3f8 |
BuildRequires: golang >= 1.2.1-3
|
|
|
12ae81 |
|
|
|
94616a |
%if ! 0%{?with_bundled}
|
|
|
e9bdba |
BuildRequires: golang(github.com/bgentry/speakeasy)
|
|
|
e9bdba |
BuildRequires: golang(github.com/boltdb/bolt)
|
|
|
e9bdba |
BuildRequires: golang(github.com/codegangsta/cli)
|
|
|
e9bdba |
BuildRequires: golang(github.com/coreos/go-semver/semver)
|
|
|
12ae81 |
BuildRequires: golang(github.com/coreos/go-systemd/daemon)
|
|
|
12ae81 |
BuildRequires: golang(github.com/coreos/go-systemd/util)
|
|
|
e9bdba |
BuildRequires: golang(github.com/coreos/pkg/capnslog)
|
|
|
e9bdba |
BuildRequires: golang(github.com/gogo/protobuf/proto)
|
|
|
e9bdba |
BuildRequires: golang(github.com/google/btree)
|
|
|
e9bdba |
BuildRequires: golang(github.com/jonboulle/clockwork)
|
|
|
e9bdba |
BuildRequires: golang(github.com/prometheus/client_golang/prometheus)
|
|
|
e9bdba |
BuildRequires: golang(github.com/prometheus/procfs)
|
|
|
12ae81 |
# used only by tools/v3benchmark/main.go:main
|
|
|
12ae81 |
BuildRequires: golang(github.com/rakyll/pb)
|
|
|
e9bdba |
BuildRequires: golang(github.com/stretchr/testify/assert)
|
|
|
12ae81 |
BuildRequires: golang(github.com/ugorji/go/codec)
|
|
|
12ae81 |
BuildRequires: golang(github.com/xiang90/probing)
|
|
|
e9bdba |
BuildRequires: golang(golang.org/x/crypto/bcrypt)
|
|
|
12ae81 |
BuildRequires: golang(golang.org/x/net/context)
|
|
|
e9bdba |
BuildRequires: golang(google.golang.org/grpc)
|
|
|
18e3f8 |
%endif
|
|
|
319373 |
BuildRequires: systemd
|
|
|
319373 |
Requires(pre): shadow-utils
|
|
|
319373 |
Requires(post): systemd
|
|
|
319373 |
Requires(preun): systemd
|
|
|
319373 |
Requires(postun): systemd
|
|
|
319373 |
|
|
|
319373 |
%description
|
|
|
319373 |
A highly-available key value store for shared configuration.
|
|
|
319373 |
|
|
|
94616a |
%if 0%{?with_devel}
|
|
|
18e3f8 |
%package devel
|
|
|
12ae81 |
Summary: etcd golang devel libraries
|
|
|
12ae81 |
BuildArch: noarch
|
|
|
12ae81 |
|
|
|
12ae81 |
%if 0%{?with_check}
|
|
|
e9bdba |
BuildRequires: golang(github.com/bgentry/speakeasy)
|
|
|
e9bdba |
BuildRequires: golang(github.com/boltdb/bolt)
|
|
|
12ae81 |
BuildRequires: golang(github.com/codegangsta/cli)
|
|
|
e9bdba |
BuildRequires: golang(github.com/coreos/go-semver/semver)
|
|
|
12ae81 |
BuildRequires: golang(github.com/coreos/go-systemd/daemon)
|
|
|
12ae81 |
BuildRequires: golang(github.com/coreos/go-systemd/util)
|
|
|
e9bdba |
BuildRequires: golang(github.com/coreos/pkg/capnslog)
|
|
|
e9bdba |
BuildRequires: golang(github.com/gogo/protobuf/proto)
|
|
|
e9bdba |
BuildRequires: golang(github.com/google/btree)
|
|
|
18e3f8 |
BuildRequires: golang(github.com/jonboulle/clockwork)
|
|
|
e9bdba |
BuildRequires: golang(github.com/prometheus/client_golang/prometheus)
|
|
|
e9bdba |
BuildRequires: golang(github.com/prometheus/procfs)
|
|
|
18e3f8 |
BuildRequires: golang(github.com/stretchr/testify/assert)
|
|
|
12ae81 |
BuildRequires: golang(github.com/ugorji/go/codec)
|
|
|
12ae81 |
BuildRequires: golang(github.com/xiang90/probing)
|
|
|
e9bdba |
BuildRequires: golang(golang.org/x/crypto/bcrypt)
|
|
|
12ae81 |
BuildRequires: golang(golang.org/x/net/context)
|
|
|
12ae81 |
BuildRequires: golang(golang.org/x/net/netutil)
|
|
|
e9bdba |
BuildRequires: golang(google.golang.org/grpc)
|
|
|
12ae81 |
%endif
|
|
|
e9bdba |
|
|
|
e9bdba |
Requires: golang(github.com/bgentry/speakeasy)
|
|
|
e9bdba |
Requires: golang(github.com/boltdb/bolt)
|
|
|
12ae81 |
Requires: golang(github.com/codegangsta/cli)
|
|
|
e9bdba |
Requires: golang(github.com/coreos/go-semver/semver)
|
|
|
12ae81 |
Requires: golang(github.com/coreos/go-systemd/daemon)
|
|
|
12ae81 |
Requires: golang(github.com/coreos/go-systemd/util)
|
|
|
e9bdba |
Requires: golang(github.com/coreos/pkg/capnslog)
|
|
|
e9bdba |
Requires: golang(github.com/gogo/protobuf/proto)
|
|
|
e9bdba |
Requires: golang(github.com/google/btree)
|
|
|
94616a |
Requires: golang(github.com/jonboulle/clockwork)
|
|
|
e9bdba |
Requires: golang(github.com/prometheus/client_golang/prometheus)
|
|
|
e9bdba |
Requires: golang(github.com/prometheus/procfs)
|
|
|
94616a |
Requires: golang(github.com/stretchr/testify/assert)
|
|
|
12ae81 |
Requires: golang(github.com/ugorji/go/codec)
|
|
|
12ae81 |
Requires: golang(github.com/xiang90/probing)
|
|
|
e9bdba |
Requires: golang(golang.org/x/crypto/bcrypt)
|
|
|
12ae81 |
Requires: golang(golang.org/x/net/context)
|
|
|
12ae81 |
Requires: golang(golang.org/x/net/netutil)
|
|
|
e9bdba |
Requires: golang(google.golang.org/grpc)
|
|
|
e9bdba |
|
|
|
18e3f8 |
Provides: golang(%{import_path}/client) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/discovery) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/error) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/etcdctl/command) = %{version}-%{release}
|
|
|
12ae81 |
Provides: golang(%{import_path}/etcdctlv3/command) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/etcdmain) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/etcdserver) = %{version}-%{release}
|
|
|
12ae81 |
Provides: golang(%{import_path}/etcdserver/api/v3rpc) = %{version}-%{release}
|
|
|
e9bdba |
Provides: golang(%{import_path}/etcdserver/auth) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/etcdserver/etcdhttp) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/etcdserver/etcdhttp/httptypes) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/etcdserver/etcdserverpb) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/etcdserver/stats) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/integration) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/pkg/cors) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/pkg/crc) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/pkg/fileutil) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/pkg/flags) = %{version}-%{release}
|
|
|
12ae81 |
Provides: golang(%{import_path}/pkg/httputil) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/pkg/idutil) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/pkg/ioutil) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/pkg/netutil) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/pkg/osutil) = %{version}-%{release}
|
|
|
12ae81 |
Provides: golang(%{import_path}/pkg/pathutil) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/pkg/pbutil) = %{version}-%{release}
|
|
|
e9bdba |
Provides: golang(%{import_path}/pkg/runtime) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/pkg/testutil) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/pkg/timeutil) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/pkg/transport) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/pkg/types) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/pkg/wait) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/proxy) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/raft) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/raft/raftpb) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/raft/rafttest) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/rafthttp) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/snap) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/snap/snappb) = %{version}-%{release}
|
|
|
e9bdba |
Provides: golang(%{import_path}/storage) = %{version}-%{release}
|
|
|
e9bdba |
Provides: golang(%{import_path}/storage/backend) = %{version}-%{release}
|
|
|
e9bdba |
Provides: golang(%{import_path}/storage/storagepb) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/store) = %{version}-%{release}
|
|
|
e9bdba |
Provides: golang(%{import_path}/tools/functional-tester/etcd-agent/client) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/version) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/wal) = %{version}-%{release}
|
|
|
18e3f8 |
Provides: golang(%{import_path}/wal/walpb) = %{version}-%{release}
|
|
|
18e3f8 |
|
|
|
18e3f8 |
%description devel
|
|
|
18e3f8 |
golang development libraries for etcd, a highly-available key value store for
|
|
|
18e3f8 |
shared configuration.
|
|
|
18e3f8 |
%endif
|
|
|
18e3f8 |
|
|
|
12ae81 |
%if 0%{?with_unit_test} && 0%{?with_devel}
|
|
|
12ae81 |
%package unit-test
|
|
|
12ae81 |
Summary: Unit tests for %{name} package
|
|
|
12ae81 |
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
|
|
|
12ae81 |
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
|
|
|
12ae81 |
|
|
|
12ae81 |
%if 0%{?with_check}
|
|
|
12ae81 |
#Here comes all BuildRequires: PACKAGE the unit tests
|
|
|
12ae81 |
#in %%check section need for running
|
|
|
12ae81 |
%endif
|
|
|
12ae81 |
|
|
|
12ae81 |
# test subpackage tests code from devel subpackage
|
|
|
12ae81 |
Requires: %{name}-devel = %{version}-%{release}
|
|
|
12ae81 |
|
|
|
12ae81 |
%description unit-test
|
|
|
12ae81 |
%{summary}
|
|
|
12ae81 |
|
|
|
12ae81 |
This package contains unit tests for project
|
|
|
12ae81 |
providing packages with %{import_path} prefix.
|
|
|
12ae81 |
%endif
|
|
|
12ae81 |
|
|
|
319373 |
%prep
|
|
|
18e3f8 |
%setup -qn %{name}-%{version}
|
|
|
94616a |
%if ! 0%{?with_bundled}
|
|
|
18e3f8 |
rm -rf Godeps/_workspace/src/github.com/{codegangsta,coreos,stretchr,jonboulle}
|
|
|
18e3f8 |
rm -rf Godeps/_workspace/src/{code.google.com,bitbucket.org,golang.org}
|
|
|
18e3f8 |
|
|
|
18e3f8 |
find . -name "*.go" \
|
|
|
18e3f8 |
-print |\
|
|
|
18e3f8 |
xargs sed -i 's/github.com\/coreos\/etcd\/Godeps\/_workspace\/src\///g'
|
|
|
18e3f8 |
|
|
|
18e3f8 |
%endif
|
|
|
be5080 |
%patch0 -p1
|
|
|
94616a |
%patch1 -p1
|
|
|
319373 |
|
|
|
319373 |
%build
|
|
|
18e3f8 |
# Make link for etcd itself
|
|
|
18e3f8 |
mkdir -p src/github.com/coreos
|
|
|
18e3f8 |
ln -s ../../../ src/github.com/coreos/etcd
|
|
|
18e3f8 |
|
|
|
12ae81 |
%if ! 0%{?with_bundled}
|
|
|
e9bdba |
export GOPATH=$(pwd):%{gopath}
|
|
|
12ae81 |
%else
|
|
|
12ae81 |
export GOPATH=$(pwd):$(pwd)/Godeps/_workspace:%{gopath}
|
|
|
12ae81 |
%endif
|
|
|
94616a |
|
|
|
94616a |
%if 0%{?with_debug}
|
|
|
18e3f8 |
# *** ERROR: No build ID note found in /.../BUILDROOT/etcd-2.0.0-1.rc1.fc22.x86_64/usr/bin/etcd
|
|
|
12ae81 |
function gobuild { go build -a -installsuffix cgo -ldflags "-B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -X %{import_path}/version.GitSHA %{shortcommit}" -v -x "$@"; }
|
|
|
94616a |
%else
|
|
|
12ae81 |
function gobuild { go build -a -installsuffix cgo -ldflags "-X %{import_path}/version.GitSHA %{shortcommit}" "$@"; }
|
|
|
94616a |
%endif
|
|
|
94616a |
|
|
|
12ae81 |
export CGO_ENABLED=0
|
|
|
12ae81 |
|
|
|
18e3f8 |
gobuild -o bin/etcd %{import_path}
|
|
|
18e3f8 |
gobuild -o bin/etcdctl %{import_path}/etcdctl
|
|
|
319373 |
|
|
|
319373 |
%install
|
|
|
18e3f8 |
install -D -p -m 0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
|
|
|
18e3f8 |
install -D -p -m 0755 bin/%{name}ctl %{buildroot}%{_bindir}/%{name}ctl
|
|
|
18e3f8 |
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
|
|
|
18e3f8 |
install -d -m 0755 %{buildroot}%{_sysconfdir}/%{name}
|
|
|
18e3f8 |
install -m 644 -t %{buildroot}%{_sysconfdir}/%{name} %{SOURCE2}
|
|
|
c5056e |
|
|
|
319373 |
|
|
|
319373 |
# And create /var/lib/etcd
|
|
|
18e3f8 |
install -d -m 0755 %{buildroot}%{_sharedstatedir}/%{name}
|
|
|
18e3f8 |
|
|
|
94616a |
%if 0%{?with_devel}
|
|
|
12ae81 |
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
|
|
|
12ae81 |
echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
|
|
|
12ae81 |
# find all *.go but no *_test.go files and generate devel.file-list
|
|
|
12ae81 |
for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
|
|
|
12ae81 |
echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
|
|
|
12ae81 |
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
|
|
|
12ae81 |
cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
|
|
|
12ae81 |
echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
|
|
|
12ae81 |
done
|
|
|
12ae81 |
%endif
|
|
|
12ae81 |
|
|
|
12ae81 |
# testing files for this project
|
|
|
12ae81 |
%if 0%{?with_unit_test} && 0%{?with_devel}
|
|
|
12ae81 |
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
|
|
|
12ae81 |
# find all *_test.go files and generate unit-test.file-list
|
|
|
12ae81 |
for file in $(find . -iname "*_test.go"); do
|
|
|
12ae81 |
echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
|
|
|
12ae81 |
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
|
|
|
12ae81 |
cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
|
|
|
12ae81 |
echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list
|
|
|
18e3f8 |
done
|
|
|
18e3f8 |
%endif
|
|
|
c5056e |
|
|
|
12ae81 |
%if 0%{?with_devel}
|
|
|
12ae81 |
sort -u -o devel.file-list devel.file-list
|
|
|
12ae81 |
%endif
|
|
|
12ae81 |
|
|
|
319373 |
%check
|
|
|
12ae81 |
%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
|
|
|
12ae81 |
%if ! 0%{?with_bundled}
|
|
|
12ae81 |
export GOPATH=%{buildroot}/%{gopath}:%{gopath}
|
|
|
94616a |
%else
|
|
|
12ae81 |
export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
|
|
|
12ae81 |
%endif
|
|
|
12ae81 |
|
|
|
12ae81 |
%if ! 0%{?gotest:1}
|
|
|
12ae81 |
%global gotest go test
|
|
|
94616a |
%endif
|
|
|
12ae81 |
|
|
|
12ae81 |
#%gotest %{import_path}/client
|
|
|
12ae81 |
%gotest %{import_path}/discovery
|
|
|
12ae81 |
%gotest %{import_path}/error
|
|
|
12ae81 |
%gotest %{import_path}/etcdctl/command
|
|
|
12ae81 |
%gotest %{import_path}/etcdmain
|
|
|
12ae81 |
#%gotest %{import_path}/etcdserver
|
|
|
12ae81 |
%gotest %{import_path}/etcdserver/auth
|
|
|
12ae81 |
#%gotest %{import_path}/etcdserver/etcdhttp
|
|
|
12ae81 |
#%gotest %{import_path}/etcdserver/etcdhttp/httptypes
|
|
|
12ae81 |
#%gotest %{import_path}/integration
|
|
|
12ae81 |
#%gotest %{import_path}/pkg/cors
|
|
|
12ae81 |
%gotest %{import_path}/pkg/crc
|
|
|
12ae81 |
#%gotest %{import_path}/pkg/fileutil
|
|
|
12ae81 |
%gotest %{import_path}/pkg/flags
|
|
|
12ae81 |
%gotest %{import_path}/pkg/idutil
|
|
|
12ae81 |
%gotest %{import_path}/pkg/ioutil
|
|
|
12ae81 |
%gotest %{import_path}/pkg/netutil
|
|
|
12ae81 |
%gotest %{import_path}/pkg/osutil
|
|
|
12ae81 |
%gotest %{import_path}/pkg/pathutil
|
|
|
12ae81 |
%gotest %{import_path}/pkg/pbutil
|
|
|
12ae81 |
%gotest %{import_path}/pkg/timeutil
|
|
|
12ae81 |
#%gotest %{import_path}/pkg/transport
|
|
|
12ae81 |
%gotest %{import_path}/pkg/types
|
|
|
12ae81 |
%gotest %{import_path}/pkg/wait
|
|
|
12ae81 |
%gotest %{import_path}/proxy
|
|
|
12ae81 |
%gotest %{import_path}/raft
|
|
|
12ae81 |
#%gotest %{import_path}/raft/rafttest
|
|
|
12ae81 |
%gotest %{import_path}/rafthttp
|
|
|
12ae81 |
%gotest %{import_path}/snap
|
|
|
12ae81 |
#%gotest %{import_path}/storage
|
|
|
12ae81 |
#%gotest %{import_path}/storage/backend
|
|
|
12ae81 |
#%gotest %{import_path}/store
|
|
|
12ae81 |
#%gotest %{import_path}/tools/functional-tester/etcd-agent
|
|
|
12ae81 |
%gotest %{import_path}/version
|
|
|
12ae81 |
%gotest %{import_path}/wal
|
|
|
18e3f8 |
%endif
|
|
|
319373 |
|
|
|
319373 |
%pre
|
|
|
18e3f8 |
getent group %{name} >/dev/null || groupadd -r %{name}
|
|
|
18e3f8 |
getent passwd %{name} >/dev/null || useradd -r -g %{name} -d %{_sharedstatedir}/%{name} \
|
|
|
18e3f8 |
-s /sbin/nologin -c "etcd user" %{name}
|
|
|
18e3f8 |
|
|
|
319373 |
%post
|
|
|
319373 |
%systemd_post %{name}.service
|
|
|
319373 |
|
|
|
319373 |
%preun
|
|
|
319373 |
%systemd_preun %{name}.service
|
|
|
319373 |
|
|
|
319373 |
%postun
|
|
|
319373 |
%systemd_postun %{name}.service
|
|
|
319373 |
|
|
|
12ae81 |
#define license tag if not already defined
|
|
|
12ae81 |
%{!?_licensedir:%global license %doc}
|
|
|
12ae81 |
|
|
|
319373 |
%files
|
|
|
12ae81 |
%license LICENSE
|
|
|
12ae81 |
%doc README.md Documentation/internal-protocol-versioning.md
|
|
|
12ae81 |
%doc Godeps/Godeps.json
|
|
|
18e3f8 |
%config(noreplace) %{_sysconfdir}/%{name}
|
|
|
18e3f8 |
%{_bindir}/%{name}
|
|
|
18e3f8 |
%{_bindir}/%{name}ctl
|
|
|
18e3f8 |
%dir %attr(-,%{name},%{name}) %{_sharedstatedir}/%{name}
|
|
|
319373 |
%{_unitdir}/%{name}.service
|
|
|
319373 |
|
|
|
94616a |
%if 0%{?with_devel}
|
|
|
12ae81 |
%files devel -f devel.file-list
|
|
|
12ae81 |
%license LICENSE
|
|
|
12ae81 |
%doc README.md Documentation/internal-protocol-versioning.md
|
|
|
18e3f8 |
%doc Godeps/Godeps.json
|
|
|
12ae81 |
%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
|
|
|
12ae81 |
%endif
|
|
|
12ae81 |
|
|
|
12ae81 |
%if 0%{?with_unit_test}
|
|
|
12ae81 |
%files unit-test -f unit-test.file-list
|
|
|
12ae81 |
%license LICENSE
|
|
|
12ae81 |
%doc README.md Documentation/internal-protocol-versioning.md
|
|
|
18e3f8 |
%endif
|
|
|
319373 |
|
|
|
18e3f8 |
%changelog
|
|
|
b6dfdf |
* Thu Mar 03 2016 jchaloup <jchaloup@redhat.com> - 2.2.5-1
|
|
|
b6dfdf |
- Update to 2.2.5
|
|
|
b6dfdf |
resolves: #1314351
|
|
|
b6dfdf |
|
|
|
b6dfdf |
* Fri Jan 08 2016 jchaloup <jchaloup@redhat.com> - 2.2.2-6
|
|
|
b6dfdf |
- -strict-reconfig-check flag not yet in v2.2.2
|
|
|
b6dfdf |
|
|
|
12ae81 |
* Tue Dec 29 2015 jchaloup <jchaloup@redhat.com> - 2.2.2-5
|
|
|
12ae81 |
- go < 1.5 needs "-installsuffix cgo" too to accept CGO_ENABLED
|
|
|
12ae81 |
|
|
|
12ae81 |
* Tue Dec 29 2015 jchaloup <jchaloup@redhat.com> - 2.2.2-4
|
|
|
12ae81 |
- set CGO_ENABLED=0 when building etcd,
|
|
|
12ae81 |
otherwise the binary is dynamically linked to glibc libraries
|
|
|
12ae81 |
|
|
|
12ae81 |
* Tue Dec 29 2015 jchaloup <jchaloup@redhat.com> - 2.2.2-3
|
|
|
12ae81 |
- bump release (2.2.2-2 already built)
|
|
|
12ae81 |
|
|
|
12ae81 |
* Tue Dec 29 2015 jchaloup <jchaloup@redhat.com> - 2.2.2-2
|
|
|
12ae81 |
- add missing options to etcd help
|
|
|
12ae81 |
resolves: #1283119
|
|
|
12ae81 |
- change type to notify in etcd.service
|
|
|
12ae81 |
resolves: #1269939
|
|
|
12ae81 |
- add more information when running etcd as a service
|
|
|
12ae81 |
resolves: #1263077
|
|
|
12ae81 |
|
|
|
12ae81 |
* Tue Dec 29 2015 jchaloup <jchaloup@redhat.com> - 2.2.2-1
|
|
|
12ae81 |
- Update to v2.2.2
|
|
|
12ae81 |
resolves: #1294702
|
|
|
12ae81 |
- update etcd.conf (add new options)
|
|
|
12ae81 |
- build with debug info
|
|
|
12ae81 |
- polish spec file
|
|
|
12ae81 |
|
|
|
12ae81 |
* Mon Nov 16 2015 jchaloup <jchaloup@redhat.com> - 2.1.1-4
|
|
|
12ae81 |
- Update etcd.conf: add new flag and fix -snapshot-count
|
|
|
12ae81 |
resolves: #1282393
|
|
|
12ae81 |
|
|
|
12ae81 |
* Fri Oct 30 2015 jchaloup <jchaloup@redhat.com> - 2.1.1-3
|
|
|
12ae81 |
- Add After=network-online.target and Wants=network-online.target
|
|
|
12ae81 |
to etcd.service
|
|
|
12ae81 |
resolves: #1276732
|
|
|
12ae81 |
|
|
|
e9bdba |
* Thu Jul 30 2015 jchaloup <jchaloup@redhat.com> - 2.1.1-2
|
|
|
e9bdba |
- Update to v2.1.1 in RHEL
|
|
|
e9bdba |
resolves: #1250707
|
|
|
e9bdba |
|
|
|
e9bdba |
* Mon Jul 20 2015 jchaloup <jchaloup@redhat.com> - 2.1.1-1
|
|
|
e9bdba |
- fix definition of GOPATH for go1.5
|
|
|
e9bdba |
- fix definition of gobuild function for non-debug way
|
|
|
e9bdba |
- Update to v2.1.1
|
|
|
e9bdba |
resolves: #1214958
|
|
|
e9bdba |
|
|
|
e9bdba |
* Fri Jul 10 2015 jchaloup <jchaloup@redhat.com> - 2.0.13-3
|
|
|
e9bdba |
- set GOMAXPROCS to use all processors available
|
|
|
e9bdba |
|
|
|
e9bdba |
* Mon Jun 29 2015 jchaloup <jchaloup@redhat.com> - 2.0.13-2
|
|
|
e9bdba |
- Remove -s option from -ldflags string as it removes symbol table
|
|
|
e9bdba |
'go tool l6' gives explanation of all available options
|
|
|
e9bdba |
resolves: #1236320
|
|
|
e9bdba |
- Set implicit value for ETCD_ADVERTISE_CLIENT_URLS if not set accordingly
|
|
|
94616a |
Config files of etcd < 2.0.11-2 does not set ETCD_ADVERTISE_CLIENT_URLS
|
|
|
e9bdba |
if ETCD_LISTEN_CLIENT_URLS is. Causing etcd to fail when updated to newe
|
|
|
94616a |
resolves: #1236706
|
|
|
94616a |
|
|
|
94616a |
* Fri Jun 26 2015 jchaloup <jchaloup@redhat.com> - 2.0.13-1
|
|
|
94616a |
- Update to v2.0.13
|
|
|
94616a |
|
|
|
94616a |
* Thu Jun 25 2015 jchaloup <jchaloup@redhat.com> - 2.0.12-2
|
|
|
94616a |
- Add restart policy and set LimitNOFILE to/in etcd.service file
|
|
|
94616a |
- Update etcd.config file: add new flags and remove depricated
|
|
|
94616a |
- Update 'go build' flags for GIT_SHA (used in build script)
|
|
|
94616a |
- Don't use 4001 and 7001 ports in etcd.conf, they are replaced with 2379 and 2380
|
|
|
94616a |
|
|
|
94616a |
* Wed Jun 24 2015 jchaloup <jchaloup@redhat.com> - 2.0.12-1
|
|
|
94616a |
- Update to v2.0.12
|
|
|
94616a |
- Polish spec file
|
|
|
94616a |
|
|
|
e9bdba |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.11-3
|
|
|
e9bdba |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
e9bdba |
|
|
|
be5080 |
* Fri May 22 2015 jchaloup <jchaloup@redhat.com> - 2.0.11-2
|
|
|
be5080 |
- ETCD_ADVERTISE_CLIENT_URLS has to be set if ETCD_LISTEN_CLIENT_URLS is
|
|
|
e9bdba |
related: #1222416
|
|
|
be5080 |
|
|
|
e9bdba |
* Mon May 18 2015 jchaloup <jchaloup@redhat.com> - 2.0.11-1
|
|
|
e9bdba |
- Update to v2.0.11
|
|
|
e9bdba |
resolves: #1222416
|
|
|
be5080 |
|
|
|
e9bdba |
* Thu Apr 23 2015 jchaloup <jchaloup@redhat.com> - 2.0.10-1
|
|
|
e9bdba |
- Update to v2.0.10
|
|
|
e9bdba |
resolves: #1214705
|
|
|
18e3f8 |
|
|
|
18e3f8 |
* Wed Apr 08 2015 jchaloup <jchaloup@redhat.com> - 2.0.9-1
|
|
|
18e3f8 |
- Update to v2.0.9
|
|
|
e9bdba |
resolves: #1209666
|
|
|
18e3f8 |
|
|
|
18e3f8 |
* Fri Apr 03 2015 jchaloup <jchaloup@redhat.com> - 2.0.8-0.2
|
|
|
18e3f8 |
- Update spec file to fit for rhel too (thanks to eparis)
|
|
|
e9bdba |
related: #1207881
|
|
|
18e3f8 |
|
|
|
18e3f8 |
* Wed Apr 01 2015 jchaloup <jchaloup@redhat.com> - 2.0.8-0.1
|
|
|
18e3f8 |
- Update to v2.0.8
|
|
|
18e3f8 |
resolves: #1207881
|
|
|
18e3f8 |
|
|
|
18e3f8 |
* Tue Mar 31 2015 jchaloup <jchaloup@redhat.com> - 2.0.7-0.1
|
|
|
18e3f8 |
- Update to v2.0.7
|
|
|
18e3f8 |
Add Godeps.json to doc
|
|
|
18e3f8 |
related: #1191441
|
|
|
18e3f8 |
|
|
|
18e3f8 |
* Thu Mar 12 2015 jchaloup <jchaloup@redhat.com> - 2.0.5-0.1
|
|
|
18e3f8 |
- Bump to 9481945228b97c5d019596b921d8b03833964d9e (v2.0.5)
|
|
|
18e3f8 |
|
|
|
18e3f8 |
* Tue Mar 10 2015 Eric Paris <eparis@redhat.com> - 2.0.3-0.2
|
|
|
18e3f8 |
- Fix .service files to work if no config file
|
|
|
18e3f8 |
|
|
|
18e3f8 |
* Fri Feb 20 2015 jchaloup <jchaloup@redhat.com> - 2.0.3-0.1
|
|
|
18e3f8 |
- Bump to upstream 4d728cc8c488a545a8bdeafd054d9ccc2bfb6876
|
|
|
18e3f8 |
|
|
|
18e3f8 |
* Wed Feb 18 2015 jchaloup <jchaloup@redhat.com> - 2.0.1-0.2
|
|
|
18e3f8 |
- Update configuration and service file
|
|
|
18e3f8 |
Fix depricated ErrWrongType after update of gogo/protobuf
|
|
|
18e3f8 |
related: #1191441
|
|
|
18e3f8 |
|
|
|
18e3f8 |
* Wed Feb 11 2015 jchaloup <jchaloup@redhat.com> - 2.0.1-0.1
|
|
|
18e3f8 |
- Update to 2.0.1
|
|
|
18e3f8 |
resolves: #1191441
|
|
|
18e3f8 |
|
|
|
18e3f8 |
* Mon Feb 09 2015 jchaloup <jchaloup@redhat.com> - 2.0.0-0.5
|
|
|
18e3f8 |
- Add missing debug info to binaries (patch from Jan Kratochvil)
|
|
|
18e3f8 |
resolves: #1184257
|
|
|
18e3f8 |
|
|
|
18e3f8 |
* Fri Jan 30 2015 jchaloup <jchaloup@redhat.com> - 2.0.0-0.4
|
|
|
18e3f8 |
- Update to etcd-2.0.0
|
|
|
18e3f8 |
- use gopath as the last directory to search for source code
|
|
|
18e3f8 |
related: #1176138
|
|
|
18e3f8 |
|
|
|
18e3f8 |
* Mon Jan 26 2015 jchaloup <jchaloup@redhat.com> - 2.0.0-0.3.rc1
|
|
|
18e3f8 |
- default to /var/lib/etcd/default.etcd as 2.0 uses that default (f21 commit byt eparis)
|
|
|
18e3f8 |
related: #1176138
|
|
|
18e3f8 |
fix /etc/etcd/etcd.conf path
|
|
|
18e3f8 |
|
|
|
18e3f8 |
* Tue Jan 20 2015 jchaloup <jchaloup@redhat.com> - 2.0.0-0.2.rc1
|
|
|
18e3f8 |
- Update of BuildRequires/Requires, Provides and test
|
|
|
18e3f8 |
Add BuildRequire on jonboulle/clockwork
|
|
|
18e3f8 |
related: #1176138
|
|
|
18e3f8 |
|
|
|
18e3f8 |
* Tue Dec 23 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2.0.0-0.1.rc1
|
|
|
18e3f8 |
- Resolves: rhbz#1176138 - update to v2.0.0-rc1
|
|
|
18e3f8 |
- do not redefine gopath
|
|
|
18e3f8 |
- use jonboulle/clockwork from within Godeps
|
|
|
18e3f8 |
|
|
|
18e3f8 |
* Fri Oct 17 2014 jchaloup <jchaloup@redhat.com> - 0.4.6-7
|
|
|
18e3f8 |
- Add ExclusiveArch for go_arches
|
|
|
18e3f8 |
|
|
|
18e3f8 |
* Mon Oct 06 2014 jchaloup <jchaloup@redhat.com> - 0.4.6-6
|
|
|
18e3f8 |
- related: #1047194
|
|
|
18e3f8 |
Remove dependency on go.net
|
|
|
18e3f8 |
|
|
|
18e3f8 |
* Mon Oct 06 2014 jchaloup <jchaloup@redhat.com> - 0.4.6-5
|
|
|
18e3f8 |
- Fix the .service file so it can launch!
|
|
|
18e3f8 |
related: #1047194
|
|
|
319373 |
|
|
|
319373 |
* Mon Sep 22 2014 jchaloup <jchaloup@redhat.com> - 0.4.6-4
|
|
|
319373 |
- resolves: #1047194
|
|
|
319373 |
Update to 0.4.6 from https://github.com/projectatomic/etcd-package
|
|
|
319373 |
|
|
|
319373 |
* Tue Aug 19 2014 Adam Miller <maxamillion@fedoraproject.org> - 0.4.6-3
|
|
|
319373 |
- Add devel sub-package
|
|
|
319373 |
|
|
|
319373 |
* Wed Aug 13 2014 Eric Paris <eparis@redhat.com> - 0.4.6-2
|
|
|
319373 |
- Bump to 0.4.6
|
|
|
319373 |
- run as etcd, not root
|
|
|
319373 |
|
|
|
319373 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-6
|
|
|
319373 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
319373 |
|
|
|
319373 |
* Sun Oct 20 2013 Peter Lemenkov <lemenkov@gmail.com> - 0.1.2-5
|
|
|
319373 |
- goprotobuf library unbundled (see rhbz #1018477)
|
|
|
319373 |
- go-log library unbundled (see rhbz #1018478)
|
|
|
319373 |
- go-raft library unbundled (see rhbz #1018479)
|
|
|
319373 |
- go-systemd library unbundled (see rhbz #1018480)
|
|
|
319373 |
- kardianos library unbundled (see rhbz #1018481)
|
|
|
319373 |
|
|
|
319373 |
* Sun Oct 13 2013 Peter Lemenkov <lemenkov@gmail.com> - 0.1.2-4
|
|
|
319373 |
- go.net library unbundled (see rhbz #1018476)
|
|
|
319373 |
|
|
|
319373 |
* Sat Oct 12 2013 Peter Lemenkov <lemenkov@gmail.com> - 0.1.2-3
|
|
|
319373 |
- Prepare for packages unbundling
|
|
|
319373 |
- Verbose build
|
|
|
319373 |
|
|
|
319373 |
* Sat Oct 12 2013 Peter Lemenkov <lemenkov@gmail.com> - 0.1.2-2
|
|
|
319373 |
- Fix typo in the etc.service file
|
|
|
319373 |
|
|
|
319373 |
* Sat Oct 12 2013 Peter Lemenkov <lemenkov@gmail.com> - 0.1.2-1
|
|
|
319373 |
- Ver. 0.1.2
|
|
|
319373 |
- Integrate with systemd
|
|
|
319373 |
|
|
|
319373 |
* Mon Aug 26 2013 Luke Cypret <cypret@fedoraproject.org> - 0.1.1-1
|
|
|
319373 |
- Initial creation
|