automatic version update by autodist [release 19.03.14-1mamba;Wed Dec 02 2020]
This commit is contained in:
parent
f8f431a8c6
commit
ba499f202a
73
docker.spec
73
docker.spec
@ -1,12 +1,10 @@
|
||||
%define groupid 65440
|
||||
%define userid 65440
|
||||
%define runc_tag v1.0.0-rc5
|
||||
%define containerd_tag v1.0.3
|
||||
%define libnetwork_tag master
|
||||
%define tini_tag v0.13.0
|
||||
%define libnetwork_tag master@3eb39382bfa6a3c42f83674ab080ae13b0e34e5d
|
||||
%define tini_tag v0.18.0@fec3683b971d9c3ef73f284f176672c44b448662
|
||||
|
||||
Name: docker
|
||||
Version: 18.05.0
|
||||
Version: 19.03.14
|
||||
Release: 1mamba
|
||||
Summary: An open-source application container engine
|
||||
Group: System/Servers
|
||||
@ -14,23 +12,24 @@ Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: http://www.docker.com/
|
||||
Source: https://github.com/docker/docker-ce.git/v%{version}-ce/docker-ce-%{version}.tar.bz2
|
||||
Source1: https://github.com/opencontainers/runc.git/%{runc_tag}/runc-%{version}.tar.bz2
|
||||
Source2: https://github.com/containerd/containerd.git/%{containerd_tag}/containerd-%{version}.tar.bz2
|
||||
Source: https://github.com/docker/docker-ce.git/v%{version}/docker-ce-%{version}.tar.bz2
|
||||
#Source1: https://github.com/opencontainers/runc.git/%{runc_tag}/runc-%{version}.tar.bz2
|
||||
#Source2: https://github.com/containerd/containerd.git/%{containerd_tag}/containerd-%{version}.tar.bz2
|
||||
Source3: https://github.com/docker/libnetwork.git/%{libnetwork_tag}/libnetwork-%{version}.tar.bz2
|
||||
Source4: https://github.com/krallin/tini.git/%{tini_tag}/tini-%{version}.tar.bz2
|
||||
Source5: https://github.com/spf13/cobra.git/master/cobra-%{version}.tar.bz2
|
||||
Patch0: docker-1.9.1-build-missing-flags.patch
|
||||
License: Apache License 2.0
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: ldconfig
|
||||
BuildRequires: libdevmapper-devel
|
||||
BuildRequires: libltdl-devel
|
||||
BuildRequires: libseccomp-devel
|
||||
BuildRequires: libsystemd-devel
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRequires: libgo-devel >= 7.3.0-1mamba
|
||||
BuildRequires: go-md2man
|
||||
BuildRequires: go
|
||||
BuildRequires: gcc-go
|
||||
%systemd_requires
|
||||
Requires: containerd
|
||||
Requires: runc
|
||||
@ -42,12 +41,13 @@ An open-source application container engine.
|
||||
%debug_package
|
||||
|
||||
%prep
|
||||
%setup -q -n docker-ce-%{version} -a1 -a2 -a3 -a4
|
||||
%setup -q -n docker-ce-%{version} -a3 -a4 -a5
|
||||
#%patch0 -p1
|
||||
mv containerd-%{version} containerd
|
||||
mv runc-%{version} runc
|
||||
mv libnetwork-%{version} libnetwork
|
||||
mv tini-%{version} tini
|
||||
mv cobra-%{version} cobra
|
||||
|
||||
sed -i 's,/var/run,/run,' components/engine/contrib/init/systemd/docker.socket
|
||||
|
||||
%build
|
||||
# create a fake go path directory and pushd into it
|
||||
@ -77,7 +77,7 @@ _fake_gopath_popd
|
||||
### daemon
|
||||
_fake_gopath_pushd components/engine github.com/docker/docker
|
||||
DOCKER_GITCOMMIT=v%{version} \
|
||||
DOCKER_BUILDTAGS='seccomp journald' \
|
||||
DOCKER_BUILDTAGS='seccomp journald apparmor' \
|
||||
VERSION=%{version}-ce \
|
||||
hack/make.sh dynbinary
|
||||
_fake_gopath_popd
|
||||
@ -87,17 +87,8 @@ mkdir -p src/github.com/spf13
|
||||
ln -rsfT cobra src/github.com/spf13/cobra
|
||||
# use docker-ce cli version because they mess up with man dir
|
||||
_fake_gopath_pushd components/cli github.com/docker/cli
|
||||
make manpages 2>/dev/null
|
||||
_fake_gopath_popd
|
||||
|
||||
### runc
|
||||
_fake_gopath_pushd runc github.com/opencontainers/runc
|
||||
make BUILDTAGS='seccomp'
|
||||
_fake_gopath_popd
|
||||
|
||||
### containerd
|
||||
_fake_gopath_pushd containerd github.com/containerd/containerd
|
||||
make
|
||||
make manpages
|
||||
#2>/dev/null
|
||||
_fake_gopath_popd
|
||||
|
||||
### docker proxy
|
||||
@ -117,18 +108,10 @@ _fake_gopath_popd
|
||||
|
||||
srcdir=`pwd`
|
||||
|
||||
### runc
|
||||
install -Dm755 runc/runc %{buildroot}%{_bindir}/docker-runc
|
||||
### containerd
|
||||
install -Dm755 containerd/bin/containerd %{buildroot}%{_bindir}/docker-containerd
|
||||
install -Dm755 containerd/bin/containerd-shim \
|
||||
%{buildroot}%{_bindir}/docker-containerd-shim
|
||||
install -Dm755 containerd/bin/ctr %{buildroot}%{_bindir}/docker-containerd-ctr
|
||||
|
||||
### engine
|
||||
cd $srcdir/components/engine
|
||||
# binary
|
||||
install -Dm755 {bundles/latest/dynbinary-daemon,%{buildroot}%{_bindir}}/dockerd
|
||||
install -Dm755 {bundles/dynbinary-daemon,%{buildroot}%{_bindir}}/dockerd
|
||||
# systemd
|
||||
install -Dm644 'contrib/init/systemd/docker.service' \
|
||||
%{buildroot}%{_unitdir}/docker.service
|
||||
@ -158,11 +141,11 @@ install -Dm644 'contrib/completion/fish/docker.fish' \
|
||||
install -dm755 %{buildroot}%{_mandir}
|
||||
cp -r man/man* %{buildroot}%{_mandir}/
|
||||
|
||||
## symlink containerd/run (nice integration...)
|
||||
#ln -s containerd %{buildroot}%{_bindir}/docker-containerd
|
||||
#ln -s containerd-shim %{buildroot}%{_bindir}/docker-containerd-shim
|
||||
#ln -s ctr %{buildroot}%{_bindir}/docker-containerd-ctr
|
||||
#ln -s runc %{buildroot}%{_bindir}/docker-runc
|
||||
# symlink containerd/run
|
||||
ln -s containerd %{buildroot}%{_bindir}/docker-containerd
|
||||
ln -s containerd-shim %{buildroot}%{_bindir}/docker-containerd-shim
|
||||
ln -s ctr %{buildroot}%{_bindir}/docker-containerd-ctr
|
||||
ln -s runc %{buildroot}%{_bindir}/docker-runc
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
@ -210,6 +193,18 @@ fi
|
||||
%doc components/engine/AUTHORS components/engine/LICENSE
|
||||
|
||||
%changelog
|
||||
* Wed Dec 02 2020 Automatic Build System <autodist@mambasoft.it> 19.03.14-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Fri Sep 18 2020 Automatic Build System <autodist@mambasoft.it> 19.03.13-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Tue Sep 01 2020 Automatic Build System <autodist@mambasoft.it> 19.03.12-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Tue May 12 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 19.03.8-1mamba
|
||||
- update to 19.03.8
|
||||
|
||||
* Sun Jul 08 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 18.05.0-1mamba
|
||||
- update to 18.05.0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user