319373
%global debug_package %{nil}
319373
319373
%global provider	github
319373
%global provider_tld	com
319373
%global project		coreos
319373
%global repo		etcd
319373
%global commit		4f330a9ba2097222a9add8136115f3a670dd0642
319373
319373
%global import_path	%{provider}.%{provider_tld}/%{project}/%{repo}
319373
%global gopath		%{_datadir}/gocode
319373
%global shortcommit	%(c=%{commit}; echo ${c:0:7})
319373
319373
319373
Name:		etcd
319373
Version:	0.4.6
c5056e
Release:	0.13%{?dist}
319373
Summary:	A highly-available key value store for shared configuration
319373
319373
License:	ASL 2.0
319373
URL:		https://github.com/coreos/etcd/
319373
Source0:	https://github.com/coreos/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
c5056e
Source1:	httpd://github.com/coreos/etcdctl/archive/v%{version}/etcdctl-%{version}.tar.gz
c5056e
Source2:	etcd.service
c5056e
Source3:	etcd.conf
319373
319373
ExclusiveArch:	x86_64
319373
319373
BuildRequires:	golang
319373
BuildRequires:	systemd
319373
319373
Requires(pre):	shadow-utils
319373
Requires(post): systemd
319373
Requires(preun): systemd
319373
Requires(postun): systemd
319373
319373
%description
319373
A highly-available key value store for shared configuration.
319373
319373
%prep
c5056e
%setup -q -n %{name}-%{version} -a 1
319373
319373
%build
319373
./build
c5056e
cd etcdctl-%{version}
c5056e
./build
319373
319373
%install
c5056e
319373
install -d -m 0755 %{buildroot}%{_sysconfdir}/etcd
c5056e
install -m 644 -t %{buildroot}%{_sysconfdir}/etcd %{SOURCE3}
319373
install -D -p -m 0755 bin/etcd %{buildroot}%{_bindir}/etcd
c5056e
install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service
319373
319373
# And create /var/lib/etcd
319373
install -d -m 0755 %{buildroot}%{_localstatedir}/lib/etcd
319373
c5056e
install -D -p -m 0755 etcdctl-%{version}/bin/etcdctl  %{buildroot}%{_bindir}/etcdctl
c5056e
319373
%check
319373
# empty for now
319373
319373
%pre
319373
getent group etcd >/dev/null || groupadd -r etcd
319373
getent passwd etcd >/dev/null || useradd -r -g etcd -d %{_localstatedir}/lib/etcd \
319373
	-s /sbin/nologin -c "etcd user" etcd
319373
%post
319373
%systemd_post %{name}.service
319373
319373
%preun
319373
%systemd_preun %{name}.service
319373
319373
%postun
319373
%systemd_postun %{name}.service
319373
319373
%files
319373
%config(noreplace) %{_sysconfdir}/etcd
319373
%{_bindir}/etcd
c5056e
%{_bindir}/etcdctl
319373
%dir %attr(-,etcd,etcd) %{_localstatedir}/lib/etcd
319373
%{_unitdir}/%{name}.service
319373
%doc LICENSE README.md Documentation/internal-protocol-versioning.md
319373
319373
%changelog
c5056e
* Tue Jan 27 2015 Eric Paris <eparis@redhat.com> - 0.4.6-0.13
c5056e
- build and include etcdctl
c5056e
- return etcd tarball to sources
c5056e
  resolves: #1186439
c5056e
319373
* Wed Jan 21 2015 Eric Paris <eparis@redhat.com> - 0.4.6-0.12
319373
- set config to use /var/lib/etcd/default.etcd/ for storeage (like 2.0 will use)
319373
319373
* Mon Oct 06 2014 jchaloup <jchaloup@redhat.com> - 0.4.6-0.11
319373
- back to 0.4.6 version
319373
319373
* Mon Oct 06 2014 jchaloup <jchaloup@redhat.com> - 0.4.6-0.10.git4f330a9
319373
- replace BuildArch with ExclusiveArch
319373
319373
* Sun Oct 05 2014 Eric Paris <eparis@redhat.com> - 0.4.6-0.9.git378cadf
319373
- Fix the .service file to it can launch!
319373
319373
* Fri Oct 03 2014 jchaloup <jchaloup@redhat.com> - 0.4.6-0.8.git378cadf
319373
- Bump to upstream 4f330a9ba2097222a9add8136115f3a670dd0642
319373
- the last commit before golang-cover (not in rhel7.1 so far)
319373
319373
* Thu Oct 02 2014 jchaloup <jchaloup@redhat.com> - 0.4.6-7
319373
- upstream commit to fix the bug caused by random iteration order over map in store/store_test.go
319373
- upstrema commit cc1df691cc7e752f1589fe796b7c1d589316a96f
319373
319373
* Thu Oct 02 2014 jchaloup <jchaloup@redhat.com> - 0.4.6-6
319373
- removing devel part in install section
319373
319373
* Thu Oct 02 2014 Eric Paris <eparis@redhat.com> - 0.4.6-5
319373
- Clean up prep and build section
319373
319373
* Mon Sep 22 2014 jchaloup <jchaloup@redhat.com> - 0.4.6-4
319373
- resolves: #1047194
319373
  Update to 0.4.6 from https://github.com/projectatomic/etcd-package
319373
319373
* Tue Aug 19 2014 Adam Miller <maxamillion@fedoraproject.org> - 0.4.6-3
319373
- Add devel sub-package
319373
319373
* Wed Aug 13 2014 Eric Paris <eparis@redhat.com> - 0.4.6-2
319373
- Bump to 0.4.6
319373
- run as etcd, not root
319373
319373
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-6
319373
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
319373
319373
* Sun Oct 20 2013 Peter Lemenkov <lemenkov@gmail.com> - 0.1.2-5
319373
- goprotobuf library unbundled (see rhbz #1018477)
319373
- go-log library unbundled (see rhbz #1018478)
319373
- go-raft library unbundled (see rhbz #1018479)
319373
- go-systemd library unbundled (see rhbz #1018480)
319373
- kardianos library unbundled (see rhbz #1018481)
319373
319373
* Sun Oct 13 2013 Peter Lemenkov <lemenkov@gmail.com> - 0.1.2-4
319373
- go.net library unbundled (see rhbz #1018476)
319373
319373
* Sat Oct 12 2013 Peter Lemenkov <lemenkov@gmail.com> - 0.1.2-3
319373
- Prepare for packages unbundling
319373
- Verbose build
319373
319373
* Sat Oct 12 2013 Peter Lemenkov <lemenkov@gmail.com> - 0.1.2-2
319373
- Fix typo in the etc.service file
319373
319373
* Sat Oct 12 2013 Peter Lemenkov <lemenkov@gmail.com> - 0.1.2-1
319373
- Ver. 0.1.2
319373
- Integrate with systemd
319373
319373
* Mon Aug 26 2013 Luke Cypret <cypret@fedoraproject.org> - 0.1.1-1
319373
- Initial creation