summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 15:35:07 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 15:35:07 +0000
commitb04ddfc475845166695403422bc4da2d21fb6dc0 (patch)
treef4525b3ef30421ba3bb80437d19e397596538a89
parent7a4d6b8f017e67d27f264be0f8e21ca0c306bd80 (diff)
automatic import of python-docker-py
-rw-r--r--.gitignore1
-rw-r--r--python-docker-py.spec81
-rw-r--r--sources1
3 files changed, 83 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..1ee3a89 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/docker-py-1.10.6.tar.gz
diff --git a/python-docker-py.spec b/python-docker-py.spec
new file mode 100644
index 0000000..0074815
--- /dev/null
+++ b/python-docker-py.spec
@@ -0,0 +1,81 @@
+%global _empty_manifest_terminate_build 0
+Name: python-docker-py
+Version: 1.10.6
+Release: 1
+Summary: Python client for Docker.
+License: UNKNOWN
+URL: https://github.com/docker/docker-py/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/fa/2d/906afc44a833901fc6fed1a89c228e5c88fbfc6bd2f3d2f0497fdfb9c525/docker-py-1.10.6.tar.gz
+BuildArch: noarch
+
+
+%description
+|Build Status|
+A Python library for the Docker Remote API. It does everything the
+``docker`` command does, but from within Python – run containers, manage
+them, pull/push images, etc.
+
+%package -n python3-docker-py
+Summary: Python client for Docker.
+Provides: python-docker-py
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-docker-py
+|Build Status|
+A Python library for the Docker Remote API. It does everything the
+``docker`` command does, but from within Python – run containers, manage
+them, pull/push images, etc.
+
+%package help
+Summary: Development documents and examples for docker-py
+Provides: python3-docker-py-doc
+%description help
+|Build Status|
+A Python library for the Docker Remote API. It does everything the
+``docker`` command does, but from within Python – run containers, manage
+them, pull/push images, etc.
+
+%prep
+%autosetup -n docker-py-1.10.6
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-docker-py -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.10.6-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..8f339c5
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+6c8b8309dfe9610edb2170bb2d807bd7 docker-py-1.10.6.tar.gz