|
|
b9779a2 |
# If any of the following macros should be set otherwise,
|
|
|
b9779a2 |
# you can wrap any of them with the following conditions:
|
|
|
b9779a2 |
# - %%if 0%%{centos} == 7
|
|
|
b9779a2 |
# - %%if 0%%{?rhel} == 7
|
|
|
b9779a2 |
# - %%if 0%%{?fedora} == 23
|
|
|
b9779a2 |
# Or just test for particular distribution:
|
|
|
b9779a2 |
# - %%if 0%%{centos}
|
|
|
b9779a2 |
# - %%if 0%%{?rhel}
|
|
|
b9779a2 |
# - %%if 0%%{?fedora}
|
|
|
b9779a2 |
#
|
|
|
b9779a2 |
# Be aware, on centos, both %%rhel and %%centos are set. If you want to test
|
|
|
b9779a2 |
# rhel specific macros, you can use %%if 0%%{?rhel} && 0%%{?centos} == 0 condition.
|
|
|
b9779a2 |
# (Don't forget to replace double percentage symbol with single one in order to apply a condition)
|
|
|
b9779a2 |
|
|
|
b9779a2 |
# Generate devel rpm
|
|
|
2510635 |
%global with_devel 1
|
|
|
b9779a2 |
# Build project from bundled dependencies
|
|
|
2510635 |
%global with_bundled 0
|
|
|
b9779a2 |
# Build with debug info rpm
|
|
|
2510635 |
%global with_debug 1
|
|
|
b9779a2 |
# Run tests in check section
|
|
|
2510635 |
%global with_check 1
|
|
|
b9779a2 |
# Generate unit-test rpm
|
|
|
9a9894e |
%global with_unit_test 1
|
|
|
2510635 |
|
|
|
2510635 |
%if 0%{?with_debug}
|
|
|
c4a8161 |
%global _dwz_low_mem_die_limit 0
|
|
|
2510635 |
%else
|
|
|
2510635 |
%global debug_package %{nil}
|
|
|
2510635 |
%endif
|
|
|
9a9894e |
|
|
|
9418ac2 |
%global provider github
|
|
|
9418ac2 |
%global provider_tld com
|
|
|
9418ac2 |
%global project coreos
|
|
|
9418ac2 |
%global repo flannel
|
|
|
9a9894e |
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
|
|
|
9a9894e |
%global import_path %{provider_prefix}
|
|
|
21fbea5 |
%global commit 317b7d199e3fe937f04ecb39beed025e47316430
|
|
|
9418ac2 |
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
9418ac2 |
|
|
|
c2deecc |
%global devel_main flannel-devel
|
|
|
72f7104 |
%global k8s_commit 44368db9916cc345ebef8b6fbde3cdf0dc9d79dc
|
|
|
c2deecc |
|
|
|
9418ac2 |
Name: flannel
|
|
|
21fbea5 |
Version: 0.9.0
|
|
|
6c56415 |
Release: 6%{?dist}
|
|
|
9418ac2 |
Summary: Etcd address management agent for overlay networks
|
|
|
9418ac2 |
License: ASL 2.0
|
|
|
9a9894e |
URL: https://%{provider_prefix}
|
|
|
9a9894e |
Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
|
|
|
547f12d |
#Source0: https://%{import_path}/archive/v%{version}.tar.gz
|
|
Eric Paris |
8d0e6c2 |
Source1: flanneld.sysconf
|
|
Eric Paris |
8d0e6c2 |
Source2: flanneld.service
|
|
Eric Paris |
3b954b3 |
Source3: flannel-docker.conf
|
|
|
ae4dc44 |
Source4: flannel-tmpfiles.conf
|
|
|
c61da59 |
|
|
|
c4a8637 |
Patch1: change-coreos.com-network-to-atomic.io-network-in-he.patch
|
|
|
c61da59 |
|
|
|
1146f84 |
ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 ppc64le s390x
|
|
|
9418ac2 |
|
|
|
9418ac2 |
BuildRequires: golang >= 1.2.7
|
|
|
8e33f9e |
%if ! 0%{?with_bundled}
|
|
|
72f7104 |
BuildRequires: golang(github.com/aws/aws-sdk-go/aws)
|
|
|
72f7104 |
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/awserr)
|
|
|
72f7104 |
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/ec2metadata)
|
|
|
72f7104 |
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/session)
|
|
|
72f7104 |
BuildRequires: golang(github.com/aws/aws-sdk-go/service/ec2)
|
|
|
2fce068 |
BuildRequires: golang(github.com/coreos/etcd/client)
|
|
|
2fce068 |
BuildRequires: golang(github.com/coreos/etcd/pkg/transport)
|
|
|
2fce068 |
BuildRequires: golang(github.com/coreos/go-iptables/iptables)
|
|
|
e34804b |
BuildRequires: golang(github.com/coreos/go-systemd/activation)
|
|
|
b9779a2 |
BuildRequires: golang(github.com/coreos/go-systemd/daemon)
|
|
|
2fce068 |
BuildRequires: golang(github.com/coreos/pkg/flagutil)
|
|
|
9418ac2 |
BuildRequires: golang(github.com/golang/glog)
|
|
|
de2654b |
BuildRequires: golang(github.com/gorilla/mux)
|
|
|
b9779a2 |
BuildRequires: golang(github.com/jonboulle/clockwork)
|
|
|
9418ac2 |
BuildRequires: golang(github.com/vishvananda/netlink)
|
|
|
de2654b |
BuildRequires: golang(github.com/vishvananda/netlink/nl)
|
|
|
de2654b |
BuildRequires: golang(golang.org/x/net/context)
|
|
|
b9779a2 |
BuildRequires: golang(golang.org/x/oauth2)
|
|
|
b9779a2 |
BuildRequires: golang(golang.org/x/oauth2/google)
|
|
|
b9779a2 |
BuildRequires: golang(google.golang.org/api/compute/v1)
|
|
|
b9779a2 |
BuildRequires: golang(google.golang.org/api/googleapi)
|
|
|
72f7104 |
#BuildRequires: golang(k8s.io/kubernetes/pkg/api)
|
|
|
72f7104 |
#BuildRequires: golang(k8s.io/kubernetes/pkg/client/cache)
|
|
|
72f7104 |
#BuildRequires: golang(k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset)
|
|
|
72f7104 |
#BuildRequires: golang(k8s.io/kubernetes/pkg/client/restclient)
|
|
|
72f7104 |
#BuildRequires: golang(k8s.io/kubernetes/pkg/controller/framework)
|
|
|
72f7104 |
#BuildRequires: golang(k8s.io/kubernetes/pkg/runtime)
|
|
|
72f7104 |
#BuildRequires: golang(k8s.io/kubernetes/pkg/util/runtime)
|
|
|
72f7104 |
#BuildRequires: golang(k8s.io/kubernetes/pkg/util/wait)
|
|
|
72f7104 |
#BuildRequires: golang(k8s.io/kubernetes/pkg/watch)
|
|
Eric Paris |
b6366f2 |
%endif
|
|
|
b9779a2 |
|
|
|
9418ac2 |
BuildRequires: pkgconfig(systemd)
|
|
|
6fef40a |
Requires: systemd
|
|
|
6fef40a |
Requires(post): systemd
|
|
|
6fef40a |
Requires(preun): systemd
|
|
|
6fef40a |
Requires(postun): systemd
|
|
|
9418ac2 |
|
|
|
9418ac2 |
%description
|
|
|
9418ac2 |
Flannel is an etcd driven address management agent. Most commonly it is used to
|
|
|
9418ac2 |
manage the ip addresses of overlay networks between systems running containers
|
|
|
9418ac2 |
that need to communicate with one another.
|
|
|
9418ac2 |
|
|
|
2510635 |
%if 0%{?with_devel}
|
|
|
9418ac2 |
%package devel
|
|
|
9a9894e |
Summary: %{summary}
|
|
|
9a9894e |
BuildArch: noarch
|
|
|
2fce068 |
|
|
|
9a9894e |
%if 0%{?with_check}
|
|
|
72f7104 |
BuildRequires: golang(github.com/aws/aws-sdk-go/aws)
|
|
|
72f7104 |
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/awserr)
|
|
|
72f7104 |
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/ec2metadata)
|
|
|
72f7104 |
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/session)
|
|
|
72f7104 |
BuildRequires: golang(github.com/aws/aws-sdk-go/service/ec2)
|
|
|
2fce068 |
BuildRequires: golang(github.com/coreos/etcd/client)
|
|
|
2fce068 |
BuildRequires: golang(github.com/coreos/etcd/pkg/transport)
|
|
|
2fce068 |
BuildRequires: golang(github.com/coreos/go-iptables/iptables)
|
|
|
e34804b |
BuildRequires: golang(github.com/coreos/go-systemd/activation)
|
|
|
9a9894e |
BuildRequires: golang(github.com/coreos/go-systemd/daemon)
|
|
|
547f12d |
BuildRequires: golang(github.com/golang/glog)
|
|
|
de2654b |
BuildRequires: golang(github.com/gorilla/mux)
|
|
|
b9779a2 |
BuildRequires: golang(github.com/jonboulle/clockwork)
|
|
|
547f12d |
BuildRequires: golang(github.com/vishvananda/netlink)
|
|
|
547f12d |
BuildRequires: golang(github.com/vishvananda/netlink/nl)
|
|
|
547f12d |
BuildRequires: golang(golang.org/x/net/context)
|
|
|
b9779a2 |
BuildRequires: golang(golang.org/x/oauth2)
|
|
|
b9779a2 |
BuildRequires: golang(golang.org/x/oauth2/google)
|
|
|
b9779a2 |
BuildRequires: golang(google.golang.org/api/compute/v1)
|
|
|
b9779a2 |
BuildRequires: golang(google.golang.org/api/googleapi)
|
|
|
72f7104 |
#BuildRequires: golang(k8s.io/kubernetes/pkg/api)
|
|
|
72f7104 |
#BuildRequires: golang(k8s.io/kubernetes/pkg/client/cache)
|
|
|
72f7104 |
#BuildRequires: golang(k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset)
|
|
|
72f7104 |
#BuildRequires: golang(k8s.io/kubernetes/pkg/client/restclient)
|
|
|
72f7104 |
#BuildRequires: golang(k8s.io/kubernetes/pkg/controller/framework)
|
|
|
72f7104 |
#BuildRequires: golang(k8s.io/kubernetes/pkg/runtime)
|
|
|
72f7104 |
#BuildRequires: golang(k8s.io/kubernetes/pkg/util/runtime)
|
|
|
72f7104 |
#BuildRequires: golang(k8s.io/kubernetes/pkg/util/wait)
|
|
|
72f7104 |
#BuildRequires: golang(k8s.io/kubernetes/pkg/watch)
|
|
|
9a9894e |
%endif
|
|
|
2fce068 |
|
|
|
9a9894e |
Requires: golang(github.com/aws/aws-sdk-go/aws)
|
|
|
9a9894e |
Requires: golang(github.com/aws/aws-sdk-go/aws/awserr)
|
|
|
9a9894e |
Requires: golang(github.com/aws/aws-sdk-go/aws/ec2metadata)
|
|
|
72f7104 |
Requires: golang(github.com/aws/aws-sdk-go/aws/session)
|
|
|
9a9894e |
Requires: golang(github.com/aws/aws-sdk-go/service/ec2)
|
|
|
2fce068 |
Requires: golang(github.com/coreos/etcd/client)
|
|
|
2fce068 |
Requires: golang(github.com/coreos/etcd/pkg/transport)
|
|
|
2fce068 |
Requires: golang(github.com/coreos/go-iptables/iptables)
|
|
|
e34804b |
Requires: golang(github.com/coreos/go-systemd/activation)
|
|
|
9a9894e |
Requires: golang(github.com/coreos/go-systemd/daemon)
|
|
|
547f12d |
Requires: golang(github.com/golang/glog)
|
|
|
0a2ddff |
Requires: golang(github.com/gorilla/mux)
|
|
|
b9779a2 |
Requires: golang(github.com/jonboulle/clockwork)
|
|
|
547f12d |
Requires: golang(github.com/vishvananda/netlink)
|
|
|
547f12d |
Requires: golang(github.com/vishvananda/netlink/nl)
|
|
|
547f12d |
Requires: golang(golang.org/x/net/context)
|
|
|
b9779a2 |
Requires: golang(golang.org/x/oauth2)
|
|
|
b9779a2 |
Requires: golang(golang.org/x/oauth2/google)
|
|
|
b9779a2 |
Requires: golang(google.golang.org/api/compute/v1)
|
|
|
b9779a2 |
Requires: golang(google.golang.org/api/googleapi)
|
|
|
72f7104 |
#Requires: golang(k8s.io/kubernetes/pkg/api)
|
|
|
72f7104 |
#Requires: golang(k8s.io/kubernetes/pkg/client/cache)
|
|
|
72f7104 |
#Requires: golang(k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset)
|
|
|
72f7104 |
#Requires: golang(k8s.io/kubernetes/pkg/client/restclient)
|
|
|
72f7104 |
#Requires: golang(k8s.io/kubernetes/pkg/controller/framework)
|
|
|
72f7104 |
#Requires: golang(k8s.io/kubernetes/pkg/runtime)
|
|
|
72f7104 |
#Requires: golang(k8s.io/kubernetes/pkg/util/runtime)
|
|
|
72f7104 |
#Requires: golang(k8s.io/kubernetes/pkg/util/wait)
|
|
|
72f7104 |
#Requires: golang(k8s.io/kubernetes/pkg/watch)
|
|
|
2fce068 |
|
|
|
547f12d |
Provides: golang(%{import_path}/backend) = %{version}-%{release}
|
|
|
547f12d |
Provides: golang(%{import_path}/backend/alloc) = %{version}-%{release}
|
|
|
547f12d |
Provides: golang(%{import_path}/backend/awsvpc) = %{version}-%{release}
|
|
|
c2deecc |
Provides: golang(%{import_path}/backend/gce) = %{version}-%{release}
|
|
|
547f12d |
Provides: golang(%{import_path}/backend/hostgw) = %{version}-%{release}
|
|
|
547f12d |
Provides: golang(%{import_path}/backend/udp) = %{version}-%{release}
|
|
|
547f12d |
Provides: golang(%{import_path}/backend/vxlan) = %{version}-%{release}
|
|
|
547f12d |
Provides: golang(%{import_path}/network) = %{version}-%{release}
|
|
|
547f12d |
Provides: golang(%{import_path}/pkg/ip) = %{version}-%{release}
|
|
|
de2654b |
Provides: golang(%{import_path}/remote) = %{version}-%{release}
|
|
|
547f12d |
Provides: golang(%{import_path}/subnet) = %{version}-%{release}
|
|
|
72f7104 |
Provides: golang(%{import_path}/subnet/kube) = %{version}-%{release}
|
|
|
b9779a2 |
Provides: golang(%{import_path}/version) = %{version}-%{release}
|
|
|
72f7104 |
Provides: bundled(golang(k8s.io/kubernetes/pkg/api)) = %{k8s_commit}
|
|
|
72f7104 |
Provides: bundled(golang(k8s.io/kubernetes/pkg/client/cache)) = %{k8s_commit}
|
|
|
72f7104 |
Provides: bundled(golang(k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset)) = %{k8s_commit}
|
|
|
72f7104 |
Provides: bundled(golang(k8s.io/kubernetes/pkg/client/restclient)) = %{k8s_commit}
|
|
|
72f7104 |
Provides: bundled(golang(k8s.io/kubernetes/pkg/controller/framework)) = %{k8s_commit}
|
|
|
72f7104 |
Provides: bundled(golang(k8s.io/kubernetes/pkg/runtime)) = %{k8s_commit}
|
|
|
72f7104 |
Provides: bundled(golang(k8s.io/kubernetes/pkg/util/runtime)) = %{k8s_commit}
|
|
|
72f7104 |
Provides: bundled(golang(k8s.io/kubernetes/pkg/util/wait)) = %{k8s_commit}
|
|
|
72f7104 |
Provides: bundled(golang(k8s.io/kubernetes/pkg/watch)) = %{k8s_commit}
|
|
|
9418ac2 |
|
|
|
9418ac2 |
%description devel
|
|
|
9418ac2 |
Flannel is an etcd driven address management agent. Most commonly it is used to
|
|
|
9418ac2 |
manage the ip addresses of overlay networks between systems running containers
|
|
|
9418ac2 |
that need to communicate with one another.
|
|
|
9418ac2 |
|
|
|
9418ac2 |
This package contains library source intended for
|
|
|
9418ac2 |
building other packages which use %{project}/%{repo}.
|
|
Eric Paris |
b6366f2 |
%endif
|
|
|
9418ac2 |
|
|
|
9a9894e |
%if 0%{?with_unit_test} && 0%{?with_devel}
|
|
|
9a9894e |
%package unit-test-devel
|
|
|
9a9894e |
Summary: Unit tests for %{name} package
|
|
|
9a9894e |
%if 0%{?with_check}
|
|
|
9a9894e |
#Here comes all BuildRequires: PACKAGE the unit tests
|
|
|
9a9894e |
#in %%check section need for running
|
|
|
9a9894e |
%endif
|
|
|
9a9894e |
|
|
|
9a9894e |
# test subpackage tests code from devel subpackage
|
|
|
9a9894e |
Requires: %{name}-devel = %{version}-%{release}
|
|
|
9a9894e |
|
|
|
9a9894e |
%description unit-test-devel
|
|
|
9a9894e |
%{summary}
|
|
|
9a9894e |
|
|
|
9a9894e |
This package contains unit tests for project
|
|
|
9a9894e |
providing packages with %{import_path} prefix.
|
|
|
9a9894e |
%endif
|
|
|
9a9894e |
|
|
|
9418ac2 |
%prep
|
|
|
547f12d |
%setup -q -n %{repo}-%{commit}
|
|
|
c4a8637 |
%patch1 -p1
|
|
Eric Paris |
effe589 |
|
|
Eric Paris |
effe589 |
find . -name "*.go" \
|
|
Eric Paris |
effe589 |
-print |\
|
|
Eric Paris |
effe589 |
xargs sed -i 's/github.com\/coreos\/flannel\/Godeps\/_workspace\/src\///g'
|
|
|
9418ac2 |
|
|
|
9418ac2 |
%build
|
|
|
9a9894e |
mkdir -p src/github.com/coreos
|
|
|
9a9894e |
ln -s ../../../ src/github.com/coreos/flannel
|
|
|
9418ac2 |
|
|
|
9a9894e |
%if ! 0%{?with_bundled}
|
|
|
9a9894e |
export GOPATH=$(pwd):%{gopath}
|
|
|
2510635 |
%else
|
|
|
b9779a2 |
# take aws/aws-sdk-go from bundled deps
|
|
|
b9779a2 |
mv vendor/github.com/aws src/github.com/.
|
|
|
b9779a2 |
rm -rf vendor
|
|
|
9a9894e |
export GOPATH=$(pwd):$(pwd)/Godeps/_workspace:%{gopath}
|
|
|
2510635 |
%endif
|
|
|
2510635 |
|
|
|
9a9894e |
%if ! 0%{?gobuild:1}
|
|
|
9a9894e |
%define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**};
|
|
Eric Paris |
b6366f2 |
%endif
|
|
|
9418ac2 |
|
|
|
46a981a |
export LDFLAGS="-X github.com/coreos/flannel/version.Version=%{version}"
|
|
|
46a981a |
|
|
|
9a9894e |
%gobuild -o bin/flanneld %{import_path}
|
|
|
9a9894e |
|
|
|
9418ac2 |
%install
|
|
|
9418ac2 |
# package with binary
|
|
|
9418ac2 |
install -D -p -m 755 bin/flanneld %{buildroot}%{_bindir}/flanneld
|
|
Eric Paris |
8d0e6c2 |
install -D -p -m 644 %{SOURCE1} %{buildroot}/etc/sysconfig/flanneld
|
|
Eric Paris |
8d0e6c2 |
install -D -p -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/flanneld.service
|
|
Eric Paris |
3b954b3 |
install -D -p -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/docker.service.d/flannel.conf
|
|
Eric Paris |
effe589 |
install -D -p -m 755 dist/mk-docker-opts.sh %{buildroot}%{_libexecdir}/flannel/mk-docker-opts.sh
|
|
|
ae4dc44 |
install -D -p -m 0755 %{SOURCE4} %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
|
|
ae4dc44 |
|
|
|
ae4dc44 |
mkdir -p %{buildroot}/run
|
|
|
ae4dc44 |
install -d -m 0755 %{buildroot}/run/%{name}/
|
|
|
2510635 |
|
|
|
2510635 |
%if 0%{?with_devel}
|
|
|
9418ac2 |
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
|
|
|
9a9894e |
echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
|
|
|
9a9894e |
# find all *.go but no *_test.go files and generate devel.file-list
|
|
|
9a9894e |
for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
|
|
|
9a9894e |
echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
|
|
|
9a9894e |
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
|
|
|
9a9894e |
cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
|
|
|
9a9894e |
echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
|
|
|
9a9894e |
done
|
|
|
9a9894e |
%endif
|
|
|
9a9894e |
|
|
|
9a9894e |
# testing files for this project
|
|
|
9a9894e |
%if 0%{?with_unit_test} && 0%{?with_devel}
|
|
|
9a9894e |
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
|
|
|
9a9894e |
# find all *_test.go files and generate unit-test.file-list
|
|
|
9a9894e |
for file in $(find . -iname "*_test.go"); do
|
|
|
9a9894e |
echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
|
|
|
9a9894e |
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
|
|
|
9a9894e |
cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
|
|
|
9a9894e |
echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test-devel.file-list
|
|
|
9a9894e |
done
|
|
|
9a9894e |
%endif
|
|
|
9a9894e |
|
|
|
9a9894e |
%if 0%{?with_devel}
|
|
|
9a9894e |
sort -u -o devel.file-list devel.file-list
|
|
Eric Paris |
b6366f2 |
%endif
|
|
|
9418ac2 |
|
|
|
2510635 |
%check
|
|
|
9a9894e |
%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
|
|
|
9a9894e |
%if ! 0%{?with_bundled}
|
|
|
9a9894e |
export GOPATH=%{buildroot}/%{gopath}:%{gopath}
|
|
|
9a9894e |
%else
|
|
|
9a9894e |
export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
|
|
|
9a9894e |
%endif
|
|
|
9a9894e |
|
|
|
9a9894e |
%if ! 0%{?gotest:1}
|
|
|
9a9894e |
%global gotest go test
|
|
|
9a9894e |
%endif
|
|
|
9a9894e |
|
|
|
9a9894e |
%gotest %{import_path}/pkg/ip
|
|
|
9a9894e |
#%%gotest %%{import_path}/remote
|
|
|
9a9894e |
%gotest %{import_path}/subnet
|
|
|
2510635 |
%endif
|
|
|
2510635 |
|
|
|
9418ac2 |
%post
|
|
|
9418ac2 |
%systemd_post flanneld.service
|
|
|
9418ac2 |
|
|
|
9418ac2 |
%preun
|
|
|
9418ac2 |
# clean tempdir and workdir on removal or upgrade
|
|
|
9418ac2 |
%systemd_preun flanneld.service
|
|
|
9418ac2 |
|
|
|
9418ac2 |
%postun
|
|
|
9418ac2 |
%systemd_postun_with_restart flanneld.service
|
|
|
9418ac2 |
|
|
|
9a9894e |
#define license tag if not already defined
|
|
|
9a9894e |
%{!?_licensedir:%global license %doc}
|
|
|
9a9894e |
|
|
|
9418ac2 |
%files
|
|
|
9a9894e |
%license LICENSE
|
|
|
9a9894e |
%doc CONTRIBUTING.md MAINTAINERS README.md DCO NOTICE
|
|
|
9418ac2 |
%{_bindir}/flanneld
|
|
|
9418ac2 |
%{_unitdir}/flanneld.service
|
|
Eric Paris |
8d0e6c2 |
%{_unitdir}/docker.service.d/flannel.conf
|
|
Eric Paris |
3b954b3 |
%{_libexecdir}/flannel/mk-docker-opts.sh
|
|
|
d9e5731 |
%dir %{_libexecdir}/flannel
|
|
|
9418ac2 |
%config(noreplace) %{_sysconfdir}/sysconfig/flanneld
|
|
|
ae4dc44 |
%dir /run/%{name}/
|
|
|
ae4dc44 |
%{_tmpfilesdir}/%{name}.conf
|
|
|
9418ac2 |
|
|
|
2510635 |
%if 0%{?with_devel}
|
|
|
9a9894e |
%files devel -f devel.file-list
|
|
|
9a9894e |
%license LICENSE
|
|
|
9a9894e |
%doc CONTRIBUTING.md MAINTAINERS README.md DCO NOTICE
|
|
|
9418ac2 |
%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
|
|
|
9a9894e |
%endif
|
|
|
9a9894e |
|
|
|
9a9894e |
%if 0%{?with_unit_test} && 0%{?with_devel}
|
|
|
9a9894e |
%files unit-test-devel -f unit-test-devel.file-list
|
|
|
9a9894e |
%license LICENSE
|
|
Eric Paris |
b6366f2 |
%endif
|
|
|
9418ac2 |
|
|
|
9418ac2 |
%changelog
|
|
|
6c56415 |
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-6
|
|
|
6c56415 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
6c56415 |
|
|
|
3565185 |
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-5
|
|
|
3565185 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
3565185 |
|
|
|
e539ad5 |
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 0.9.0-4
|
|
|
e539ad5 |
- Rebuild with fixed binutils
|
|
|
e539ad5 |
|
|
|
5714c5d |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-3
|
|
|
5714c5d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
5714c5d |
|
|
|
fe58ce5 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-2
|
|
|
fe58ce5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
fe58ce5 |
|
|
|
21fbea5 |
* Fri Nov 17 2017 Jan Chaloupka <jchaloup@redhat.com> - 0.9.0-1
|
|
|
21fbea5 |
- Update to 9.0.0
|
|
|
21fbea5 |
resolves: #1443517
|
|
|
21fbea5 |
|
|
|
64437a7 |
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-5
|
|
|
64437a7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
64437a7 |
|
|
|
2cb1901 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-4
|
|
|
2cb1901 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
2cb1901 |
|
|
|
0edf13b |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-3
|
|
|
0edf13b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
0edf13b |
|
|
|
46a981a |
* Tue Jan 24 2017 Jan Chaloupka <jchaloup@redhat.com> - 0.7.0-2
|
|
|
46a981a |
- Fix flanneld --version
|
|
|
46a981a |
related: #1412005
|
|
|
46a981a |
|
|
|
72f7104 |
* Wed Jan 11 2017 Jan Chaloupka <jchaloup@redhat.com> - 0.7.0-1
|
|
|
72f7104 |
- Bump to 0.7.0
|
|
|
72f7104 |
resolves: #1412005
|
|
|
72f7104 |
|
|
|
1146f84 |
* Tue Jan 03 2017 Jan Chaloupka <jchaloup@redhat.com> - 0.6.2-2
|
|
|
1146f84 |
- Patch pkg/ip to build and run on s390x
|
|
|
1146f84 |
resolves: #1348906
|
|
|
1146f84 |
|
|
|
b9779a2 |
* Tue Dec 13 2016 Jan Chaloupka <jchaloup@redhat.com> - 0.6.2-1
|
|
|
b9779a2 |
- Update to 0.6.2
|
|
|
b9779a2 |
resolves: #1396472
|
|
|
b9779a2 |
|
|
|
7eb40fe |
* Thu Jul 21 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.5-8
|
|
|
7eb40fe |
- https://fedoraproject.org/wiki/Changes/golang1.7
|
|
|
7eb40fe |
|
|
|
d9e5731 |
* Wed Jun 29 2016 jchaloup <jchaloup@redhat.com> - 0.5.5-7
|
|
|
d9e5731 |
- Own /usr/libexec/flannel directory
|
|
|
d9e5731 |
- make envs in service and config file canonical
|
|
|
d9e5731 |
|
|
|
d71ad7e |
* Fri Jun 03 2016 jchaloup <jchaloup@redhat.com> - 0.5.5-6
|
|
|
d71ad7e |
- Patch the flannel to use newer version of aws-sdk-go and etcd
|
|
|
d71ad7e |
resolves: #1342146
|
|
|
d71ad7e |
|
|
|
ff2a8b7 |
* Sat Apr 9 2016 Peter Robinson <pbrobinson@fedoraproject.org> 0.5.5-5
|
|
|
ff2a8b7 |
- Add support for aarch64
|
|
|
ff2a8b7 |
|
|
|
9df3f71 |
* Thu Mar 10 2016 jchaloup <jchaloup@redhat.com> - 0.5.5-4
|
|
|
9df3f71 |
- Add support for ppc64le
|
|
|
9df3f71 |
resolves: #1316645
|
|
|
9df3f71 |
|
|
|
8db402c |
* Mon Feb 22 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.5-3
|
|
|
8db402c |
- https://fedoraproject.org/wiki/Changes/golang1.6
|
|
|
8db402c |
|
|
|
88e7f82 |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.5-2
|
|
|
88e7f82 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
88e7f82 |
|
|
|
b729ceb |
* Fri Nov 13 2015 jchaloup <jchaloup@redhat.com> - 0.5.5-1
|
|
|
b729ceb |
- Update to v0.5.5
|
|
|
b729ceb |
resolves: #1281771
|
|
|
b729ceb |
|
|
|
e99d939 |
* Fri Oct 30 2015 jchaloup <jchaloup@redhat.com> - 0.5.4-3
|
|
|
e99d939 |
- Add After=network-online.target and Wants=network-online.target
|
|
|
e99d939 |
to actively wait for network to get on
|
|
|
e99d939 |
|
|
|
bfb9656 |
* Fri Oct 30 2015 jchaloup <jchaloup@redhat.com> - 0.5.4-2
|
|
|
bfb9656 |
- Add Restart=on-failure to flanned.service file
|
|
|
bfb9656 |
|
|
|
9a9894e |
* Tue Oct 20 2015 jchaloup <jchaloup@redhat.com> - 0.5.4-1
|
|
|
9a9894e |
- Update to v0.5.4
|
|
|
9a9894e |
resolves: #1273211
|
|
|
9a9894e |
|
|
|
6eedd9d |
* Thu Oct 08 2015 jchaloup <jchaloup@redhat.com> - 0.5.3-6
|
|
|
6eedd9d |
- Make flannel start after the network is ready
|
|
|
6eedd9d |
|
|
|
ae4dc44 |
* Wed Sep 23 2015 jchaloup <jchaloup@redhat.com> - 0.5.3-5
|
|
|
ae4dc44 |
- Flannel now owns /run/flannel directory
|
|
|
ae4dc44 |
|
|
|
ae4dc44 |
* Wed Sep 23 2015 jchaloup <jchaloup@redhat.com> - 0.5.3-4
|
|
|
ae4dc44 |
- Send systemd notification when -listen is used
|
|
|
ae4dc44 |
- Create /run/flannel directory for mk-docker-opts.sh
|
|
|
ae4dc44 |
|
|
|
c4a8637 |
* Thu Sep 17 2015 jchaloup <jchaloup@redhat.com> - 0.5.3-3
|
|
|
c4a8637 |
- Change coreos.com/network to atomic.io/network in help and docs
|
|
|
c4a8637 |
|
|
|
c61da59 |
* Thu Sep 10 2015 jchaloup <jchaloup@redhat.com> - 0.5.3-2
|
|
|
c61da59 |
- Change 4001 port in flannel --help and README.md as well
|
|
|
c61da59 |
|
|
|
2fce068 |
* Mon Aug 31 2015 jchaloup <jchaloup@redhat.com> - 0.5.3-1
|
|
|
2fce068 |
- Update to 0.5.3
|
|
|
2fce068 |
resolves: #1258876
|
|
|
2fce068 |
|
|
|
2510635 |
* Tue Jul 21 2015 jchaloup <jchaloup@redhat.com> - 0.5.1-3
|
|
|
2510635 |
- Change etcd port from 4001 to 2379
|
|
|
2510635 |
- Polish spec file
|
|
|
2510635 |
|
|
|
e198a27 |
* Fri Jul 10 2015 jchaloup <jchaloup@redhat.com> - 0.5.1-2
|
|
|
e198a27 |
- Change flannel prefix from /coreos.com/network to /atomic.io/network
|
|
|
e198a27 |
|
|
|
e34804b |
* Fri Jul 10 2015 jchaloup <jchaloup@redhat.com> - 0.5.1-1
|
|
|
e34804b |
- Update to 0.5.1
|
|
|
e34804b |
|
|
|
02d1cec |
* Fri Jul 10 2015 jchaloup <jchaloup@redhat.com> - 0.5.0-3
|
|
|
02d1cec |
- Add After=etcd.service to flanneld.service
|
|
|
02d1cec |
|
|
|
0a2ddff |
* Fri Jun 26 2015 jchaloup <jchaloup@redhat.com> - 0.5.0-2
|
|
|
0a2ddff |
- Add missing Requires: golang(github.com/gorilla/mux) to devel subpackage
|
|
|
0a2ddff |
|
|
|
c2deecc |
* Fri Jun 26 2015 jchaloup <jchaloup@redhat.com> - 0.5.0-1
|
|
|
c2deecc |
- Update to 0.5.0
|
|
|
c2deecc |
|
|
|
4d51c50 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-3
|
|
|
4d51c50 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
4d51c50 |
|
|
|
de2654b |
* Fri May 22 2015 jchaloup <jchaloup@redhat.com> - 0.4.1-2
|
|
|
de2654b |
- Bump to upstream 9180d9a37e2ae6d7fceabea51c6416767c6b50f6
|
|
|
de2654b |
related: #1223445
|
|
|
de2654b |
|
|
|
547f12d |
* Wed May 20 2015 jchaloup <jchaloup@redhat.com> - 0.4.1-1
|
|
|
547f12d |
- Bump to upstream 4ab27ddd3e87eb2daf152513c0b1dc22879393a8
|
|
|
547f12d |
resolves: #1223445
|
|
|
547f12d |
|
|
Eric Paris |
2345416 |
* Fri Apr 10 2015 Eric Paris <eparis@redhat.com> - 0.3.1-1
|
|
Eric Paris |
2345416 |
- Bump to version 0.3.1
|
|
Eric Paris |
2345416 |
|
|
Eric Paris |
effe589 |
* Tue Apr 7 2015 Eric Paris <eparis@redhat.com> - 0.3.0-1
|
|
Eric Paris |
effe589 |
- Bump to version 0.3.0
|
|
Eric Paris |
effe589 |
|
|
|
c4a8161 |
* Mon Mar 30 2015 jchaloup <jchaloup@redhat.com> - 0.2.0-7
|
|
|
c4a8161 |
- Add debug info
|
|
|
c4a8161 |
related: #1165688
|
|
|
c4a8161 |
|
|
|
1e702c0 |
* Fri Feb 20 2015 jchaloup <jchaloup@redhat.com> - 0.2.0-6
|
|
|
1e702c0 |
- Update [Build]Requires for go-etcd package
|
|
|
1e702c0 |
|
|
Eric Paris |
3b954b3 |
* Wed Jan 21 2015 Eric Paris <eparis@redhat.com> - 0.2.0-5
|
|
Eric Paris |
3b954b3 |
- Add generator more like upstream wants to use, use ExecStartPost
|
|
Eric Paris |
3b954b3 |
(https://github.com/coreos/flannel/pull/85)
|
|
Eric Paris |
3b954b3 |
|
|
Eric Paris |
8d0e6c2 |
* Tue Jan 20 2015 Eric Paris <eparis@redhat.com> - 0.2.0-4
|
|
Eric Paris |
8d0e6c2 |
- Add generator to turn flannel env vars into docker flags
|
|
Eric Paris |
8d0e6c2 |
|
|
|
31ac48b |
* Tue Jan 20 2015 Peter Lemenkov <lemenkov@gmail.com> - 0.2.0-3
|
|
|
31ac48b |
- Change (Build)Requires accordning to the recent changes
|
|
|
31ac48b |
(http://pkgs.fedoraproject.org/cgit/golang-github-coreos-go-systemd.git/commit/?id=204f61c)
|
|
|
31ac48b |
|
|
|
a4197d8 |
* Fri Jan 16 2015 Peter Lemenkov <lemenkov@gmail.com> - 0.2.0-2
|
|
|
a4197d8 |
- Change flannel service type to notify. See
|
|
|
a4197d8 |
https://github.com/coreos/flannel/blob/v0.2.0/main.go#L213
|
|
|
a4197d8 |
|
|
|
6fef40a |
* Tue Dec 23 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.2.0-1
|
|
|
6fef40a |
- update to upstream v0.2.0
|
|
|
6fef40a |
- append FLANNEL_OPTIONS variable to unitfile command
|
|
|
6fef40a |
- systemd-units merged into systemd for fedora18+
|
|
|
6fef40a |
|
|
John W. Linville |
2652cfe |
* Tue Dec 2 2014 John W. Linville <linville@redhat.com> - 0.1.0-8.gita7b435a
|
|
John W. Linville |
2652cfe |
- Remove patches related to out-of-tree slice backend
|
|
John W. Linville |
2652cfe |
- Update to latest upstream
|
|
John W. Linville |
2652cfe |
|
|
|
9418ac2 |
* Thu Nov 20 2014 jchaloup <jchaloup@redhat.com> - 0.1.0-7.git071d778
|
|
|
9418ac2 |
- Removing deps on Godeps and adding deps on golang-github packages
|
|
|
9418ac2 |
- Removing wait-online service and changing Type of flannel.service from simple to notify
|
|
|
9418ac2 |
- Adding README and other doc files
|
|
|
9418ac2 |
- Adding spec file header with commit, import_path, ...
|
|
|
9418ac2 |
- Adding devel subpackage
|
|
|
9418ac2 |
- spec polished based on Lokesh' notes (3 lines below)
|
|
|
9418ac2 |
- modify summary in specfile as in bug description (capitalize if needed)
|
|
|
9418ac2 |
- might need to enforce NVR for coreos/go-systemd in deps
|
|
|
9418ac2 |
- pkgconfig(systemd) is preferable to systemd in BR (I think)
|
|
|
9418ac2 |
resolves: #1165688
|
|
|
9418ac2 |
|
|
|
9418ac2 |
* Fri Nov 07 2014 - Neil Horman <nhoramn@tuxdriver.com>
|
|
|
9418ac2 |
- Updating to latest upstream
|
|
|
9418ac2 |
|
|
|
9418ac2 |
* Fri Nov 07 2014 - Neil Horman <nhoramn@tuxdriver.com>
|
|
|
9418ac2 |
- Added wait-online service to sync with docker
|
|
|
9418ac2 |
|
|
|
9418ac2 |
* Thu Nov 06 2014 - Neil Horman <nhoramn@tuxdriver.com>
|
|
|
9418ac2 |
- Fixed flanneld.service file
|
|
|
9418ac2 |
- Added linvilles slice type patch
|
|
|
9418ac2 |
|
|
|
9418ac2 |
* Tue Nov 04 2014 - Neil Horman <nhorman@tuxdriver.com> - 0.1.0-20141104gitdc530ce
|
|
|
9418ac2 |
- Initial Build
|
|
|
9418ac2 |
|