diff --git a/.gitignore b/.gitignore index e69de29..746624c 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/etcd-v0.1.1.tar.gz diff --git a/etcd.spec b/etcd.spec new file mode 100644 index 0000000..d8f606a --- /dev/null +++ b/etcd.spec @@ -0,0 +1,35 @@ +%define debug_package %{nil} + +Name: etcd +Version: 0.1.1 +Release: 1%{?dist} +Summary: A highly-available key value store for shared configuration + +License: ASL 2.0 +URL: https://github.com/coreos/etcd/ +Source0: https://github.com/coreos/%{name}/archive/v%{version}/%{name}-v%{version}.tar.gz + +BuildRequires: golang + +%description +A highly-available key value store for shared configuration. + +%prep +%setup -q +sed -i "s/^\(VER=\).*HEAD)/\1%{version}/" ./scripts/release-version + +%build +./build + +%install +install -D -p etcd %{buildroot}%{_bindir}/etcd +install -t %{buildroot}%{_bindir} etcd + + +%files +%{_bindir}/etcd +%doc LICENSE README.md Documentation/internal-protocol-versioning.md + +%changelog +* Mon Aug 26 2013 Luke Cypret - 0.1.1-1 +Initial creation diff --git a/sources b/sources index e69de29..0b5ce87 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +04dfdb78ffc6e5a289f340615525bf70 etcd-v0.1.1.tar.gz