Blame SPECS/etcd3.spec

e043e9
%if 0%{?fedora}
e043e9
%global with_devel 1
e043e9
%global with_bundled 0
e043e9
%global with_debug 1
e043e9
# Some tests fails and it takes a lot of time to investigate
e043e9
# what is wrong
e043e9
%global with_check 0
e043e9
%global with_unit_test 1
e043e9
%else
e043e9
%global with_devel 0
e043e9
%global with_bundled 1
e043e9
%global with_debug 0
e043e9
%global with_check 0
e043e9
%global with_unit_test 0
e043e9
%endif
e043e9
e043e9
%if 0%{?with_debug}
e043e9
%global _dwz_low_mem_die_limit 0
e043e9
%else
e043e9
%global debug_package   %{nil}
e043e9
%endif
e043e9
e043e9
%if ! 0%{?gobuild:1}
e043e9
%define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**}; 
e043e9
%endif
e043e9
e043e9
%global provider        github
e043e9
%global provider_tld    com
e043e9
%global project         coreos
e043e9
%global repo            etcd
e043e9
# https://github.com/coreos/etcd
e043e9
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
e043e9
%global import_path     %{provider_prefix}
e043e9
%global commit          24a90baff8dd153a8481876fb27db64d7ec7e3c7
e043e9
%global shortcommit     %(c=%{commit}; echo ${c:0:7})
e043e9
e043e9
%global system_name     etcd
e043e9
e043e9
Name:		etcd3
e043e9
Version:	3.0.3
e043e9
Release:	1%{?dist}
e043e9
Summary:	A highly-available key value store for shared configuration
e043e9
License:	ASL 2.0
e043e9
URL:		https://%{provider_prefix}
e043e9
Source0:	https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
e043e9
Source1:	%{system_name}.service
e043e9
Source2:	%{system_name}.conf
e043e9
Patch2:         0001-change-import-paths.patch
e043e9
e043e9
# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
e043e9
ExclusiveArch:  x86_64
e043e9
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
e043e9
BuildRequires:  %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
e043e9
e043e9
%if ! 0%{?with_bundled}
e043e9
BuildRequires: golang(github.com/akrennmair/gopcap)
e043e9
BuildRequires: golang(github.com/bgentry/speakeasy)
e043e9
BuildRequires: golang(github.com/boltdb/bolt)
e043e9
BuildRequires: golang(github.com/cheggaaa/pb)
e043e9
BuildRequires: golang(github.com/cockroachdb/cmux)
e043e9
BuildRequires: golang(github.com/codegangsta/cli)
e043e9
BuildRequires: golang(github.com/coreos/go-semver/semver)
e043e9
BuildRequires: golang(github.com/coreos/go-systemd/daemon)
e043e9
BuildRequires: golang(github.com/coreos/go-systemd/util)
e043e9
BuildRequires: golang(github.com/coreos/pkg/capnslog)
e043e9
BuildRequires: golang(github.com/dustin/go-humanize)
e043e9
BuildRequires: golang(github.com/ghodss/yaml)
e043e9
BuildRequires: golang(github.com/gogo/protobuf/proto)
e043e9
BuildRequires: golang(github.com/google/btree)
e043e9
BuildRequires: golang(github.com/jonboulle/clockwork)
e043e9
BuildRequires: golang(github.com/kr/pty)
e043e9
BuildRequires: golang(github.com/olekukonko/tablewriter)
e043e9
BuildRequires: golang(github.com/prometheus/client_golang/prometheus)
e043e9
BuildRequires: golang(github.com/prometheus/procfs)
e043e9
BuildRequires: golang(github.com/spacejam/loghisto)
e043e9
BuildRequires: golang(github.com/spf13/cobra)
e043e9
BuildRequires: golang(github.com/spf13/pflag)
e043e9
BuildRequires: golang(github.com/ugorji/go/codec)
e043e9
BuildRequires: golang(github.com/xiang90/probing)
e043e9
BuildRequires: golang(golang.org/x/crypto/bcrypt)
e043e9
BuildRequires: golang(golang.org/x/net/context)
e043e9
BuildRequires: golang(golang.org/x/net/http2)
e043e9
BuildRequires: golang(google.golang.org/grpc)
e043e9
BuildRequires: golang(google.golang.org/grpc/codes)
e043e9
BuildRequires: golang(google.golang.org/grpc/credentials)
e043e9
BuildRequires: golang(google.golang.org/grpc/grpclog)
e043e9
BuildRequires: golang(google.golang.org/grpc/transport)
e043e9
%else
e043e9
BuildRequires: libpcap-devel
e043e9
%endif
e043e9
e043e9
BuildRequires:	systemd
e043e9
e043e9
Requires(pre):	shadow-utils
e043e9
Requires(post): systemd
e043e9
Requires(preun): systemd
e043e9
Requires(postun): systemd
e043e9
e043e9
%description
e043e9
A highly-available key value store for shared configuration.
e043e9
e043e9
%if 0%{?with_devel}
e043e9
%package devel
e043e9
Summary:        etcd golang devel libraries
e043e9
BuildArch:      noarch
e043e9
e043e9
%if 0%{?with_check}
e043e9
BuildRequires: golang(github.com/cheggaaa/pb)
e043e9
BuildRequires: golang(github.com/bgentry/speakeasy)
e043e9
BuildRequires: golang(github.com/boltdb/bolt)
e043e9
BuildRequires: golang(github.com/cockroachdb/cmux)
e043e9
BuildRequires: golang(github.com/codegangsta/cli)
e043e9
BuildRequires: golang(github.com/coreos/go-semver/semver)
e043e9
BuildRequires: golang(github.com/coreos/go-systemd/daemon)
e043e9
BuildRequires: golang(github.com/coreos/go-systemd/util)
e043e9
BuildRequires: golang(github.com/coreos/pkg/capnslog)
e043e9
BuildRequires: golang(github.com/dustin/go-humanize)
e043e9
BuildRequires: golang(github.com/ghodss/yaml)
e043e9
BuildRequires: golang(github.com/gogo/protobuf/proto)
e043e9
BuildRequires: golang(github.com/google/btree)
e043e9
BuildRequires: golang(github.com/jonboulle/clockwork)
e043e9
BuildRequires: golang(github.com/kr/pty)
e043e9
BuildRequires: golang(github.com/olekukonko/tablewriter)
e043e9
BuildRequires: golang(github.com/prometheus/client_golang/prometheus)
e043e9
BuildRequires: golang(github.com/prometheus/procfs)
e043e9
BuildRequires: golang(github.com/spf13/cobra)
e043e9
BuildRequires: golang(github.com/spf13/pflag)
e043e9
BuildRequires: golang(github.com/ugorji/go/codec)
e043e9
BuildRequires: golang(github.com/xiang90/probing)
e043e9
BuildRequires: golang(golang.org/x/crypto/bcrypt)
e043e9
BuildRequires: golang(golang.org/x/net/context)
e043e9
BuildRequires: golang(golang.org/x/net/http2)
e043e9
BuildRequires: golang(google.golang.org/grpc)
e043e9
BuildRequires: golang(google.golang.org/grpc/codes)
e043e9
BuildRequires: golang(google.golang.org/grpc/credentials)
e043e9
BuildRequires: golang(google.golang.org/grpc/grpclog)
e043e9
%endif
e043e9
e043e9
Requires: golang(github.com/cheggaaa/pb)
e043e9
Requires: golang(github.com/bgentry/speakeasy)
e043e9
Requires: golang(github.com/boltdb/bolt)
e043e9
Requires: golang(github.com/cockroachdb/cmux)
e043e9
Requires: golang(github.com/codegangsta/cli)
e043e9
Requires: golang(github.com/coreos/go-semver/semver)
e043e9
Requires: golang(github.com/coreos/go-systemd/daemon)
e043e9
Requires: golang(github.com/coreos/go-systemd/util)
e043e9
Requires: golang(github.com/coreos/pkg/capnslog)
e043e9
Requires: golang(github.com/dustin/go-humanize)
e043e9
Requires: golang(github.com/ghodss/yaml)
e043e9
Requires: golang(github.com/gogo/protobuf/proto)
e043e9
Requires: golang(github.com/google/btree)
e043e9
Requires: golang(github.com/jonboulle/clockwork)
e043e9
Requires: golang(github.com/kr/pty)
e043e9
Requires: golang(github.com/olekukonko/tablewriter)
e043e9
Requires: golang(github.com/prometheus/client_golang/prometheus)
e043e9
Requires: golang(github.com/prometheus/procfs)
e043e9
Requires: golang(github.com/spf13/cobra)
e043e9
Requires: golang(github.com/spf13/pflag)
e043e9
Requires: golang(github.com/ugorji/go/codec)
e043e9
Requires: golang(github.com/xiang90/probing)
e043e9
Requires: golang(golang.org/x/crypto/bcrypt)
e043e9
Requires: golang(golang.org/x/net/context)
e043e9
Requires: golang(golang.org/x/net/http2)
e043e9
Requires: golang(google.golang.org/grpc)
e043e9
Requires: golang(google.golang.org/grpc/codes)
e043e9
Requires: golang(google.golang.org/grpc/credentials)
e043e9
Requires: golang(google.golang.org/grpc/grpclog)
e043e9
e043e9
Provides: golang(%{import_path}/alarm) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/auth) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/auth/authpb) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/client) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/clientv3) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/clientv3/concurrency) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/clientv3/integration) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/clientv3/mirror) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/compactor) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/contrib/recipes) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/discovery) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/e2e) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/error) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/etcdctl/ctlv2) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/etcdctl/ctlv2/command) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/etcdctl/ctlv3) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/etcdctl/ctlv3/command) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/etcdmain) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/etcdserver) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/etcdserver/api) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/etcdserver/api/v2http) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/etcdserver/api/v2http/httptypes) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/etcdserver/api/v3rpc) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/etcdserver/api/v3rpc/rpctypes) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/etcdserver/auth) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/etcdserver/etcdserverpb) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/etcdserver/membership) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/etcdserver/stats) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/integration) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/lease) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/lease/leasehttp) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/lease/leasepb) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/mvcc) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/mvcc/backend) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/mvcc/mvccpb) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/pkg/adt) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/pkg/contention) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/pkg/cors) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/pkg/crc) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/pkg/expect) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/pkg/fileutil) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/pkg/flags) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/pkg/httputil) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/pkg/idutil) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/pkg/ioutil) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/pkg/logutil) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/pkg/mock/mockstorage) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/pkg/mock/mockstore) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/pkg/mock/mockwait) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/pkg/netutil) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/pkg/osutil) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/pkg/pathutil) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/pkg/pbutil) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/pkg/runtime) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/pkg/schedule) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/pkg/testutil) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/pkg/tlsutil) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/pkg/transport) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/pkg/types) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/pkg/wait) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/proxy/httpproxy) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/proxy/tcpproxy) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/raft) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/raft/raftpb) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/raft/rafttest) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/rafthttp) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/snap) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/snap/snappb) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/store) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/tools/benchmark/cmd) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/tools/functional-tester/etcd-agent/client) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/version) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/wal) = %{version}-%{release}
e043e9
Provides: golang(%{import_path}/wal/walpb) = %{version}-%{release}
e043e9
e043e9
%description devel
e043e9
golang development libraries for etcd, a highly-available key value store for
e043e9
shared configuration.
e043e9
%endif
e043e9
e043e9
%if 0%{?with_unit_test} && 0%{?with_devel}
e043e9
%package unit-test
e043e9
Summary:         Unit tests for %{name} package
e043e9
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
e043e9
BuildRequires:  %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
e043e9
e043e9
%if 0%{?with_check}
e043e9
#Here comes all BuildRequires: PACKAGE the unit tests
e043e9
#in %%check section need for running
e043e9
%endif
e043e9
e043e9
# test subpackage tests code from devel subpackage
e043e9
Requires:        %{name}-devel = %{version}-%{release}
e043e9
e043e9
%description unit-test
e043e9
%{summary}
e043e9
e043e9
This package contains unit tests for project
e043e9
providing packages with %{import_path} prefix.
e043e9
%endif
e043e9
e043e9
%prep
e043e9
%setup -q -n %{repo}-%{commit}
e043e9
# move content of vendor under Godeps as has been so far
e043e9
mkdir -p Godeps/_workspace/src
e043e9
mv cmd/vendor/* Godeps/_workspace/src/.
e043e9
e043e9
%if ! 0%{?with_bundled}
e043e9
%patch2 -p1
e043e9
%endif
e043e9
e043e9
%build
e043e9
mkdir -p src/github.com/coreos
e043e9
ln -s ../../../ src/github.com/coreos/etcd
e043e9
e043e9
%if ! 0%{?with_bundled}
e043e9
export GOPATH=$(pwd):%{gopath}
e043e9
%else
e043e9
export GOPATH=$(pwd):$(pwd)/Godeps/_workspace:%{gopath}
e043e9
%endif
e043e9
e043e9
export LDFLAGS="-X %{import_path}/version.GitSHA %{shortcommit}"
e043e9
%gobuild -o bin/%{system_name} %{import_path}/cmd
e043e9
%gobuild -o bin/%{system_name}ctl %{import_path}/%{system_name}ctl
e043e9
%gobuild -o bin/%{system_name}-top %{import_path}/tools/%{system_name}-top
e043e9
e043e9
%install
e043e9
install -D -p -m 0755 bin/%{system_name} %{buildroot}%{_bindir}/%{system_name}
e043e9
install -D -p -m 0755 bin/%{system_name}ctl %{buildroot}%{_bindir}/%{system_name}ctl
e043e9
install -D -p -m 0755 bin/%{system_name}-top %{buildroot}%{_bindir}/%{system_name}-top
e043e9
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{system_name}.service
e043e9
install -d -m 0755 %{buildroot}%{_sysconfdir}/%{system_name}
e043e9
install -m 644 -t %{buildroot}%{_sysconfdir}/%{system_name} %{SOURCE2}
e043e9
e043e9
# And create /var/lib/etcd
e043e9
install -d -m 0755 %{buildroot}%{_sharedstatedir}/%{system_name}
e043e9
e043e9
# source codes for building projects
e043e9
%if 0%{?with_devel}
e043e9
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
e043e9
echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
e043e9
# find all *.go but no *_test.go files and generate devel.file-list
e043e9
for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
e043e9
    echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
e043e9
    install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
e043e9
    cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
e043e9
    echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
e043e9
done
e043e9
%endif
e043e9
e043e9
# testing files for this project
e043e9
%if 0%{?with_unit_test} && 0%{?with_devel}
e043e9
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
e043e9
# find all *_test.go files and generate unit-test.file-list
e043e9
for file in $(find . -iname "*_test.go"); do
e043e9
    echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
e043e9
    install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
e043e9
    cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
e043e9
    echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list
e043e9
done
e043e9
%endif
e043e9
e043e9
%if 0%{?with_devel}
e043e9
sort -u -o devel.file-list devel.file-list
e043e9
%endif
e043e9
e043e9
%check
e043e9
%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
e043e9
%if ! 0%{?with_bundled}
e043e9
export GOPATH=%{buildroot}/%{gopath}:%{gopath}
e043e9
%else
e043e9
export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
e043e9
%endif
e043e9
e043e9
%if ! 0%{?gotest:1}
e043e9
%global gotest go test
e043e9
%endif
e043e9
e043e9
export BIN_PATH="$(pwd)/bin"
e043e9
e043e9
%gotest %{import_path}/client
e043e9
%gotest %{import_path}/clientv3
e043e9
%gotest %{import_path}/clientv3/integration
e043e9
%gotest %{import_path}/compactor
e043e9
%gotest %{import_path}/contrib/raftexample
e043e9
%gotest %{import_path}/discovery
e043e9
#%%gotest %%{import_path}/e2e
e043e9
%gotest %{import_path}/error
e043e9
%gotest %{import_path}/etcdctl/command
e043e9
%gotest %{import_path}/etcdmain
e043e9
%gotest %{import_path}/etcdserver
e043e9
%gotest %{import_path}/etcdserver/auth
e043e9
#%gotest %{import_path}/etcdserver/etcdhttp
e043e9
#%gotest %{import_path}/etcdserver/etcdhttp/httptypes
e043e9
#%%gotest %%{import_path}/integration
e043e9
%gotest %{import_path}/lease
e043e9
%gotest %{import_path}/pkg/adt
e043e9
%gotest %{import_path}/pkg/cors
e043e9
%gotest %{import_path}/pkg/crc
e043e9
%gotest %{import_path}/pkg/fileutil
e043e9
%gotest %{import_path}/pkg/flags
e043e9
%gotest %{import_path}/pkg/idutil
e043e9
%gotest %{import_path}/pkg/ioutil
e043e9
%gotest %{import_path}/pkg/logutil
e043e9
%gotest %{import_path}/pkg/netutil
e043e9
%gotest %{import_path}/pkg/osutil
e043e9
%gotest %{import_path}/pkg/pathutil
e043e9
%gotest %{import_path}/pkg/pbutil
e043e9
%gotest %{import_path}/pkg/schedule
e043e9
%gotest %{import_path}/pkg/testutil
e043e9
%gotest %{import_path}/pkg/transport
e043e9
%gotest %{import_path}/pkg/types
e043e9
%gotest %{import_path}/pkg/wait
e043e9
%gotest %{import_path}/proxy
e043e9
%gotest %{import_path}/raft
e043e9
%gotest %{import_path}/raft/rafttest
e043e9
%gotest %{import_path}/rafthttp
e043e9
%gotest %{import_path}/snap
e043e9
%gotest %{import_path}/storage
e043e9
%gotest %{import_path}/storage/backend
e043e9
%gotest %{import_path}/store
e043e9
%gotest %{import_path}/tools/functional-tester/etcd-agent
e043e9
%gotest %{import_path}/version
e043e9
%gotest %{import_path}/wal
e043e9
%endif
e043e9
e043e9
%pre
e043e9
getent group %{system_name} >/dev/null || groupadd -r %{system_name}
e043e9
getent passwd %{system_name} >/dev/null || useradd -r -g %{system_name} -d %{_sharedstatedir}/%{system_name} \
e043e9
	-s /sbin/nologin -c "etcd user" %{system_name}
e043e9
e043e9
%post
e043e9
%systemd_post %{system_name}.service
e043e9
e043e9
%preun
e043e9
%systemd_preun %{system_name}.service
e043e9
e043e9
%postun
e043e9
%systemd_postun %{system_name}.service
e043e9
e043e9
#define license tag if not already defined
e043e9
%{!?_licensedir:%global license %doc}
e043e9
e043e9
%files
e043e9
%license LICENSE
e043e9
%doc *.md
e043e9
%doc cmd/Godeps/Godeps.json
e043e9
%config(noreplace) %{_sysconfdir}/%{system_name}
e043e9
%{_bindir}/%{system_name}
e043e9
%{_bindir}/%{system_name}ctl
e043e9
%{_bindir}/%{system_name}-top
e043e9
%dir %attr(-,%{system_name},%{system_name}) %{_sharedstatedir}/%{system_name}
e043e9
%{_unitdir}/%{system_name}.service
e043e9
e043e9
%if 0%{?with_devel}
e043e9
%files devel -f devel.file-list
e043e9
%license LICENSE
e043e9
%doc *.md
e043e9
%doc cmd/Godeps/Godeps.json
e043e9
%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
e043e9
%endif
e043e9
e043e9
%if 0%{?with_unit_test}
e043e9
%files unit-test -f unit-test.file-list
e043e9
%license LICENSE
e043e9
%doc *.md
e043e9
%endif
e043e9
e043e9
%changelog
e043e9
* Fri Jul 22 2016 jchaloup <jchaloup@redhat.com> - 3.0.2-1
e043e9
- Update to v3.0.3
e043e9
  related: #1347499
e043e9
e043e9
* Tue Jul 12 2016 jchaloup <jchaloup@redhat.com> - 3.0.2-1
e043e9
- Update to v3.0.2
e043e9
  related: #1347499
e043e9
e043e9
* Sun May 15 2016 jchaloup <jchaloup@redhat.com> - 3.0.0-0.1.beta0
e043e9
- Build etcd3 v3.0.0-beta0 for AH 7.3
e043e9
  resolves: #1347499