# Generated by go2rpm 1.10.0 %global debug_package %{nil} %if %{with bootstrap} %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$ %endif # https://github.com/etcd-io/etcd %global goipath go.etcd.io/etcd/etcdutl/v3 %global forgeurl https://github.com/etcd-io/etcd Version: 3.5.9 %gometa -L -f %global common_description %{expand: Distributed reliable key-value store for the most critical data of a distributed system.} %global golicenses LICENSE %global godocs CONTRIBUTING.md README.md Documentation\\\ README-*.md READMEv2-etcdctl.md Name: golang-etcd-etcdutl3 Release: %autorelease Summary: Distributed reliable key-value store for the most critical data of a distributed system License: Apache-2.0 URL: %{gourl} Source: %{gosource} %if %{without bootstrap} BuildRequires: golang(github.com/jonboulle/clockwork) BuildRequires: golang(github.com/xiang90/probing) %endif %description %{common_description} %gopkg %prep %goprep %autopatch -p1 rm -rf cmd/vendor rm -rf raft/rafttest find ./* -type l -exec sh -c 'for i in "$@"; do cp --preserve --remove-destination "$(readlink -f "$i")" "$i"; done' sh {} + for d in contrib etcdctl etcdutl pkg raft hack security; do mv $d/README.md README-$d.md done mv etcdctl/READMEv2.md READMEv2-etcdctl.md mv client/v2/README.md README-clientv2.md mv client/v3/README.md README-clientv3.md mv etcdutl etcdutl2 find . ! \( -name etcdutl2 -o -name "*.md" -o -name LICENSE -o -name Documentation -o -name _build \) -maxdepth 1 -exec rm -rvf {} \; mv etcdutl2/* . %if %{without bootstrap} %generate_buildrequires %go_generate_buildrequires %endif %install %gopkginstall %if %{without bootstrap} %if %{with check} %check %gocheck %endif %endif %gopkgfiles %changelog %autochangelog