From 3f7d7742257e592a439da43d3d838bca2d5f076b Mon Sep 17 00:00:00 2001 From: tzing_t Date: Thu, 19 Dec 2024 01:33:51 +0000 Subject: [PATCH] fix build error --- python-docker.spec | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/python-docker.spec b/python-docker.spec index bda43e2..969441e 100644 --- a/python-docker.spec +++ b/python-docker.spec @@ -1,33 +1,33 @@ %global _empty_manifest_terminate_build 0 Name: python-docker Version: 6.0.0 -Release: 1 +Release: 2 Summary: A Python library for the Docker Engine API. License: Apache-2.0 URL: https://github.com/docker/docker-py Source0: https://files.pythonhosted.org/packages/1a/d1/c41d51a0b5192533885545e031ee1b98ee6dc93ceb0c1deb4ecfe212a9a8/docker-6.0.0.tar.gz BuildArch: noarch + +BuildRequires: python3-pip python3-wheel +BuildRequires: python3-hatchling python3-hatch-vcs + %description A Python library for the Docker Engine API. %package -n python3-docker Summary: A Python library for the Docker Engine API. -Provides: python-docker +Provides: python-docker = %{version}-%{release} +BuildRequires: python3-setuptools_scm BuildRequires: python3-devel BuildRequires: python3-setuptools -BuildRequires: python3-pip -BuildRequires: python3-wheel -Requires: python3-six -Requires: python3-websocket-client -Requires: python3-requests -Requires: python3-ipaddress -# Requires: python3-backports-ssl-match-hostname -# Requires: python3-pywin32 +BuildRequires: python3-pip Requires: python3-paramiko -Requires: python3-pyOpenSSL -Requires: python3-cryptography -Requires: python3-idna +Requires: python3-packaging +Requires: python3-requests +Requires: python3-urllib3 +Requires: python3-websocket-client + %description -n python3-docker A Python library for the Docker Engine API. @@ -38,15 +38,14 @@ Provides: python3-docker-doc %description help A Python library for the Docker Engine API. - %prep %autosetup -n docker-%{version} %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_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 @@ -75,11 +74,16 @@ mv %{buildroot}/doclist.lst . %files -n python3-docker -f filelist.lst %dir %{python3_sitelib}/* +%exclude %{_usr}/lib/python3.11/site-packages/docker/*/__pycache__/*.pyc +%exclude %{_usr}/lib/python3.11/site-packages/docker/__pycache__/*.pyc %files help -f doclist.lst %{_docdir}/* %changelog +* Thu Dec 19 2024 tzing_t - 6.0.0-2 +- Fix build error + * Fri Apr 12 2024 OpenStack_SIG - 6.0.0-1 - Upgrade package to version 6.0.0 -- Gitee