4 Summary: The open-source application container engine
9 Source0: %{name}.tar.gz
10 Source1: %{name}.manifest
11 Source2: %{name}.service
12 Source3: %{name}.socket
13 Source12: docker-19.03.5.tgz
15 Requires(post): /sbin/ldconfig
16 Requires(postun): /sbin/ldconfig
20 Docker is an open source project to build, ship and run any application as a
21 lightweight container.
23 Docker containers are both hardware-agnostic and platform-agnostic. This means
24 they can run anywhere, from your laptop to the largest EC2 compute instance and
25 everything in between - and they don't require you to use a particular
26 language, framework or packaging system. That makes them great building blocks
27 for deploying and scaling web apps, databases, and backend services without
28 depending on a particular stack or provider.
30 Prebuilt binaries are download from https://download.docker.com/linux/static/stable/armel/
36 chmod g-w %_sourcedir/*
37 cp %{SOURCE1} ./%{name}.manifest
42 cp %{SOURCE2} ./%{name}.services
43 cp %{SOURCE3} ./%{name}.socket
48 install -d $RPM_BUILD_ROOT/%{_bindir}
49 install -p -m 755 ./docker/* $RPM_BUILD_ROOT/%{_bindir}
50 mkdir -p %{buildroot}/opt/etc/docker
51 mkdir -p %{buildroot}/usr/lib/systemd/system/multi-user.target.wants
52 mkdir -p %{buildroot}/usr/lib/systemd/system/sockets.target.wants
53 install -m 0644 %SOURCE2 %{buildroot}/usr/lib/systemd/system/%{name}.service
54 ln -s ../%{name}.service %{buildroot}/usr/lib/systemd/system/multi-user.target.wants/
55 install -m 0644 %SOURCE3 %{buildroot}/usr/lib/systemd/system/%{name}.socket
56 ln -s ../%{name}.socket %{buildroot}/usr/lib/systemd/system/sockets.target.wants/
59 ln -s /opt/etc/docker /etc/docker
62 %manifest %{name}.manifest
63 %defattr(-,root,root,-)
67 /usr/lib/systemd/system/%{name}.service
68 /usr/lib/systemd/system/multi-user.target.wants/%{name}.service
69 /usr/lib/systemd/system/%{name}.socket
70 /usr/lib/systemd/system/sockets.target.wants/%{name}.socket