|
|
37628b |
%global debug_package %{nil}
|
|
|
37628b |
%global provider github
|
|
|
37628b |
%global provider_tld com
|
|
|
37628b |
%global project coreos
|
|
|
37628b |
%global repo flannel
|
|
|
37628b |
%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
|
|
|
37628b |
%global commit 52c3c4fb51109fdbb09a0d002ac35606f4a773ae
|
|
|
37628b |
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
37628b |
|
|
|
37628b |
Name: flannel
|
|
|
37628b |
Version: 0.2.0
|
|
|
16274f |
Release: 7%{?dist}
|
|
|
37628b |
Summary: Etcd address management agent for overlay networks
|
|
|
37628b |
License: ASL 2.0
|
|
|
37628b |
URL: https://%{import_path}
|
|
|
37628b |
#Source0: https://%{import_path}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
|
|
|
37628b |
Source0: https://%{import_path}/archive/v%{version}.tar.gz
|
|
|
37628b |
Source1: flanneld.sysconf
|
|
|
37628b |
Source2: flanneld.service
|
|
|
37628b |
Source3: flannel-docker.conf
|
|
|
37628b |
Source4: mk-docker-opts.sh
|
|
|
37628b |
ExclusiveArch: %{ix86} x86_64 %{arm}
|
|
|
37628b |
|
|
|
16274f |
Patch0: flannel-vxlan-create-retry.patch
|
|
|
16274f |
Patch1: flannel-Clarify-the-logging-when-VXLAN-interface-creation-fa.patch
|
|
|
16274f |
|
|
|
37628b |
BuildRequires: golang >= 1.2.7
|
|
|
37628b |
BuildRequires: pkgconfig(systemd)
|
|
|
37628b |
Requires: systemd
|
|
|
37628b |
Requires(post): systemd
|
|
|
37628b |
Requires(preun): systemd
|
|
|
37628b |
Requires(postun): systemd
|
|
|
37628b |
|
|
|
37628b |
%description
|
|
|
37628b |
Flannel is an etcd driven address management agent. Most commonly it is used to
|
|
|
37628b |
manage the ip addresses of overlay networks between systems running containers
|
|
|
37628b |
that need to communicate with one another.
|
|
|
37628b |
|
|
|
37628b |
%prep
|
|
|
37628b |
%setup -q -n %{repo}-%{version}
|
|
|
16274f |
%patch0 -p1
|
|
|
16274f |
%patch1 -p1
|
|
|
37628b |
|
|
|
37628b |
%build
|
|
|
37628b |
./build
|
|
|
37628b |
|
|
|
37628b |
%install
|
|
|
37628b |
# package with binary
|
|
|
37628b |
install -D -p -m 755 bin/flanneld %{buildroot}%{_bindir}/flanneld
|
|
|
37628b |
install -D -p -m 644 %{SOURCE1} %{buildroot}/etc/sysconfig/flanneld
|
|
|
37628b |
install -D -p -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/flanneld.service
|
|
|
37628b |
install -D -p -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/docker.service.d/flannel.conf
|
|
|
37628b |
install -D -p -m 755 %{SOURCE4} %{buildroot}%{_libexecdir}/flannel/mk-docker-opts.sh
|
|
|
37628b |
|
|
|
37628b |
%post
|
|
|
37628b |
%systemd_post flanneld.service
|
|
|
37628b |
|
|
|
37628b |
%preun
|
|
|
37628b |
# clean tempdir and workdir on removal or upgrade
|
|
|
37628b |
%systemd_preun flanneld.service
|
|
|
37628b |
|
|
|
37628b |
%postun
|
|
|
37628b |
%systemd_postun_with_restart flanneld.service
|
|
|
37628b |
|
|
|
37628b |
%files
|
|
|
37628b |
%doc CONTRIBUTING.md LICENSE MAINTAINERS README.md DCO NOTICE
|
|
|
37628b |
%{_bindir}/flanneld
|
|
|
37628b |
%{_unitdir}/flanneld.service
|
|
|
37628b |
%{_unitdir}/docker.service.d/flannel.conf
|
|
|
37628b |
%{_libexecdir}/flannel/mk-docker-opts.sh
|
|
|
37628b |
%config(noreplace) %{_sysconfdir}/sysconfig/flanneld
|
|
|
37628b |
|
|
|
37628b |
%changelog
|
|
|
16274f |
* Sun Mar 08 2015 jchaloup <jchaloup@redhat.com> - 0.2.0-7
|
|
|
16274f |
- flanneld fails to start on boot
|
|
|
16274f |
resolves: #1184579
|
|
|
16274f |
|
|
|
16274f |
* Thu Mar 5 2015 Eric Paris <eparis@redhat.com>
|
|
|
16274f |
- remove {} around FLANNEL_OPTIONS so you can use more than 1
|
|
|
16274f |
|
|
|
37628b |
* Fri Jan 30 2015 jchaloup <jchaloup@redhat.com> - 0.2.0-6
|
|
|
37628b |
- remove devel subpackage
|
|
|
37628b |
|
|
|
37628b |
* Wed Jan 21 2015 Eric Paris <eparis@redhat.com> - 0.2.0-5
|
|
|
37628b |
- Add generator more like upstream wants to use, use ExecStartPost
|
|
|
37628b |
(https://github.com/coreos/flannel/pull/85)
|
|
|
37628b |
|
|
|
37628b |
* Tue Jan 20 2015 Eric Paris <eparis@redhat.com> - 0.2.0-4
|
|
|
37628b |
- Add generator to turn flannel env vars into docker flags
|
|
|
37628b |
|
|
|
37628b |
* Tue Jan 20 2015 Peter Lemenkov <lemenkov@gmail.com> - 0.2.0-3
|
|
|
37628b |
- Change (Build)Requires accordning to the recent changes
|
|
|
37628b |
(http://pkgs.fedoraproject.org/cgit/golang-github-coreos-go-systemd.git/commit/?id=204f61c)
|
|
|
37628b |
|
|
|
37628b |
* Fri Jan 16 2015 Peter Lemenkov <lemenkov@gmail.com> - 0.2.0-2
|
|
|
37628b |
- Change flannel service type to notify. See
|
|
|
37628b |
https://github.com/coreos/flannel/blob/v0.2.0/main.go#L213
|
|
|
37628b |
|
|
|
37628b |
* Tue Dec 23 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.2.0-1
|
|
|
37628b |
- update to upstream v0.2.0
|
|
|
37628b |
- append FLANNEL_OPTIONS variable to unitfile command
|
|
|
37628b |
- systemd-units merged into systemd for fedora18+
|
|
|
37628b |
|
|
|
37628b |
* Tue Dec 2 2014 John W. Linville <linville@redhat.com> - 0.1.0-8.gita7b435a
|
|
|
37628b |
- Remove patches related to out-of-tree slice backend
|
|
|
37628b |
- Update to latest upstream
|
|
|
37628b |
|
|
|
37628b |
* Thu Nov 20 2014 jchaloup <jchaloup@redhat.com> - 0.1.0-7.git071d778
|
|
|
37628b |
- Removing deps on Godeps and adding deps on golang-github packages
|
|
|
37628b |
- Removing wait-online service and changing Type of flannel.service from simple to notify
|
|
|
37628b |
- Adding README and other doc files
|
|
|
37628b |
- Adding spec file header with commit, import_path, ...
|
|
|
37628b |
- Adding devel subpackage
|
|
|
37628b |
- spec polished based on Lokesh' notes (3 lines below)
|
|
|
37628b |
- modify summary in specfile as in bug description (capitalize if needed)
|
|
|
37628b |
- might need to enforce NVR for coreos/go-systemd in deps
|
|
|
37628b |
- pkgconfig(systemd) is preferable to systemd in BR (I think)
|
|
|
37628b |
resolves: #1165688
|
|
|
37628b |
|
|
|
37628b |
* Fri Nov 07 2014 - Neil Horman <nhoramn@tuxdriver.com>
|
|
|
37628b |
- Updating to latest upstream
|
|
|
37628b |
|
|
|
37628b |
* Fri Nov 07 2014 - Neil Horman <nhoramn@tuxdriver.com>
|
|
|
37628b |
- Added wait-online service to sync with docker
|
|
|
37628b |
|
|
|
37628b |
* Thu Nov 06 2014 - Neil Horman <nhoramn@tuxdriver.com>
|
|
|
37628b |
- Fixed flanneld.service file
|
|
|
37628b |
- Added linvilles slice type patch
|
|
|
37628b |
|
|
|
37628b |
* Tue Nov 04 2014 - Neil Horman <nhorman@tuxdriver.com> - 0.1.0-20141104gitdc530ce
|
|
|
37628b |
- Initial Build
|
|
|
37628b |
|