Blame SPECS/etcd.spec

94616a
%global with_devel 0
94616a
%global with_bundled 1
12ae81
%global with_debug 1
94616a
%global with_check 0
4ca5d9
%global with_unit_test 0
94616a
94616a
%if 0%{?with_debug}
18e3f8
%global _dwz_low_mem_die_limit 0
18e3f8
%else
18e3f8
%global debug_package   %{nil}
18e3f8
%endif
4ca5d9
4ca5d9
%if ! 0%{?gobuild:1}
dd7e87
%define gobuild(o:) go build -buildmode pie -tags=rpm_crashtraceback -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '-Wl,-z,relro'" -a -v -x %{?**};
4ca5d9
%endif
4ca5d9
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}
dd7e87
%global commit          f1d7dd87da3e8feab4aaf675b8e29c6a5ed5f58b
be5080
%global shortcommit     %(c=%{commit}; echo ${c:0:7})
18e3f8
4ca5d9
%global system_name     etcd
4ca5d9
4ca5d9
Name:		etcd
dd7e87
Version:	3.2.9
dd7e87
Release:	3%{?dist}
319373
Summary:	A highly-available key value store for shared configuration
319373
License:	ASL 2.0
b6dfdf
URL:		https://%{provider_prefix}
4ca5d9
Source0:	https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
4ca5d9
Source1:	%{system_name}.service
4ca5d9
Source2:	%{system_name}.conf
dd7e87
Source3:        man-%{version}-1.tar.gz
4ca5d9
Patch2:         0001-change-import-paths.patch
e4deaa
Patch3:         bz1350875-disaster-recovery-with-copies.patch
f67c12
Patch4:         expand-etcd-arch-validation.patch
94616a
4ca5d9
# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
f67c12
ExclusiveArch:  %{?go_arches:%{go_arches}}%{!?go_arches:x86_64 aarch64 ppc64le s390x}
4ca5d9
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
4ca5d9
BuildRequires:  %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
4ca5d9
4ca5d9
Obsoletes: etcd3 < 3.0.15
4ca5d9
Provides: etcd3 = %{version}-%{release}
12ae81
94616a
%if ! 0%{?with_bundled}
4ca5d9
BuildRequires: golang(github.com/akrennmair/gopcap)
e9bdba
BuildRequires: golang(github.com/bgentry/speakeasy)
e9bdba
BuildRequires: golang(github.com/boltdb/bolt)
4ca5d9
BuildRequires: golang(github.com/cheggaaa/pb)
4ca5d9
BuildRequires: golang(github.com/cockroachdb/cmux)
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)
4ca5d9
BuildRequires: golang(github.com/dustin/go-humanize)
4ca5d9
BuildRequires: golang(github.com/ghodss/yaml)
e9bdba
BuildRequires: golang(github.com/gogo/protobuf/proto)
e9bdba
BuildRequires: golang(github.com/google/btree)
e9bdba
BuildRequires: golang(github.com/jonboulle/clockwork)
4ca5d9
BuildRequires: golang(github.com/kr/pty)
4ca5d9
BuildRequires: golang(github.com/olekukonko/tablewriter)
e9bdba
BuildRequires: golang(github.com/prometheus/client_golang/prometheus)
e9bdba
BuildRequires: golang(github.com/prometheus/procfs)
4ca5d9
BuildRequires: golang(github.com/spacejam/loghisto)
4ca5d9
BuildRequires: golang(github.com/spf13/cobra)
4ca5d9
BuildRequires: golang(github.com/spf13/pflag)
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)
4ca5d9
BuildRequires: golang(golang.org/x/net/http2)
e9bdba
BuildRequires: golang(google.golang.org/grpc)
4ca5d9
BuildRequires: golang(google.golang.org/grpc/codes)
4ca5d9
BuildRequires: golang(google.golang.org/grpc/credentials)
4ca5d9
BuildRequires: golang(google.golang.org/grpc/grpclog)
4ca5d9
BuildRequires: golang(google.golang.org/grpc/transport)
4ca5d9
%else
4ca5d9
BuildRequires: libpcap-devel
18e3f8
%endif
4ca5d9
319373
BuildRequires:	systemd
4ca5d9
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}
4ca5d9
BuildRequires: golang(github.com/cheggaaa/pb)
4ca5d9
BuildRequires: golang(github.com/bgentry/speakeasy)
4ca5d9
BuildRequires: golang(github.com/boltdb/bolt)
4ca5d9
BuildRequires: golang(github.com/cockroachdb/cmux)
4ca5d9
BuildRequires: golang(github.com/codegangsta/cli)
4ca5d9
BuildRequires: golang(github.com/coreos/go-semver/semver)
4ca5d9
BuildRequires: golang(github.com/coreos/go-systemd/daemon)
4ca5d9
BuildRequires: golang(github.com/coreos/go-systemd/util)
4ca5d9
BuildRequires: golang(github.com/coreos/pkg/capnslog)
4ca5d9
BuildRequires: golang(github.com/dustin/go-humanize)
4ca5d9
BuildRequires: golang(github.com/ghodss/yaml)
4ca5d9
BuildRequires: golang(github.com/gogo/protobuf/proto)
4ca5d9
BuildRequires: golang(github.com/google/btree)
4ca5d9
BuildRequires: golang(github.com/jonboulle/clockwork)
4ca5d9
BuildRequires: golang(github.com/kr/pty)
4ca5d9
BuildRequires: golang(github.com/olekukonko/tablewriter)
4ca5d9
BuildRequires: golang(github.com/prometheus/client_golang/prometheus)
4ca5d9
BuildRequires: golang(github.com/prometheus/procfs)
4ca5d9
BuildRequires: golang(github.com/spf13/cobra)
4ca5d9
BuildRequires: golang(github.com/spf13/pflag)
4ca5d9
BuildRequires: golang(github.com/ugorji/go/codec)
4ca5d9
BuildRequires: golang(github.com/xiang90/probing)
4ca5d9
BuildRequires: golang(golang.org/x/crypto/bcrypt)
4ca5d9
BuildRequires: golang(golang.org/x/net/context)
4ca5d9
BuildRequires: golang(golang.org/x/net/http2)
4ca5d9
BuildRequires: golang(google.golang.org/grpc)
4ca5d9
BuildRequires: golang(google.golang.org/grpc/codes)
4ca5d9
BuildRequires: golang(google.golang.org/grpc/credentials)
4ca5d9
BuildRequires: golang(google.golang.org/grpc/grpclog)
12ae81
%endif
e9bdba
4ca5d9
Requires: golang(github.com/cheggaaa/pb)
e9bdba
Requires: golang(github.com/bgentry/speakeasy)
e9bdba
Requires: golang(github.com/boltdb/bolt)
4ca5d9
Requires: golang(github.com/cockroachdb/cmux)
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)
4ca5d9
Requires: golang(github.com/dustin/go-humanize)
4ca5d9
Requires: golang(github.com/ghodss/yaml)
e9bdba
Requires: golang(github.com/gogo/protobuf/proto)
e9bdba
Requires: golang(github.com/google/btree)
94616a
Requires: golang(github.com/jonboulle/clockwork)
4ca5d9
Requires: golang(github.com/kr/pty)
4ca5d9
Requires: golang(github.com/olekukonko/tablewriter)
e9bdba
Requires: golang(github.com/prometheus/client_golang/prometheus)
e9bdba
Requires: golang(github.com/prometheus/procfs)
4ca5d9
Requires: golang(github.com/spf13/cobra)
4ca5d9
Requires: golang(github.com/spf13/pflag)
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)
4ca5d9
Requires: golang(golang.org/x/net/http2)
e9bdba
Requires: golang(google.golang.org/grpc)
4ca5d9
Requires: golang(google.golang.org/grpc/codes)
4ca5d9
Requires: golang(google.golang.org/grpc/credentials)
4ca5d9
Requires: golang(google.golang.org/grpc/grpclog)
e9bdba
4ca5d9
Provides: golang(%{import_path}/alarm) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/auth) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/auth/authpb) = %{version}-%{release}
18e3f8
Provides: golang(%{import_path}/client) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/clientv3) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/clientv3/concurrency) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/clientv3/integration) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/clientv3/mirror) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/compactor) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/contrib/recipes) = %{version}-%{release}
18e3f8
Provides: golang(%{import_path}/discovery) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/e2e) = %{version}-%{release}
18e3f8
Provides: golang(%{import_path}/error) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/etcdctl/ctlv2) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/etcdctl/ctlv2/command) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/etcdctl/ctlv3) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/etcdctl/ctlv3/command) = %{version}-%{release}
18e3f8
Provides: golang(%{import_path}/etcdmain) = %{version}-%{release}
18e3f8
Provides: golang(%{import_path}/etcdserver) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/etcdserver/api) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/etcdserver/api/v2http) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/etcdserver/api/v2http/httptypes) = %{version}-%{release}
12ae81
Provides: golang(%{import_path}/etcdserver/api/v3rpc) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/etcdserver/api/v3rpc/rpctypes) = %{version}-%{release}
e9bdba
Provides: golang(%{import_path}/etcdserver/auth) = %{version}-%{release}
18e3f8
Provides: golang(%{import_path}/etcdserver/etcdserverpb) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/etcdserver/membership) = %{version}-%{release}
18e3f8
Provides: golang(%{import_path}/etcdserver/stats) = %{version}-%{release}
18e3f8
Provides: golang(%{import_path}/integration) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/lease) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/lease/leasehttp) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/lease/leasepb) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/mvcc) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/mvcc/backend) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/mvcc/mvccpb) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/pkg/adt) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/pkg/contention) = %{version}-%{release}
18e3f8
Provides: golang(%{import_path}/pkg/cors) = %{version}-%{release}
18e3f8
Provides: golang(%{import_path}/pkg/crc) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/pkg/expect) = %{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}
4ca5d9
Provides: golang(%{import_path}/pkg/logutil) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/pkg/mock/mockstorage) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/pkg/mock/mockstore) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/pkg/mock/mockwait) = %{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}
4ca5d9
Provides: golang(%{import_path}/pkg/schedule) = %{version}-%{release}
18e3f8
Provides: golang(%{import_path}/pkg/testutil) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/pkg/tlsutil) = %{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}
4ca5d9
Provides: golang(%{import_path}/proxy/httpproxy) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/proxy/tcpproxy) = %{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}
18e3f8
Provides: golang(%{import_path}/store) = %{version}-%{release}
4ca5d9
Provides: golang(%{import_path}/tools/benchmark/cmd) = %{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
dd7e87
%setup -q -n man-%{version} -T -b 3
4ca5d9
%setup -q -n %{repo}-%{commit}
dd7e87
mkdir -p man/man1
dd7e87
cp ../man-%{version}/*.1 man/man1/.
dd7e87
4ca5d9
# move content of vendor under Godeps as has been so far
4ca5d9
mkdir -p Godeps/_workspace/src
4ca5d9
mv cmd/vendor/* Godeps/_workspace/src/.
18e3f8
4ca5d9
%if ! 0%{?with_bundled}
e00f1a
%patch2 -p1
4ca5d9
%endif
319373
e4deaa
%patch3 -p1
f67c12
%patch4 -p1
e4deaa
319373
%build
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
4ca5d9
%if ! 0%{?with_debug}
e4deaa
export LDFLAGS="-X %{import_path}/version.GitSHA=%{shortcommit}"
94616a
%else
e4deaa
export LDFLAGS="-X %{import_path}/version.GitSHA=%{shortcommit} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n')"
94616a
%endif
94616a
e4deaa
%gobuild -o bin/%{system_name} %{import_path}
4ca5d9
%gobuild -o bin/%{system_name}ctl %{import_path}/%{system_name}ctl
319373
319373
%install
4ca5d9
install -D -p -m 0755 bin/%{system_name} %{buildroot}%{_bindir}/%{system_name}
4ca5d9
install -D -p -m 0755 bin/%{system_name}ctl %{buildroot}%{_bindir}/%{system_name}ctl
4ca5d9
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{system_name}.service
4ca5d9
install -d -m 0755 %{buildroot}%{_sysconfdir}/%{system_name}
4ca5d9
install -m 644 -t %{buildroot}%{_sysconfdir}/%{system_name} %{SOURCE2}
319373
dd7e87
# install manpages
dd7e87
install -d %{buildroot}%{_mandir}/man1
dd7e87
install -p -m 644 man/man1/* %{buildroot}%{_mandir}/man1
dd7e87
319373
# And create /var/lib/etcd
4ca5d9
install -d -m 0755 %{buildroot}%{_sharedstatedir}/%{system_name}
18e3f8
4ca5d9
# source codes for building projects
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
4ca5d9
export BIN_PATH="$(pwd)/bin"
4ca5d9
4ca5d9
%gotest %{import_path}/client
4ca5d9
%gotest %{import_path}/clientv3
4ca5d9
%gotest %{import_path}/clientv3/integration
4ca5d9
%gotest %{import_path}/compactor
4ca5d9
%gotest %{import_path}/contrib/raftexample
12ae81
%gotest %{import_path}/discovery
4ca5d9
#%%gotest %%{import_path}/e2e
12ae81
%gotest %{import_path}/error
12ae81
%gotest %{import_path}/etcdctl/command
12ae81
%gotest %{import_path}/etcdmain
4ca5d9
%gotest %{import_path}/etcdserver
12ae81
%gotest %{import_path}/etcdserver/auth
12ae81
#%gotest %{import_path}/etcdserver/etcdhttp
12ae81
#%gotest %{import_path}/etcdserver/etcdhttp/httptypes
4ca5d9
#%%gotest %%{import_path}/integration
4ca5d9
%gotest %{import_path}/lease
4ca5d9
%gotest %{import_path}/pkg/adt
4ca5d9
%gotest %{import_path}/pkg/cors
12ae81
%gotest %{import_path}/pkg/crc
4ca5d9
%gotest %{import_path}/pkg/fileutil
12ae81
%gotest %{import_path}/pkg/flags
12ae81
%gotest %{import_path}/pkg/idutil
12ae81
%gotest %{import_path}/pkg/ioutil
4ca5d9
%gotest %{import_path}/pkg/logutil
12ae81
%gotest %{import_path}/pkg/netutil
12ae81
%gotest %{import_path}/pkg/osutil
12ae81
%gotest %{import_path}/pkg/pathutil
12ae81
%gotest %{import_path}/pkg/pbutil
4ca5d9
%gotest %{import_path}/pkg/schedule
4ca5d9
%gotest %{import_path}/pkg/testutil
4ca5d9
%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
4ca5d9
%gotest %{import_path}/raft/rafttest
12ae81
%gotest %{import_path}/rafthttp
12ae81
%gotest %{import_path}/snap
4ca5d9
%gotest %{import_path}/storage
4ca5d9
%gotest %{import_path}/storage/backend
4ca5d9
%gotest %{import_path}/store
4ca5d9
%gotest %{import_path}/tools/functional-tester/etcd-agent
12ae81
%gotest %{import_path}/version
12ae81
%gotest %{import_path}/wal
18e3f8
%endif
319373
319373
%pre
4ca5d9
getent group %{system_name} >/dev/null || groupadd -r %{system_name}
4ca5d9
getent passwd %{system_name} >/dev/null || useradd -r -g %{system_name} -d %{_sharedstatedir}/%{system_name} \
4ca5d9
	-s /sbin/nologin -c "etcd user" %{system_name}
18e3f8
319373
%post
4ca5d9
%systemd_post %{system_name}.service
319373
319373
%preun
4ca5d9
%systemd_preun %{system_name}.service
319373
319373
%postun
4ca5d9
%systemd_postun %{system_name}.service
319373
12ae81
#define license tag if not already defined
12ae81
%{!?_licensedir:%global license %doc}
12ae81
319373
%files
12ae81
%license LICENSE
4ca5d9
%doc *.md
e4deaa
%doc glide.lock
4ca5d9
%config(noreplace) %{_sysconfdir}/%{system_name}
4ca5d9
%{_bindir}/%{system_name}
4ca5d9
%{_bindir}/%{system_name}ctl
4ca5d9
%dir %attr(-,%{system_name},%{system_name}) %{_sharedstatedir}/%{system_name}
4ca5d9
%{_unitdir}/%{system_name}.service
dd7e87
%{_mandir}/man1/*.1*
319373
94616a
%if 0%{?with_devel}
12ae81
%files devel -f devel.file-list
12ae81
%license LICENSE
4ca5d9
%doc *.md
e4deaa
%doc glide.lock
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
4ca5d9
%doc *.md
18e3f8
%endif
319373
18e3f8
%changelog
dd7e87
* Mon Nov 20 2017 Jan Chaloupka <jchaloup@redhat.com> - 3.2.9-3
dd7e87
- Bump man-pages tarball
dd7e87
  related: #1510480
dd7e87
dd7e87
* Mon Nov 20 2017 Jan Chaloupka <jchaloup@redhat.com> - 3.2.9-2
dd7e87
- Fix Synopsis of etcdctl3 man pages
dd7e87
  related: #1510480
dd7e87
dd7e87
* Tue Nov 07 2017 Jan Chaloupka <jchaloup@redhat.com> - 3.2.9-1
dd7e87
- Update to 3.2.9
dd7e87
  resolves: #1510480
dd7e87
- Generate etcd and etcdctl man-pages
dd7e87
  resolves: #1444336
dd7e87
dd7e87
* Fri Sep 29 2017 Jan Chaloupka <jchaloup@redhat.com> - 3.2.7-2
dd7e87
- Rebuild with correct hardening flags
dd7e87
  resolves: #1420783
dd7e87
4d011e
* Tue Sep 19 2017 Jan Chaloupka <jchaloup@redhat.com> - 3.2.7-1
4d011e
- Update to 3.2.7
4d011e
  resolves: #1493165
4d011e
20f35b
* Tue Aug 08 2017 Jan Chaloupka <jchaloup@redhat.com> - 3.2.5-1
20f35b
- Update to 3.2.5
20f35b
  resolves: #1479371
20f35b
e2cec8
* Mon Jun 12 2017 Jan Chaloupka <jchaloup@redhat.com> - 3.1.9-2
e2cec8
- Build for secondary architectures as well
e2cec8
acbac7
* Fri Jun 09 2017 Scott Dodson <sdodson@redhat.com> - 3.1.9-1
acbac7
- Update to 3.1.9
acbac7
  resolves: #1458941
acbac7
acbac7
* Tue Jun 06 2017 Jan Chaloupka <jchaloup@redhat.com> - 3.1.8-1
acbac7
- Update to 3.1.8
acbac7
  resolves: #1459122
acbac7
f67c12
* Tue May 02 2017 Jan Chaloupka <jchaloup@redhat.com> - 3.1.7-1
f67c12
- Update to 3.1.7
f67c12
  resolves: #1447235
f67c12
f67c12
* Tue Apr 04 2017 Yaakov Selkowitz <yselkowi@redhat.com> - 3.1.3-2
f67c12
- Circumvent runtime check of officially supported architectures
f67c12
  resolves: #1434973
f67c12
7d999c
* Tue Mar 21 2017 Jan Chaloupka <jchaloup@redhat.com> - 3.1.3-1
7d999c
- Update to 3.1.3
7d999c
  resolves: #1434364
7d999c
f67c12
* Mon Feb 27 2017 Josh Boyer <jwboyer@redhat.com> - 3.1.0-2.1
f67c12
- Rebuild rebase on all architectures
f67c12
e4deaa
* Tue Feb 21 2017 Jan Chaloupka <jchaloup@redhat.com> - 3.1.0-2
e4deaa
- Apply "add --keep-cluster-id and --node-id to 'etcdctl backup'"
e4deaa
  from extras-rhel-7.2 branch
e4deaa
  resolves: #1350875
e4deaa
f67c12
* Thu Feb 16 2017 Josh Boyer <jwboyer@redhat.com> - 3.1.0-1.1
f67c12
- Rebuild rebase on all architectures
f67c12
e4deaa
* Mon Feb 06 2017 Jan Chaloupka <jchaloup@redhat.com> - 3.1.0-1
e4deaa
- Update to 3.1.0
e4deaa
  etcdctl-top removed by upstream
e4deaa
  resolves: #1416440
e4deaa
f67c12
* Fri Jan 20 2017 d.marlin <dmarlin@redhat.com>
f67c12
- Build for all archs (adding ppc64le and s390x)
f67c12
f67c12
* Tue Jan 10 2017 d.marlin <dmarlin@redhat.com> 
f67c12
- Add aarch64 to ExclusiveArch list.
f67c12
f67c12
* Mon Jan 09 2017 d.marlin <dmarlin@redhat.com> 
f67c12
- Correct 'link' warning for -X flag.
f67c12
4ca5d9
* Thu Dec 01 2016 jchaloup <jchaloup@redhat.com> - 3.0.15-1
4ca5d9
- Update to 3.0.15
4ca5d9
  Obsolete etcd3 < 3.0.15
4ca5d9
4ca5d9
* Fri Nov 18 2016 jchaloup <jchaloup@redhat.com> - 3.0.14-3
4ca5d9
- Build with debug-info subpackage
4ca5d9
- Until etcd3 obsoletes etcd it conflicts with it
4ca5d9
4ca5d9
* Tue Nov 15 2016 Avesh Agarwal <avagarwa@redhat.com> - 3.0.14-2
4ca5d9
- Resolves: #1395359 etcd3 should not obsolete etcd
319373
4ca5d9
* Mon Nov 07 2016 jchaloup <jchaloup@redhat.com> - 3.0.14-1
4ca5d9
- Update to v3.0.14
4ca5d9
  related: #1386963
319373
4ca5d9
* Thu Oct 27 2016 jchaloup <jchaloup@redhat.com> - 3.0.13-1
4ca5d9
- Update to v3.0.13
4ca5d9
  related: #1386963
319373
4ca5d9
* Fri Oct 21 2016 jchaloup <jchaloup@redhat.com> - 3.0.12-3
4ca5d9
- etcdctl: fix migrate in outputing client.Node to json
4ca5d9
  resolves: #1386963
319373
4ca5d9
* Tue Oct 18 2016 jchaloup <jchaloup@redhat.com> - 3.0.12-2
4ca5d9
- Replace etcd with etcd3 when upgrading
4ca5d9
  resolves: #1384161
319373
4ca5d9
* Thu Oct 13 2016 jchaloup <jchaloup@redhat.com> - 3.0.12-1
4ca5d9
- Update to v3.0.12
319373
4ca5d9
* Thu Oct 06 2016 jchaloup <jchaloup@redhat.com> - 3.0.10-1
4ca5d9
- Update to v3.0.10
319373
4ca5d9
* Fri Sep 23 2016 jchaloup <jchaloup@redhat.com> - 3.0.3-2
4ca5d9
- Extend etcd.conf with new flags
4ca5d9
  resolves: #1378706
319373
4ca5d9
* Fri Jul 22 2016 jchaloup <jchaloup@redhat.com> - 3.0.2-1
4ca5d9
- Update to v3.0.3
4ca5d9
  related: #1347499
319373
4ca5d9
* Tue Jul 12 2016 jchaloup <jchaloup@redhat.com> - 3.0.2-1
4ca5d9
- Update to v3.0.2
4ca5d9
  related: #1347499
319373
4ca5d9
* Sun May 15 2016 jchaloup <jchaloup@redhat.com> - 3.0.0-0.1.beta0
4ca5d9
- Build etcd3 v3.0.0-beta0 for AH 7.3
4ca5d9
  resolves: #1347499