1 # git rev-parse --short v3.3.10
2 %define githash d57e8b8
3 Summary: A highly-available key value store for shared configuration
9 Source0: https://github.com/coreos/etcd/archive/v%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5: 23bc317f1db7730bcd408575616ea651
12 URL: https://github.com/coreos/etcd/
13 BuildRequires: golang >= 1.2.1-3
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 # disable debug packages for go packages
17 %define debug_package %{nil}
19 # this will fool adapter not to touch 'etcd'
20 %define _sysconfdir __bogus__value
23 A highly-available key value store for shared configuration.
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT%{_bindir}
36 install -p bin/etcd $RPM_BUILD_ROOT%{_bindir}
37 install -p bin/etcdctl $RPM_BUILD_ROOT%{_bindir}
40 rm -rf $RPM_BUILD_ROOT
43 %defattr(644,root,root,755)
44 %doc LICENSE README.md Documentation/v2/internal-protocol-versioning.md
45 %attr(755,root,root) %{_bindir}/etcd
46 %attr(755,root,root) %{_bindir}/etcdctl