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