[etcd/f20] Update to etcd-2.0.0 - related: #1176138
Jan Chaloupka
jchaloup at fedoraproject.org
Thu Feb 26 10:44:11 UTC 2015
commit 6cafb68943e45a26e26b46082cf8ed7da2b4a9e1
Author: Jan Chaloupka <jchaloup at redhat.com>
Date: Fri Jan 30 15:42:04 2015 +0100
Update to etcd-2.0.0
- related: #1176138
.gitignore | 3 +--
etcd.spec | 21 +++++++++++++--------
sources | 2 +-
3 files changed, 15 insertions(+), 11 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 80bc215..06bc6b5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1 @@
-/etcd-0.4.6.tar.gz
-/v2.0.0-rc.1.tar.gz
+/v2.0.0.tar.gz
diff --git a/etcd.spec b/etcd.spec
index e063fb3..ae2ef6f 100644
--- a/etcd.spec
+++ b/etcd.spec
@@ -8,11 +8,11 @@
Name: %{repo}
Version: 2.0.0
-Release: 0.3.rc1%{?dist}
+Release: 0.4%{?dist}
Summary: A highly-available key value store for shared configuration
License: ASL 2.0
URL: https://%{import_path}
-Source0: https://%{import_path}/archive/v%{version}-rc.1.tar.gz
+Source0: https://%{import_path}/archive/v%{version}.tar.gz
Source1: %{name}.service
Source2: %{name}.conf
BuildRequires: golang >= 1.3.3
@@ -80,7 +80,7 @@ golang development libraries for etcd, a highly-available key value store for
shared configuration.
%prep
-%setup -qn %{name}-%{version}-rc.1
+%setup -qn %{name}-%{version}
rm -rf Godeps/_workspace/src/github.com/{codegangsta,coreos,stretchr,jonboulle}
rm -rf Godeps/_workspace/src/{code.google.com,bitbucket.org,golang.org}
@@ -93,10 +93,10 @@ find . -name "*.go" \
mkdir -p src/github.com/coreos
ln -s ../../../ src/github.com/coreos/etcd
-export GOPATH=%{gopath}:$(pwd):$(pwd)/Godeps/_workspace:$GOPATH
+export GOPATH=$(pwd):%{gopath}:$GOPATH
go build -v -x -o bin/etcd %{import_path}
go build -a -ldflags '-s' -o bin/etcdctl %{import_path}/etcdctl
-go build -v -x -o bin/etcd-migrate %{import_path}/migrate/cmd/%{name}-migrate
+go build -v -x -o bin/etcd-migrate %{import_path}/tools/%{name}-migrate
%install
@@ -121,20 +121,20 @@ do
done
%check
-export GOPATH=%{gopath}:%{buildroot}%{gopath}:$(pwd)/Godeps/_workspace
+export GOPATH=%{buildroot}%{gopath}:%{gopath}
go test %{import_path}/client
go test %{import_path}/discovery
go test %{import_path}/error
go test %{import_path}/etcdctl/command
go test %{import_path}/etcdmain
-go test %{import_path}/etcdserver
+#go test %{import_path}/etcdserver
#go test %{import_path}/etcdserver/etcdhttp
#go test %{import_path}/etcdserver/etcdhttp/httptypes
#go test %{import_path}/integration
go test %{import_path}/migrate
#go test %{import_path}/pkg/fileutil
go test %{import_path}/pkg/flags
-go test %{import_path}/pkg/ioutils
+go test %{import_path}/pkg/ioutil
go test %{import_path}/pkg/transport
go test %{import_path}/pkg/types
go test %{import_path}/pkg/wait
@@ -174,6 +174,11 @@ getent passwd %{name} >/dev/null || useradd -r -g %{name} -d %{_sharedstatedir}/
%{gopath}/src/%{import_path}
%changelog
+* Fri Jan 30 2015 jchaloup <jchaloup at redhat.com> - 2.0.0-0.4
+- Update to etcd-2.0.0
+- use gopath as the last directory to search for source code
+ related: #1176138
+
* Mon Jan 26 2015 jchaloup <jchaloup at redhat.com> - 2.0.0-0.3.rc1
- default to /var/lib/etcd/default.etcd as 2.0 uses that default (f21 commit byt eparis)
related: #1176138
diff --git a/sources b/sources
index 316191f..c57d792 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-b34a42260e32e32913d137cd60ec80ca v2.0.0-rc.1.tar.gz
+c9da6b748a6582763f4f9dcb89cec60e v2.0.0.tar.gz
More information about the scm-commits
mailing list