diff --git a/.gitignore b/.gitignore index 2d72061..06bc6b5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1 @@ -/clog -/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 8661e10..608f1ee 100644 --- a/etcd.spec +++ b/etcd.spec @@ -8,11 +8,11 @@ Name: %{repo} Version: 2.0.0 -Release: 0.2.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 ExclusiveArch: %{ix86} x86_64 %{arm} @@ -82,7 +82,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} @@ -95,10 +95,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 @@ -122,20 +122,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 @@ -175,6 +175,11 @@ getent passwd %{name} >/dev/null || useradd -r -g %{name} -d %{_sharedstatedir}/ %{gopath}/src/%{import_path} %changelog +* Fri Jan 30 2015 jchaloup - 2.0.0-0.4 +- Update to etcd-2.0.0 +- use gopath as the last directory to search for source code + related: #1176138 + * Tue Jan 20 2015 jchaloup - 2.0.0-0.2.rc1 - Update of BuildRequires/Requires, Provides and test Add BuildRequire on jonboulle/clockwork 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