# Generated by go2rpm 1.10.0 %bcond_without check %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/raft/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-raft3 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} %description %{common_description} %gopkg %prep %goprep %autopatch -p1 rm -rf cmd/vendor rm -rf raft/rafttest raft/interaction_test.go 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 find . ! \( -name raft -o -name "*.md" -o -name LICENSE -o -name Documentation -o -name _build \) -maxdepth 1 -exec rm -rvf {} \; mv raft/* . %if %{without bootstrap} %generate_buildrequires %go_generate_buildrequires %endif %install %gopkginstall %if %{without bootstrap} %if %{with check} %check %gocheck %endif %endif %gopkgfiles %changelog %autochangelog