|
|
12ae81 |
%global with_debug 1
|
|
|
94616a |
|
|
|
94616a |
%if 0%{?with_debug}
|
|
|
18e3f8 |
%global _dwz_low_mem_die_limit 0
|
|
|
18e3f8 |
%else
|
|
|
18e3f8 |
%global debug_package %{nil}
|
|
|
18e3f8 |
%endif
|
|
|
4ca5d9 |
|
|
|
4ca5d9 |
%if ! 0%{?gobuild:1}
|
|
|
e46ffa |
%define gobuild(o:) go build -buildmode pie -tags=rpm_crashtraceback -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '-Wl,-z,relro,-z,now'" -a -v -x %{?**};
|
|
|
4ca5d9 |
%endif
|
|
|
4ca5d9 |
|
|
|
18e3f8 |
%global provider github
|
|
|
18e3f8 |
%global provider_tld com
|
|
|
18e3f8 |
%global project coreos
|
|
|
18e3f8 |
%global repo etcd
|
|
|
b6dfdf |
# https://github.com/coreos/etcd
|
|
|
b6dfdf |
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
|
|
|
b6dfdf |
%global import_path %{provider_prefix}
|
|
|
c6fbc6 |
%global commit 1674e682fe9fbecd66e9f20b77da852ad7f517a9
|
|
|
be5080 |
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
18e3f8 |
|
|
|
4ca5d9 |
%global system_name etcd
|
|
|
c6fbc6 |
%global man_version 3.2.22
|
|
|
4ca5d9 |
|
|
|
4ca5d9 |
Name: etcd
|
|
|
c6fbc6 |
Version: 3.2.22
|
|
|
22fde9 |
Release: 1%{?dist}
|
|
|
319373 |
Summary: A highly-available key value store for shared configuration
|
|
|
319373 |
License: ASL 2.0
|
|
|
b6dfdf |
URL: https://%{provider_prefix}
|
|
|
4ca5d9 |
Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
|
|
|
4ca5d9 |
Source1: %{system_name}.service
|
|
|
4ca5d9 |
Source2: %{system_name}.conf
|
|
|
c6fbc6 |
Source3: man-%{man_version}.tar.gz
|
|
|
e4deaa |
Patch3: bz1350875-disaster-recovery-with-copies.patch
|
|
|
f67c12 |
Patch4: expand-etcd-arch-validation.patch
|
|
|
94616a |
|
|
|
4ca5d9 |
# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
|
|
|
ec1eb7 |
ExclusiveArch: x86_64 aarch64 ppc64le s390x %{arm} %{ix86}
|
|
|
4ca5d9 |
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
|
|
|
4ca5d9 |
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
|
|
|
4ca5d9 |
|
|
|
4ca5d9 |
Obsoletes: etcd3 < 3.0.15
|
|
|
4ca5d9 |
Provides: etcd3 = %{version}-%{release}
|
|
|
12ae81 |
|
|
|
4ca5d9 |
BuildRequires: libpcap-devel
|
|
|
4ca5d9 |
|
|
|
319373 |
BuildRequires: systemd
|
|
|
4ca5d9 |
|
|
|
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
|
|
|
c6fbc6 |
%setup -q -n man-%{man_version} -T -b 3
|
|
|
4ca5d9 |
%setup -q -n %{repo}-%{commit}
|
|
|
dd7e87 |
mkdir -p man/man1
|
|
|
c6fbc6 |
cp ../man-%{man_version}/*.1 man/man1/.
|
|
|
dd7e87 |
|
|
|
4ca5d9 |
# move content of vendor under Godeps as has been so far
|
|
|
4ca5d9 |
mkdir -p Godeps/_workspace/src
|
|
|
4ca5d9 |
mv cmd/vendor/* Godeps/_workspace/src/.
|
|
|
18e3f8 |
|
|
|
e4deaa |
%patch3 -p1
|
|
|
f67c12 |
%patch4 -p1
|
|
|
e4deaa |
|
|
|
319373 |
%build
|
|
|
18e3f8 |
mkdir -p src/github.com/coreos
|
|
|
18e3f8 |
ln -s ../../../ src/github.com/coreos/etcd
|
|
|
18e3f8 |
|
|
|
12ae81 |
export GOPATH=$(pwd):$(pwd)/Godeps/_workspace:%{gopath}
|
|
|
94616a |
|
|
|
e4deaa |
export LDFLAGS="-X %{import_path}/version.GitSHA=%{shortcommit} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n')"
|
|
|
94616a |
|
|
|
e4deaa |
%gobuild -o bin/%{system_name} %{import_path}
|
|
|
4ca5d9 |
%gobuild -o bin/%{system_name}ctl %{import_path}/%{system_name}ctl
|
|
|
319373 |
|
|
|
319373 |
%install
|
|
|
4ca5d9 |
install -D -p -m 0755 bin/%{system_name} %{buildroot}%{_bindir}/%{system_name}
|
|
|
4ca5d9 |
install -D -p -m 0755 bin/%{system_name}ctl %{buildroot}%{_bindir}/%{system_name}ctl
|
|
|
4ca5d9 |
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{system_name}.service
|
|
|
4ca5d9 |
install -d -m 0755 %{buildroot}%{_sysconfdir}/%{system_name}
|
|
|
4ca5d9 |
install -m 644 -t %{buildroot}%{_sysconfdir}/%{system_name} %{SOURCE2}
|
|
|
319373 |
|
|
|
dd7e87 |
# install manpages
|
|
|
dd7e87 |
install -d %{buildroot}%{_mandir}/man1
|
|
|
dd7e87 |
install -p -m 644 man/man1/* %{buildroot}%{_mandir}/man1
|
|
|
dd7e87 |
|
|
|
319373 |
# And create /var/lib/etcd
|
|
|
4ca5d9 |
install -d -m 0755 %{buildroot}%{_sharedstatedir}/%{system_name}
|
|
|
18e3f8 |
|
|
|
319373 |
%pre
|
|
|
4ca5d9 |
getent group %{system_name} >/dev/null || groupadd -r %{system_name}
|
|
|
4ca5d9 |
getent passwd %{system_name} >/dev/null || useradd -r -g %{system_name} -d %{_sharedstatedir}/%{system_name} \
|
|
|
4ca5d9 |
-s /sbin/nologin -c "etcd user" %{system_name}
|
|
|
18e3f8 |
|
|
|
319373 |
%post
|
|
|
4ca5d9 |
%systemd_post %{system_name}.service
|
|
|
319373 |
|
|
|
319373 |
%preun
|
|
|
4ca5d9 |
%systemd_preun %{system_name}.service
|
|
|
319373 |
|
|
|
319373 |
%postun
|
|
|
4ca5d9 |
%systemd_postun %{system_name}.service
|
|
|
319373 |
|
|
|
12ae81 |
#define license tag if not already defined
|
|
|
12ae81 |
%{!?_licensedir:%global license %doc}
|
|
|
12ae81 |
|
|
|
319373 |
%files
|
|
|
12ae81 |
%license LICENSE
|
|
|
4ca5d9 |
%doc *.md
|
|
|
e4deaa |
%doc glide.lock
|
|
|
4ca5d9 |
%config(noreplace) %{_sysconfdir}/%{system_name}
|
|
|
4ca5d9 |
%{_bindir}/%{system_name}
|
|
|
4ca5d9 |
%{_bindir}/%{system_name}ctl
|
|
|
4ca5d9 |
%dir %attr(-,%{system_name},%{system_name}) %{_sharedstatedir}/%{system_name}
|
|
|
4ca5d9 |
%{_unitdir}/%{system_name}.service
|
|
|
dd7e87 |
%{_mandir}/man1/*.1*
|
|
|
319373 |
|
|
|
18e3f8 |
%changelog
|
|
|
c6fbc6 |
* Mon Jun 11 2018 Jan Chaloupka <jchaloup@redhat.com> - 3.2.22-1
|
|
|
c6fbc6 |
- Update to 3.2.22
|
|
|
c6fbc6 |
resolves: #1541355
|
|
|
c6fbc6 |
|
|
|
c6fbc6 |
* Mon Jun 04 2018 Jan Chaloupka <jchaloup@redhat.com> - 3.2.21-1
|
|
|
c6fbc6 |
- Update to 3.2.21
|
|
|
c6fbc6 |
resolves: #1585787
|
|
|
c6fbc6 |
|
|
|
22fde9 |
* Tue Apr 17 2018 Jan Chaloupka <jchaloup@redhat.com> - 3.2.18-1
|
|
|
22fde9 |
- Update to 3.2.18
|
|
|
22fde9 |
resolves: #1568389
|
|
|
22fde9 |
|
|
|
9bf617 |
* Tue Feb 06 2018 Jan Chaloupka <jchaloup@redhat.com> - 3.2.15-2
|
|
|
9bf617 |
- Rebuild for 7.5.0
|
|
|
9bf617 |
resolves: #1542526
|
|
|
9bf617 |
|
|
|
e46ffa |
* Mon Jan 29 2018 Jan Chaloupka <jchaloup@redhat.com> - 3.2.15-1
|
|
|
e46ffa |
- Update to 3.2.15
|
|
|
e46ffa |
resolves: #1539670
|
|
|
e46ffa |
resolves: #1378706
|
|
|
e46ffa |
|
|
|
dc8f98 |
* Wed Dec 06 2017 Jan Chaloupka <jchaloup@redhat.com> - 3.2.11-1
|
|
|
dc8f98 |
- Update to 3.2.11
|
|
|
dc8f98 |
related: #1514612
|
|
|
dc8f98 |
|
|
|
dc8f98 |
* Tue Nov 21 2017 Jan Chaloupka <jchaloup@redhat.com> - 3.2.10-1
|
|
|
dc8f98 |
- Update to 3.2.10
|
|
|
dc8f98 |
resolves: #1514612
|
|
|
dc8f98 |
|
|
|
dd7e87 |
* Mon Nov 20 2017 Jan Chaloupka <jchaloup@redhat.com> - 3.2.9-3
|
|
|
dd7e87 |
- Bump man-pages tarball
|
|
|
dd7e87 |
related: #1510480
|
|
|
dd7e87 |
|
|
|
dd7e87 |
* Mon Nov 20 2017 Jan Chaloupka <jchaloup@redhat.com> - 3.2.9-2
|
|
|
dd7e87 |
- Fix Synopsis of etcdctl3 man pages
|
|
|
dd7e87 |
related: #1510480
|
|
|
dd7e87 |
|
|
|
dd7e87 |
* Tue Nov 07 2017 Jan Chaloupka <jchaloup@redhat.com> - 3.2.9-1
|
|
|
dd7e87 |
- Update to 3.2.9
|
|
|
dd7e87 |
resolves: #1510480
|
|
|
dd7e87 |
- Generate etcd and etcdctl man-pages
|
|
|
dd7e87 |
resolves: #1444336
|
|
|
dd7e87 |
|
|
|
dd7e87 |
* Fri Sep 29 2017 Jan Chaloupka <jchaloup@redhat.com> - 3.2.7-2
|
|
|
dd7e87 |
- Rebuild with correct hardening flags
|
|
|
dd7e87 |
resolves: #1420783
|
|
|
dd7e87 |
|
|
|
4d011e |
* Tue Sep 19 2017 Jan Chaloupka <jchaloup@redhat.com> - 3.2.7-1
|
|
|
4d011e |
- Update to 3.2.7
|
|
|
4d011e |
resolves: #1493165
|
|
|
4d011e |
|
|
|
20f35b |
* Tue Aug 08 2017 Jan Chaloupka <jchaloup@redhat.com> - 3.2.5-1
|
|
|
20f35b |
- Update to 3.2.5
|
|
|
20f35b |
resolves: #1479371
|
|
|
20f35b |
|
|
|
e2cec8 |
* Mon Jun 12 2017 Jan Chaloupka <jchaloup@redhat.com> - 3.1.9-2
|
|
|
e2cec8 |
- Build for secondary architectures as well
|
|
|
e2cec8 |
|
|
|
acbac7 |
* Fri Jun 09 2017 Scott Dodson <sdodson@redhat.com> - 3.1.9-1
|
|
|
acbac7 |
- Update to 3.1.9
|
|
|
acbac7 |
resolves: #1458941
|
|
|
acbac7 |
|
|
|
acbac7 |
* Tue Jun 06 2017 Jan Chaloupka <jchaloup@redhat.com> - 3.1.8-1
|
|
|
acbac7 |
- Update to 3.1.8
|
|
|
acbac7 |
resolves: #1459122
|
|
|
acbac7 |
|
|
|
f67c12 |
* Tue May 02 2017 Jan Chaloupka <jchaloup@redhat.com> - 3.1.7-1
|
|
|
f67c12 |
- Update to 3.1.7
|
|
|
f67c12 |
resolves: #1447235
|
|
|
f67c12 |
|
|
|
f67c12 |
* Tue Apr 04 2017 Yaakov Selkowitz <yselkowi@redhat.com> - 3.1.3-2
|
|
|
f67c12 |
- Circumvent runtime check of officially supported architectures
|
|
|
f67c12 |
resolves: #1434973
|
|
|
f67c12 |
|
|
|
7d999c |
* Tue Mar 21 2017 Jan Chaloupka <jchaloup@redhat.com> - 3.1.3-1
|
|
|
7d999c |
- Update to 3.1.3
|
|
|
7d999c |
resolves: #1434364
|
|
|
7d999c |
|
|
|
f67c12 |
* Mon Feb 27 2017 Josh Boyer <jwboyer@redhat.com> - 3.1.0-2.1
|
|
|
f67c12 |
- Rebuild rebase on all architectures
|
|
|
f67c12 |
|
|
|
e4deaa |
* Tue Feb 21 2017 Jan Chaloupka <jchaloup@redhat.com> - 3.1.0-2
|
|
|
e4deaa |
- Apply "add --keep-cluster-id and --node-id to 'etcdctl backup'"
|
|
|
e4deaa |
from extras-rhel-7.2 branch
|
|
|
e4deaa |
resolves: #1350875
|
|
|
e4deaa |
|
|
|
f67c12 |
* Thu Feb 16 2017 Josh Boyer <jwboyer@redhat.com> - 3.1.0-1.1
|
|
|
f67c12 |
- Rebuild rebase on all architectures
|
|
|
f67c12 |
|
|
|
e4deaa |
* Mon Feb 06 2017 Jan Chaloupka <jchaloup@redhat.com> - 3.1.0-1
|
|
|
e4deaa |
- Update to 3.1.0
|
|
|
e4deaa |
etcdctl-top removed by upstream
|
|
|
e4deaa |
resolves: #1416440
|
|
|
e4deaa |
|
|
|
f67c12 |
* Fri Jan 20 2017 d.marlin <dmarlin@redhat.com>
|
|
|
f67c12 |
- Build for all archs (adding ppc64le and s390x)
|
|
|
f67c12 |
|
|
|
f67c12 |
* Tue Jan 10 2017 d.marlin <dmarlin@redhat.com>
|
|
|
f67c12 |
- Add aarch64 to ExclusiveArch list.
|
|
|
f67c12 |
|
|
|
f67c12 |
* Mon Jan 09 2017 d.marlin <dmarlin@redhat.com>
|
|
|
f67c12 |
- Correct 'link' warning for -X flag.
|
|
|
f67c12 |
|
|
|
4ca5d9 |
* Thu Dec 01 2016 jchaloup <jchaloup@redhat.com> - 3.0.15-1
|
|
|
4ca5d9 |
- Update to 3.0.15
|
|
|
4ca5d9 |
Obsolete etcd3 < 3.0.15
|
|
|
4ca5d9 |
|
|
|
4ca5d9 |
* Fri Nov 18 2016 jchaloup <jchaloup@redhat.com> - 3.0.14-3
|
|
|
4ca5d9 |
- Build with debug-info subpackage
|
|
|
4ca5d9 |
- Until etcd3 obsoletes etcd it conflicts with it
|
|
|
4ca5d9 |
|
|
|
4ca5d9 |
* Tue Nov 15 2016 Avesh Agarwal <avagarwa@redhat.com> - 3.0.14-2
|
|
|
4ca5d9 |
- Resolves: #1395359 etcd3 should not obsolete etcd
|
|
|
319373 |
|
|
|
4ca5d9 |
* Mon Nov 07 2016 jchaloup <jchaloup@redhat.com> - 3.0.14-1
|
|
|
4ca5d9 |
- Update to v3.0.14
|
|
|
4ca5d9 |
related: #1386963
|
|
|
319373 |
|
|
|
4ca5d9 |
* Thu Oct 27 2016 jchaloup <jchaloup@redhat.com> - 3.0.13-1
|
|
|
4ca5d9 |
- Update to v3.0.13
|
|
|
4ca5d9 |
related: #1386963
|
|
|
319373 |
|
|
|
4ca5d9 |
* Fri Oct 21 2016 jchaloup <jchaloup@redhat.com> - 3.0.12-3
|
|
|
4ca5d9 |
- etcdctl: fix migrate in outputing client.Node to json
|
|
|
4ca5d9 |
resolves: #1386963
|
|
|
319373 |
|
|
|
4ca5d9 |
* Tue Oct 18 2016 jchaloup <jchaloup@redhat.com> - 3.0.12-2
|
|
|
4ca5d9 |
- Replace etcd with etcd3 when upgrading
|
|
|
4ca5d9 |
resolves: #1384161
|
|
|
319373 |
|
|
|
4ca5d9 |
* Thu Oct 13 2016 jchaloup <jchaloup@redhat.com> - 3.0.12-1
|
|
|
4ca5d9 |
- Update to v3.0.12
|
|
|
319373 |
|
|
|
4ca5d9 |
* Thu Oct 06 2016 jchaloup <jchaloup@redhat.com> - 3.0.10-1
|
|
|
4ca5d9 |
- Update to v3.0.10
|
|
|
319373 |
|
|
|
4ca5d9 |
* Fri Sep 23 2016 jchaloup <jchaloup@redhat.com> - 3.0.3-2
|
|
|
4ca5d9 |
- Extend etcd.conf with new flags
|
|
|
4ca5d9 |
resolves: #1378706
|
|
|
319373 |
|
|
|
4ca5d9 |
* Fri Jul 22 2016 jchaloup <jchaloup@redhat.com> - 3.0.2-1
|
|
|
4ca5d9 |
- Update to v3.0.3
|
|
|
4ca5d9 |
related: #1347499
|
|
|
319373 |
|
|
|
4ca5d9 |
* Tue Jul 12 2016 jchaloup <jchaloup@redhat.com> - 3.0.2-1
|
|
|
4ca5d9 |
- Update to v3.0.2
|
|
|
4ca5d9 |
related: #1347499
|
|
|
319373 |
|
|
|
4ca5d9 |
* Sun May 15 2016 jchaloup <jchaloup@redhat.com> - 3.0.0-0.1.beta0
|
|
|
4ca5d9 |
- Build etcd3 v3.0.0-beta0 for AH 7.3
|
|
|
4ca5d9 |
resolves: #1347499
|