diff --git a/etcd.spec b/etcd.spec index 5f1e899..df6605e 100644 --- a/etcd.spec +++ b/etcd.spec @@ -150,8 +150,8 @@ mv client/v3/README.md README-clientv3.md %if %{without bootstrap} %build -%gobuild -o %{gobuilddir}/bin/etcd %{goipath} -for cmd in etcdctl; do +%gobuild -o %{gobuilddir}/bin/etcd %{goipath}/server +for cmd in etcdctl etcdutl; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %endif @@ -176,7 +176,6 @@ echo "%{gopath}/src/%{goipath}/raft/v3" >> golang-etcd-devel.file-list echo "%{gopath}/src/%{goipath}/server/v3" >> golang-etcd-devel.file-list echo "%{gopath}/src/%{goipath}/tests/v3" >> golang-etcd-devel.file-list echo "%{gopath}/src/%{goipath}/tools/v3" >> golang-etcd-devel.file-list -echo "%{gopath}/src/%{goipath}/server/v3/etcdserver/api/v3rpc" >> golang-etcd-server-etcdserver-api-v3rpc-devel.file-list %if %{without bootstrap} install -m 0755 -vd %{buildroot}%{_bindir} @@ -202,7 +201,9 @@ install -dm 0755 %{buildroot}%{_sharedstatedir}/%{name} -d tests/integration \ -d tests/e2e \ -d tests/integration/client \ - -t tests/integration/clientv3 + -t tests/integration/clientv3 \ + -d server/etcdserver/api/membership \ + -d server/mvcc/backend %endif %endif @@ -214,7 +215,7 @@ getent passwd %{name} >/dev/null || useradd -r -g %{name} -d %{_sharedstatedir}/ %post %systemd_post %{name}.service -รท + %preun %systemd_preun %{name}.service