Created
November 16, 2016 18:29
-
-
Save rtoma/e59ac0ed274d5d25bf56b83fb15436ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From bed55580f972cc08209357fce5589fefadf398af Mon Sep 17 00:00:00 2001 | |
From: Jan Chaloupka <jchaloup@redhat.com> | |
Date: Tue, 17 May 2016 21:44:45 +0200 | |
Subject: [PATCH] change import paths | |
--- | |
tools/benchmark/cmd/put.go | 2 +- | |
tools/benchmark/cmd/range.go | 2 +- | |
tools/benchmark/cmd/root.go | 2 +- | |
tools/benchmark/cmd/stm.go | 2 +- | |
tools/benchmark/cmd/watch.go | 2 +- | |
5 files changed, 5 insertions(+), 5 deletions(-) | |
diff --git a/tools/benchmark/cmd/put.go b/tools/benchmark/cmd/put.go | |
index 5f92dd6..557d3f5 100644 | |
--- a/tools/benchmark/cmd/put.go | |
+++ b/tools/benchmark/cmd/put.go | |
@@ -24,7 +24,7 @@ import ( | |
v3 "github.com/coreos/etcd/clientv3" | |
"github.com/spf13/cobra" | |
"golang.org/x/net/context" | |
- "gopkg.in/cheggaaa/pb.v1" | |
+ "github.com/cheggaaa/pb" | |
) | |
// putCmd represents the put command | |
diff --git a/tools/benchmark/cmd/range.go b/tools/benchmark/cmd/range.go | |
index 6e67e96..89a5f66 100644 | |
--- a/tools/benchmark/cmd/range.go | |
+++ b/tools/benchmark/cmd/range.go | |
@@ -22,7 +22,7 @@ import ( | |
v3 "github.com/coreos/etcd/clientv3" | |
"github.com/spf13/cobra" | |
"golang.org/x/net/context" | |
- "gopkg.in/cheggaaa/pb.v1" | |
+ "github.com/cheggaaa/pb" | |
) | |
// rangeCmd represents the range command | |
diff --git a/tools/benchmark/cmd/root.go b/tools/benchmark/cmd/root.go | |
index a40731b..a7678c2 100644 | |
--- a/tools/benchmark/cmd/root.go | |
+++ b/tools/benchmark/cmd/root.go | |
@@ -19,7 +19,7 @@ import ( | |
"github.com/coreos/etcd/pkg/transport" | |
"github.com/spf13/cobra" | |
- "gopkg.in/cheggaaa/pb.v1" | |
+ "github.com/cheggaaa/pb" | |
) | |
// This represents the base command when called without any subcommands | |
diff --git a/tools/benchmark/cmd/stm.go b/tools/benchmark/cmd/stm.go | |
index ce29637..ac677fd 100644 | |
--- a/tools/benchmark/cmd/stm.go | |
+++ b/tools/benchmark/cmd/stm.go | |
@@ -25,7 +25,7 @@ import ( | |
v3sync "github.com/coreos/etcd/clientv3/concurrency" | |
"github.com/spf13/cobra" | |
"golang.org/x/net/context" | |
- "gopkg.in/cheggaaa/pb.v1" | |
+ "github.com/cheggaaa/pb" | |
) | |
// stmCmd represents the STM benchmark command | |
diff --git a/tools/benchmark/cmd/watch.go b/tools/benchmark/cmd/watch.go | |
index cd20251..376ee74 100644 | |
--- a/tools/benchmark/cmd/watch.go | |
+++ b/tools/benchmark/cmd/watch.go | |
@@ -26,7 +26,7 @@ import ( | |
"github.com/spf13/cobra" | |
"golang.org/x/net/context" | |
- "gopkg.in/cheggaaa/pb.v1" | |
+ "github.com/cheggaaa/pb" | |
) | |
// watchCmd represents the watch command | |
-- | |
1.9.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Etcd Server | |
After=network.target | |
After=network-online.target | |
Wants=network-online.target | |
[Service] | |
Type=notify | |
WorkingDirectory=/var/lib/etcd/ | |
EnvironmentFile=-/etc/etcd/etcd.conf | |
User=etcd | |
# set GOMAXPROCS to number of processors | |
ExecStart=/bin/bash -c "GOMAXPROCS=$(nproc) /usr/bin/etcd --name=\"${ETCD_NAME}\" --data-dir=\"${ETCD_DATA_DIR}\" --listen-client-urls=\"${ETCD_LISTEN_CLIENT_URLS}\"" | |
Restart=on-failure | |
LimitNOFILE=65536 | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%if 0%{?fedora} | |
%global with_devel 1 | |
%global with_bundled 0 | |
%global with_debug 1 | |
# Some tests fails and it takes a lot of time to investigate | |
# what is wrong | |
%global with_check 0 | |
%global with_unit_test 1 | |
%else | |
%global with_devel 0 | |
%global with_bundled 1 | |
%global with_debug 0 | |
%global with_check 0 | |
%global with_unit_test 0 | |
%endif | |
%if 0%{?with_debug} | |
%global _dwz_low_mem_die_limit 0 | |
%else | |
%global debug_package %{nil} | |
%endif | |
%if ! 0%{?gobuild:1} | |
%define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**}; | |
%endif | |
%global provider github | |
%global provider_tld com | |
%global project coreos | |
%global repo etcd | |
# https://github.com/coreos/etcd | |
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} | |
%global import_path %{provider_prefix} | |
%global commit 24a90baff8dd153a8481876fb27db64d7ec7e3c7 | |
%global shortcommit %(c=%{commit}; echo ${c:0:7}) | |
%global system_name etcd | |
Name: etcd3 | |
Version: 3.0.3 | |
Release: 1%{?dist} | |
Summary: A highly-available key value store for shared configuration | |
License: ASL 2.0 | |
URL: https://%{provider_prefix} | |
Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz | |
Source1: %{system_name}.service | |
Source2: %{system_name}.conf | |
Patch2: 0001-change-import-paths.patch | |
# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required | |
ExclusiveArch: x86_64 | |
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead. | |
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang} | |
%if ! 0%{?with_bundled} | |
BuildRequires: golang(github.com/akrennmair/gopcap) | |
BuildRequires: golang(github.com/bgentry/speakeasy) | |
BuildRequires: golang(github.com/boltdb/bolt) | |
BuildRequires: golang(github.com/cheggaaa/pb) | |
BuildRequires: golang(github.com/cockroachdb/cmux) | |
BuildRequires: golang(github.com/codegangsta/cli) | |
BuildRequires: golang(github.com/coreos/go-semver/semver) | |
BuildRequires: golang(github.com/coreos/go-systemd/daemon) | |
BuildRequires: golang(github.com/coreos/go-systemd/util) | |
BuildRequires: golang(github.com/coreos/pkg/capnslog) | |
BuildRequires: golang(github.com/dustin/go-humanize) | |
BuildRequires: golang(github.com/ghodss/yaml) | |
BuildRequires: golang(github.com/gogo/protobuf/proto) | |
BuildRequires: golang(github.com/google/btree) | |
BuildRequires: golang(github.com/jonboulle/clockwork) | |
BuildRequires: golang(github.com/kr/pty) | |
BuildRequires: golang(github.com/olekukonko/tablewriter) | |
BuildRequires: golang(github.com/prometheus/client_golang/prometheus) | |
BuildRequires: golang(github.com/prometheus/procfs) | |
BuildRequires: golang(github.com/spacejam/loghisto) | |
BuildRequires: golang(github.com/spf13/cobra) | |
BuildRequires: golang(github.com/spf13/pflag) | |
BuildRequires: golang(github.com/ugorji/go/codec) | |
BuildRequires: golang(github.com/xiang90/probing) | |
BuildRequires: golang(golang.org/x/crypto/bcrypt) | |
BuildRequires: golang(golang.org/x/net/context) | |
BuildRequires: golang(golang.org/x/net/http2) | |
BuildRequires: golang(google.golang.org/grpc) | |
BuildRequires: golang(google.golang.org/grpc/codes) | |
BuildRequires: golang(google.golang.org/grpc/credentials) | |
BuildRequires: golang(google.golang.org/grpc/grpclog) | |
BuildRequires: golang(google.golang.org/grpc/transport) | |
%else | |
BuildRequires: libpcap-devel | |
%endif | |
BuildRequires: systemd | |
Requires(pre): shadow-utils | |
Requires(post): systemd | |
Requires(preun): systemd | |
Requires(postun): systemd | |
%description | |
A highly-available key value store for shared configuration. | |
%if 0%{?with_devel} | |
%package devel | |
Summary: etcd golang devel libraries | |
BuildArch: noarch | |
%if 0%{?with_check} | |
BuildRequires: golang(github.com/cheggaaa/pb) | |
BuildRequires: golang(github.com/bgentry/speakeasy) | |
BuildRequires: golang(github.com/boltdb/bolt) | |
BuildRequires: golang(github.com/cockroachdb/cmux) | |
BuildRequires: golang(github.com/codegangsta/cli) | |
BuildRequires: golang(github.com/coreos/go-semver/semver) | |
BuildRequires: golang(github.com/coreos/go-systemd/daemon) | |
BuildRequires: golang(github.com/coreos/go-systemd/util) | |
BuildRequires: golang(github.com/coreos/pkg/capnslog) | |
BuildRequires: golang(github.com/dustin/go-humanize) | |
BuildRequires: golang(github.com/ghodss/yaml) | |
BuildRequires: golang(github.com/gogo/protobuf/proto) | |
BuildRequires: golang(github.com/google/btree) | |
BuildRequires: golang(github.com/jonboulle/clockwork) | |
BuildRequires: golang(github.com/kr/pty) | |
BuildRequires: golang(github.com/olekukonko/tablewriter) | |
BuildRequires: golang(github.com/prometheus/client_golang/prometheus) | |
BuildRequires: golang(github.com/prometheus/procfs) | |
BuildRequires: golang(github.com/spf13/cobra) | |
BuildRequires: golang(github.com/spf13/pflag) | |
BuildRequires: golang(github.com/ugorji/go/codec) | |
BuildRequires: golang(github.com/xiang90/probing) | |
BuildRequires: golang(golang.org/x/crypto/bcrypt) | |
BuildRequires: golang(golang.org/x/net/context) | |
BuildRequires: golang(golang.org/x/net/http2) | |
BuildRequires: golang(google.golang.org/grpc) | |
BuildRequires: golang(google.golang.org/grpc/codes) | |
BuildRequires: golang(google.golang.org/grpc/credentials) | |
BuildRequires: golang(google.golang.org/grpc/grpclog) | |
%endif | |
Requires: golang(github.com/cheggaaa/pb) | |
Requires: golang(github.com/bgentry/speakeasy) | |
Requires: golang(github.com/boltdb/bolt) | |
Requires: golang(github.com/cockroachdb/cmux) | |
Requires: golang(github.com/codegangsta/cli) | |
Requires: golang(github.com/coreos/go-semver/semver) | |
Requires: golang(github.com/coreos/go-systemd/daemon) | |
Requires: golang(github.com/coreos/go-systemd/util) | |
Requires: golang(github.com/coreos/pkg/capnslog) | |
Requires: golang(github.com/dustin/go-humanize) | |
Requires: golang(github.com/ghodss/yaml) | |
Requires: golang(github.com/gogo/protobuf/proto) | |
Requires: golang(github.com/google/btree) | |
Requires: golang(github.com/jonboulle/clockwork) | |
Requires: golang(github.com/kr/pty) | |
Requires: golang(github.com/olekukonko/tablewriter) | |
Requires: golang(github.com/prometheus/client_golang/prometheus) | |
Requires: golang(github.com/prometheus/procfs) | |
Requires: golang(github.com/spf13/cobra) | |
Requires: golang(github.com/spf13/pflag) | |
Requires: golang(github.com/ugorji/go/codec) | |
Requires: golang(github.com/xiang90/probing) | |
Requires: golang(golang.org/x/crypto/bcrypt) | |
Requires: golang(golang.org/x/net/context) | |
Requires: golang(golang.org/x/net/http2) | |
Requires: golang(google.golang.org/grpc) | |
Requires: golang(google.golang.org/grpc/codes) | |
Requires: golang(google.golang.org/grpc/credentials) | |
Requires: golang(google.golang.org/grpc/grpclog) | |
Provides: golang(%{import_path}/alarm) = %{version}-%{release} | |
Provides: golang(%{import_path}/auth) = %{version}-%{release} | |
Provides: golang(%{import_path}/auth/authpb) = %{version}-%{release} | |
Provides: golang(%{import_path}/client) = %{version}-%{release} | |
Provides: golang(%{import_path}/clientv3) = %{version}-%{release} | |
Provides: golang(%{import_path}/clientv3/concurrency) = %{version}-%{release} | |
Provides: golang(%{import_path}/clientv3/integration) = %{version}-%{release} | |
Provides: golang(%{import_path}/clientv3/mirror) = %{version}-%{release} | |
Provides: golang(%{import_path}/compactor) = %{version}-%{release} | |
Provides: golang(%{import_path}/contrib/recipes) = %{version}-%{release} | |
Provides: golang(%{import_path}/discovery) = %{version}-%{release} | |
Provides: golang(%{import_path}/e2e) = %{version}-%{release} | |
Provides: golang(%{import_path}/error) = %{version}-%{release} | |
Provides: golang(%{import_path}/etcdctl/ctlv2) = %{version}-%{release} | |
Provides: golang(%{import_path}/etcdctl/ctlv2/command) = %{version}-%{release} | |
Provides: golang(%{import_path}/etcdctl/ctlv3) = %{version}-%{release} | |
Provides: golang(%{import_path}/etcdctl/ctlv3/command) = %{version}-%{release} | |
Provides: golang(%{import_path}/etcdmain) = %{version}-%{release} | |
Provides: golang(%{import_path}/etcdserver) = %{version}-%{release} | |
Provides: golang(%{import_path}/etcdserver/api) = %{version}-%{release} | |
Provides: golang(%{import_path}/etcdserver/api/v2http) = %{version}-%{release} | |
Provides: golang(%{import_path}/etcdserver/api/v2http/httptypes) = %{version}-%{release} | |
Provides: golang(%{import_path}/etcdserver/api/v3rpc) = %{version}-%{release} | |
Provides: golang(%{import_path}/etcdserver/api/v3rpc/rpctypes) = %{version}-%{release} | |
Provides: golang(%{import_path}/etcdserver/auth) = %{version}-%{release} | |
Provides: golang(%{import_path}/etcdserver/etcdserverpb) = %{version}-%{release} | |
Provides: golang(%{import_path}/etcdserver/membership) = %{version}-%{release} | |
Provides: golang(%{import_path}/etcdserver/stats) = %{version}-%{release} | |
Provides: golang(%{import_path}/integration) = %{version}-%{release} | |
Provides: golang(%{import_path}/lease) = %{version}-%{release} | |
Provides: golang(%{import_path}/lease/leasehttp) = %{version}-%{release} | |
Provides: golang(%{import_path}/lease/leasepb) = %{version}-%{release} | |
Provides: golang(%{import_path}/mvcc) = %{version}-%{release} | |
Provides: golang(%{import_path}/mvcc/backend) = %{version}-%{release} | |
Provides: golang(%{import_path}/mvcc/mvccpb) = %{version}-%{release} | |
Provides: golang(%{import_path}/pkg/adt) = %{version}-%{release} | |
Provides: golang(%{import_path}/pkg/contention) = %{version}-%{release} | |
Provides: golang(%{import_path}/pkg/cors) = %{version}-%{release} | |
Provides: golang(%{import_path}/pkg/crc) = %{version}-%{release} | |
Provides: golang(%{import_path}/pkg/expect) = %{version}-%{release} | |
Provides: golang(%{import_path}/pkg/fileutil) = %{version}-%{release} | |
Provides: golang(%{import_path}/pkg/flags) = %{version}-%{release} | |
Provides: golang(%{import_path}/pkg/httputil) = %{version}-%{release} | |
Provides: golang(%{import_path}/pkg/idutil) = %{version}-%{release} | |
Provides: golang(%{import_path}/pkg/ioutil) = %{version}-%{release} | |
Provides: golang(%{import_path}/pkg/logutil) = %{version}-%{release} | |
Provides: golang(%{import_path}/pkg/mock/mockstorage) = %{version}-%{release} | |
Provides: golang(%{import_path}/pkg/mock/mockstore) = %{version}-%{release} | |
Provides: golang(%{import_path}/pkg/mock/mockwait) = %{version}-%{release} | |
Provides: golang(%{import_path}/pkg/netutil) = %{version}-%{release} | |
Provides: golang(%{import_path}/pkg/osutil) = %{version}-%{release} | |
Provides: golang(%{import_path}/pkg/pathutil) = %{version}-%{release} | |
Provides: golang(%{import_path}/pkg/pbutil) = %{version}-%{release} | |
Provides: golang(%{import_path}/pkg/runtime) = %{version}-%{release} | |
Provides: golang(%{import_path}/pkg/schedule) = %{version}-%{release} | |
Provides: golang(%{import_path}/pkg/testutil) = %{version}-%{release} | |
Provides: golang(%{import_path}/pkg/tlsutil) = %{version}-%{release} | |
Provides: golang(%{import_path}/pkg/transport) = %{version}-%{release} | |
Provides: golang(%{import_path}/pkg/types) = %{version}-%{release} | |
Provides: golang(%{import_path}/pkg/wait) = %{version}-%{release} | |
Provides: golang(%{import_path}/proxy/httpproxy) = %{version}-%{release} | |
Provides: golang(%{import_path}/proxy/tcpproxy) = %{version}-%{release} | |
Provides: golang(%{import_path}/raft) = %{version}-%{release} | |
Provides: golang(%{import_path}/raft/raftpb) = %{version}-%{release} | |
Provides: golang(%{import_path}/raft/rafttest) = %{version}-%{release} | |
Provides: golang(%{import_path}/rafthttp) = %{version}-%{release} | |
Provides: golang(%{import_path}/snap) = %{version}-%{release} | |
Provides: golang(%{import_path}/snap/snappb) = %{version}-%{release} | |
Provides: golang(%{import_path}/store) = %{version}-%{release} | |
Provides: golang(%{import_path}/tools/benchmark/cmd) = %{version}-%{release} | |
Provides: golang(%{import_path}/tools/functional-tester/etcd-agent/client) = %{version}-%{release} | |
Provides: golang(%{import_path}/version) = %{version}-%{release} | |
Provides: golang(%{import_path}/wal) = %{version}-%{release} | |
Provides: golang(%{import_path}/wal/walpb) = %{version}-%{release} | |
%description devel | |
golang development libraries for etcd, a highly-available key value store for | |
shared configuration. | |
%endif | |
%if 0%{?with_unit_test} && 0%{?with_devel} | |
%package unit-test | |
Summary: Unit tests for %{name} package | |
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead. | |
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang} | |
%if 0%{?with_check} | |
#Here comes all BuildRequires: PACKAGE the unit tests | |
#in %%check section need for running | |
%endif | |
# test subpackage tests code from devel subpackage | |
Requires: %{name}-devel = %{version}-%{release} | |
%description unit-test | |
%{summary} | |
This package contains unit tests for project | |
providing packages with %{import_path} prefix. | |
%endif | |
%prep | |
%setup -q -n %{repo}-%{commit} | |
# move content of vendor under Godeps as has been so far | |
mkdir -p Godeps/_workspace/src | |
mv cmd/vendor/* Godeps/_workspace/src/. | |
%if ! 0%{?with_bundled} | |
%patch2 -p1 | |
%endif | |
%build | |
mkdir -p src/github.com/coreos | |
ln -s ../../../ src/github.com/coreos/etcd | |
%if ! 0%{?with_bundled} | |
export GOPATH=$(pwd):%{gopath} | |
%else | |
export GOPATH=$(pwd):$(pwd)/Godeps/_workspace:%{gopath} | |
%endif | |
export LDFLAGS="-X %{import_path}/version.GitSHA %{shortcommit}" | |
%gobuild -o bin/%{system_name} %{import_path}/cmd | |
%gobuild -o bin/%{system_name}ctl %{import_path}/%{system_name}ctl | |
%gobuild -o bin/%{system_name}-top %{import_path}/tools/%{system_name}-top | |
%install | |
install -D -p -m 0755 bin/%{system_name} %{buildroot}%{_bindir}/%{system_name} | |
install -D -p -m 0755 bin/%{system_name}ctl %{buildroot}%{_bindir}/%{system_name}ctl | |
install -D -p -m 0755 bin/%{system_name}-top %{buildroot}%{_bindir}/%{system_name}-top | |
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{system_name}.service | |
install -d -m 0755 %{buildroot}%{_sysconfdir}/%{system_name} | |
install -m 644 -t %{buildroot}%{_sysconfdir}/%{system_name} %{SOURCE2} | |
# And create /var/lib/etcd | |
install -d -m 0755 %{buildroot}%{_sharedstatedir}/%{system_name} | |
# source codes for building projects | |
%if 0%{?with_devel} | |
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/ | |
echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list | |
# find all *.go but no *_test.go files and generate devel.file-list | |
for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do | |
echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list | |
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file) | |
cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file | |
echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list | |
done | |
%endif | |
# testing files for this project | |
%if 0%{?with_unit_test} && 0%{?with_devel} | |
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/ | |
# find all *_test.go files and generate unit-test.file-list | |
for file in $(find . -iname "*_test.go"); do | |
echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list | |
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file) | |
cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file | |
echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list | |
done | |
%endif | |
%if 0%{?with_devel} | |
sort -u -o devel.file-list devel.file-list | |
%endif | |
%check | |
%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel} | |
%if ! 0%{?with_bundled} | |
export GOPATH=%{buildroot}/%{gopath}:%{gopath} | |
%else | |
export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath} | |
%endif | |
%if ! 0%{?gotest:1} | |
%global gotest go test | |
%endif | |
export BIN_PATH="$(pwd)/bin" | |
%gotest %{import_path}/client | |
%gotest %{import_path}/clientv3 | |
%gotest %{import_path}/clientv3/integration | |
%gotest %{import_path}/compactor | |
%gotest %{import_path}/contrib/raftexample | |
%gotest %{import_path}/discovery | |
#%%gotest %%{import_path}/e2e | |
%gotest %{import_path}/error | |
%gotest %{import_path}/etcdctl/command | |
%gotest %{import_path}/etcdmain | |
%gotest %{import_path}/etcdserver | |
%gotest %{import_path}/etcdserver/auth | |
#%gotest %{import_path}/etcdserver/etcdhttp | |
#%gotest %{import_path}/etcdserver/etcdhttp/httptypes | |
#%%gotest %%{import_path}/integration | |
%gotest %{import_path}/lease | |
%gotest %{import_path}/pkg/adt | |
%gotest %{import_path}/pkg/cors | |
%gotest %{import_path}/pkg/crc | |
%gotest %{import_path}/pkg/fileutil | |
%gotest %{import_path}/pkg/flags | |
%gotest %{import_path}/pkg/idutil | |
%gotest %{import_path}/pkg/ioutil | |
%gotest %{import_path}/pkg/logutil | |
%gotest %{import_path}/pkg/netutil | |
%gotest %{import_path}/pkg/osutil | |
%gotest %{import_path}/pkg/pathutil | |
%gotest %{import_path}/pkg/pbutil | |
%gotest %{import_path}/pkg/schedule | |
%gotest %{import_path}/pkg/testutil | |
%gotest %{import_path}/pkg/transport | |
%gotest %{import_path}/pkg/types | |
%gotest %{import_path}/pkg/wait | |
%gotest %{import_path}/proxy | |
%gotest %{import_path}/raft | |
%gotest %{import_path}/raft/rafttest | |
%gotest %{import_path}/rafthttp | |
%gotest %{import_path}/snap | |
%gotest %{import_path}/storage | |
%gotest %{import_path}/storage/backend | |
%gotest %{import_path}/store | |
%gotest %{import_path}/tools/functional-tester/etcd-agent | |
%gotest %{import_path}/version | |
%gotest %{import_path}/wal | |
%endif | |
%pre | |
getent group %{system_name} >/dev/null || groupadd -r %{system_name} | |
getent passwd %{system_name} >/dev/null || useradd -r -g %{system_name} -d %{_sharedstatedir}/%{system_name} \ | |
-s /sbin/nologin -c "etcd user" %{system_name} | |
%post | |
%systemd_post %{system_name}.service | |
%preun | |
%systemd_preun %{system_name}.service | |
%postun | |
%systemd_postun %{system_name}.service | |
#define license tag if not already defined | |
%{!?_licensedir:%global license %doc} | |
%files | |
%license LICENSE | |
%doc *.md | |
%doc cmd/Godeps/Godeps.json | |
%config(noreplace) %{_sysconfdir}/%{system_name} | |
%{_bindir}/%{system_name} | |
%{_bindir}/%{system_name}ctl | |
%{_bindir}/%{system_name}-top | |
%dir %attr(-,%{system_name},%{system_name}) %{_sharedstatedir}/%{system_name} | |
%{_unitdir}/%{system_name}.service | |
%if 0%{?with_devel} | |
%files devel -f devel.file-list | |
%license LICENSE | |
%doc *.md | |
%doc cmd/Godeps/Godeps.json | |
%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project} | |
%endif | |
%if 0%{?with_unit_test} | |
%files unit-test -f unit-test.file-list | |
%license LICENSE | |
%doc *.md | |
%endif | |
%changelog | |
* Fri Jul 22 2016 jchaloup <jchaloup@redhat.com> - 3.0.2-1 | |
- Update to v3.0.3 | |
related: #1347499 | |
* Tue Jul 12 2016 jchaloup <jchaloup@redhat.com> - 3.0.2-1 | |
- Update to v3.0.2 | |
related: #1347499 | |
* Sun May 15 2016 jchaloup <jchaloup@redhat.com> - 3.0.0-0.1.beta0 | |
- Build etcd3 v3.0.0-beta0 for AH 7.3 | |
resolves: #1347499 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment