]>
Commit | Line | Data |
---|---|---|
905fcae1 | 1 | # git rev-parse --short v3.3.10 |
fa83d38d | 2 | %define githash d57e8b8 |
f9eb0a89 ER |
3 | Summary: A highly-available key value store for shared configuration |
4 | Name: etcd | |
fa83d38d | 5 | Version: 3.3.12 |
f9eb0a89 ER |
6 | Release: 1 |
7 | License: Apache v2.0 | |
8 | Group: Daemons | |
9 | Source0: https://github.com/coreos/etcd/archive/v%{version}/%{name}-%{version}.tar.gz | |
fa83d38d | 10 | # Source0-md5: 23bc317f1db7730bcd408575616ea651 |
ec7088d3 | 11 | Patch0: nogit.patch |
f9eb0a89 | 12 | URL: https://github.com/coreos/etcd/ |
ec7088d3 | 13 | BuildRequires: golang >= 1.2.1-3 |
f9eb0a89 ER |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15 | ||
ec7088d3 ER |
16 | # disable debug packages for go packages |
17 | %define debug_package %{nil} | |
18 | ||
19 | # this will fool adapter not to touch 'etcd' | |
20 | %define _sysconfdir __bogus__value | |
21 | ||
f9eb0a89 ER |
22 | %description |
23 | A highly-available key value store for shared configuration. | |
24 | ||
25 | %prep | |
26 | %setup -q | |
ec7088d3 | 27 | %patch0 -p1 |
f9eb0a89 ER |
28 | |
29 | %build | |
ec7088d3 ER |
30 | GIT_SHA=%{githash} \ |
31 | sh -xe build | |
f9eb0a89 ER |
32 | |
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | install -d $RPM_BUILD_ROOT%{_bindir} | |
ec7088d3 ER |
36 | install -p bin/etcd $RPM_BUILD_ROOT%{_bindir} |
37 | install -p bin/etcdctl $RPM_BUILD_ROOT%{_bindir} | |
f9eb0a89 ER |
38 | |
39 | %clean | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
42 | %files | |
43 | %defattr(644,root,root,755) | |
905fcae1 | 44 | %doc LICENSE README.md Documentation/v2/internal-protocol-versioning.md |
ec7088d3 ER |
45 | %attr(755,root,root) %{_bindir}/etcd |
46 | %attr(755,root,root) %{_bindir}/etcdctl |