1 | %bcond_with build_nosrc |
---|
2 | |
---|
3 | %if !%{with build_nosrc} |
---|
4 | %global _disable_source_fetch 0 |
---|
5 | %endif |
---|
6 | |
---|
7 | Name: docker-ce |
---|
8 | Version: 19.03.8 |
---|
9 | Release: 1%{?_dist_release} |
---|
10 | Summary: The open-source application container engine |
---|
11 | Group: Development/Tools |
---|
12 | License: ASL 2.0 |
---|
13 | URL: https://www.docker.com |
---|
14 | Source0: https://download.docker.com/linux/static/stable/x86_64/docker-%{version}.tgz |
---|
15 | Source1: https://github.com/docker/docker-ce/raw/v%{version}/README.md |
---|
16 | Source2: https://github.com/docker/docker-ce/raw/v%{version}/components/cli/LICENSE |
---|
17 | |
---|
18 | Source10: docker.init |
---|
19 | Source11: docker.sysconfig |
---|
20 | Source12: docker.conf |
---|
21 | |
---|
22 | %if %{with build_nosrc} |
---|
23 | NoSource: 0 |
---|
24 | NoSource: 1 |
---|
25 | NoSource: 2 |
---|
26 | %endif |
---|
27 | |
---|
28 | Vendor: Project Vine |
---|
29 | Distribution: Vine Linux |
---|
30 | Packager: tomop |
---|
31 | |
---|
32 | # required packages on install |
---|
33 | Requires: /bin/sh |
---|
34 | Requires: libcgroup |
---|
35 | Requires: docker-ce-cli = %{version}-%{release} |
---|
36 | |
---|
37 | Conflicts: docker-ee |
---|
38 | Conflicts: docker-ee-cli |
---|
39 | |
---|
40 | %description |
---|
41 | Docker is is a product for you to build, ship and run any application as a |
---|
42 | lightweight container. |
---|
43 | |
---|
44 | Docker containers are both hardware-agnostic and platform-agnostic. This means |
---|
45 | they can run anywhere, from your laptop to the largest cloud compute instance and |
---|
46 | everything in between - and they don't require you to use a particular |
---|
47 | language, framework or packaging system. That makes them great building blocks |
---|
48 | for deploying and scaling web apps, databases, and backend services without |
---|
49 | depending on a particular stack or provider. |
---|
50 | |
---|
51 | %package cli |
---|
52 | Summary: clients for Docker |
---|
53 | Group: Development/Tools |
---|
54 | |
---|
55 | %description cli |
---|
56 | Docker is is a product for you to build, ship and run any application as a |
---|
57 | lightweight container. |
---|
58 | |
---|
59 | Docker containers are both hardware-agnostic and platform-agnostic. This means |
---|
60 | they can run anywhere, from your laptop to the largest cloud compute instance and |
---|
61 | everything in between - and they don't require you to use a particular |
---|
62 | language, framework or packaging system. That makes them great building blocks |
---|
63 | for deploying and scaling web apps, databases, and backend services without |
---|
64 | depending on a particular stack or provider. |
---|
65 | |
---|
66 | |
---|
67 | %prep |
---|
68 | %setup -q -c -n docker |
---|
69 | |
---|
70 | %build |
---|
71 | |
---|
72 | # %check |
---|
73 | # cli/build/docker -v |
---|
74 | |
---|
75 | %install |
---|
76 | # install binary |
---|
77 | install -d %{buildroot}%{_bindir} |
---|
78 | install -d %{buildroot}%{_localstatedir}/lib/docker |
---|
79 | install -d %{buildroot}%{_localstatedir}/run/docker |
---|
80 | install -d %{buildroot}%{_initdir} |
---|
81 | install -d %{buildroot}%{_sysconfdir}/sysconfig |
---|
82 | install -d %{buildroot}%{_sysconfdir}/rsyslog.d |
---|
83 | |
---|
84 | for f in docker/*; do |
---|
85 | install -p -m 755 $f %{buildroot}%{_bindir}/ |
---|
86 | done |
---|
87 | |
---|
88 | install -p -m 755 %{SOURCE10} %{buildroot}%{_initdir}/docker |
---|
89 | install -p -m 644 %{SOURCE11} %{buildroot}%{_sysconfdir}/sysconfig/docker |
---|
90 | install -p -m 644 %{SOURCE12} %{buildroot}%{_sysconfdir}/rsyslog.d/docker |
---|
91 | |
---|
92 | install -p -m 644 %{SOURCE1} ./ |
---|
93 | install -p -m 644 %{SOURCE2} ./ |
---|
94 | |
---|
95 | |
---|
96 | %clean |
---|
97 | rm -rf %{buildroot} |
---|
98 | |
---|
99 | %post |
---|
100 | if ! getent group docker > /dev/null; then |
---|
101 | groupadd --system docker |
---|
102 | fi |
---|
103 | if [ $1 -eq 1 ]; then |
---|
104 | /sbin/chkconfig --add docker |
---|
105 | fi |
---|
106 | |
---|
107 | %preun |
---|
108 | if [ $1 -eq 0 ]; then |
---|
109 | /sbin/chkconfig docker off |
---|
110 | /sbin/chkconfig --del docker |
---|
111 | fi |
---|
112 | |
---|
113 | # list files owned by the package here |
---|
114 | %files |
---|
115 | %defattr(-,root,root,-) |
---|
116 | %license LICENSE |
---|
117 | %doc README.md |
---|
118 | %{_bindir}/containerd |
---|
119 | %{_bindir}/containerd-shim |
---|
120 | %{_bindir}/ctr |
---|
121 | %{_bindir}/docker-init |
---|
122 | %{_bindir}/docker-proxy |
---|
123 | %{_bindir}/dockerd |
---|
124 | %dir %{_localstatedir}/run/docker |
---|
125 | %dir %{_localstatedir}/lib/docker |
---|
126 | %{_initdir}/docker |
---|
127 | %config(noreplace) %{_sysconfdir}/sysconfig/docker |
---|
128 | %config(noreplace) %{_sysconfdir}/rsyslog.d/docker |
---|
129 | |
---|
130 | %files cli |
---|
131 | %defattr(-,root,root,-) |
---|
132 | %license LICENSE |
---|
133 | %doc README.md |
---|
134 | %{_bindir}/docker |
---|
135 | %{_bindir}/runc |
---|
136 | |
---|
137 | %changelog |
---|
138 | * Thu Mar 19 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 19.03.08-1 |
---|
139 | - new upstream release. |
---|
140 | |
---|
141 | * Thu Oct 10 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 19.03.03-1 |
---|
142 | - new upstream release. |
---|
143 | |
---|
144 | * Tue Aug 27 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 19.03.1-2 |
---|
145 | - updated initscript: added syslog support. |
---|
146 | |
---|
147 | * Sun Aug 11 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 19.03.1-1 |
---|
148 | - initial build for Vine Linux. |
---|