-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-ce-cli.spec
More file actions
64 lines (54 loc) · 1.66 KB
/
Copy pathdocker-ce-cli.spec
File metadata and controls
64 lines (54 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Summary: The Docker CLI
Name: docker-ce-cli
Version: 29.6.0
Release: 1
License: Apache v2.0
Group: Applications/System
Source0: https://github.com/docker/cli/archive/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 90ae7119e23156078e69f5b68772ab12
URL: https://www.docker.com/
BuildRequires: golang >= 1.12
BuildRequires: rpmbuild(macros) >= 2.009
Suggests: docker(engine) >= 20.10.1
Suggests: docker-credential-helpers
Suggests: git-core >= 1.7
Obsoletes: bash-completion-docker-ce < 27.1.2
Obsoletes: bash-completion-lxc-docker < 1.1.1
Obsoletes: zsh-completion-docker-ce < 27.1.2
Conflicts: docker-ce < 20.10.1
ExclusiveArch: %go_arches
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _enable_debug_packages 0
%description
The Docker CLI.
%prep
%setup -q -c -T -n %{name}-%{version}/src/github.com/docker/cli
tar xf %{SOURCE0} --strip-components=1
%build
export VERSION=%{version}
export GITCOMMIT="PLD-Linux/%{version}"
export GO111MODULE=off
GOPATH=$(pwd)/../../../.. \
DISABLE_WARN_OUTSIDE_CONTAINER=1 \
%{__make} dynbinary
./build/docker -v
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_libexecdir}/docker/cli-plugins}
# docker-cli
install -p build/docker $RPM_BUILD_ROOT%{_bindir}/docker
# bash and zsh completion
cd contrib/completion
install -d $RPM_BUILD_ROOT%{bash_compdir}
cp -p bash/docker $RPM_BUILD_ROOT%{bash_compdir}
install -d $RPM_BUILD_ROOT%{zsh_compdir}
cp -p zsh/_docker $RPM_BUILD_ROOT%{zsh_compdir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/docker
%dir %{_libexecdir}/docker
%dir %{_libexecdir}/docker/cli-plugins
%{bash_compdir}/docker
%{zsh_compdir}/_docker