automatic version update by autodist [release 7.1.0-1mamba;Mon May 27 2024]

This commit is contained in:
Automatic Build System 2024-05-28 09:49:05 +02:00
parent 95eee83b87
commit f5a4aa93f8

View File

@ -1,5 +1,6 @@
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-docker
Version: 7.0.0
Version: 7.1.0
Release: 1mamba
Summary: An API client for docker written in Python
Group: System/Libraries
@ -8,11 +9,9 @@ Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/docker/docker-py
Source: https://pypi.debian.net/docker/docker-%{version}.tar.gz
#Source: https://github.com/docker/docker-py/archive/%{version}.tar.gz
License: Apache License 2.0
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel
BuildRequires: python3.11dist(packaging)
BuildRequires: python3.11dist(requests)
BuildRequires: python3.11dist(urllib3)
## AUTOBUILDREQ-END
@ -30,26 +29,34 @@ It does everything the docker command does, but from within Python run conta
%setup -q -n docker-%{version}
%build
CFLAGS="%{optflags}" %{__python} setup.py build
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{python_inc} \
--install-lib=%{python_sitearch} \
--record=%{name}.filelist
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
#%if "%{?with_pyver}" != "3"
## Rename any conflicting file outside of python site packages tree
#for f in %{_bindir}/pdm; do
# mv %{buildroot}${f}{,-%{?pyappend}}
#done
#%endif
%files %{?pyappend} -f %{name}.filelist
%files %{?pyappend}
%defattr(-,root,root)
%dir %{python_sitearch}/docker-%{version}-py*.egg-info
%{python_sitearch}/docker-%{version}-py*.egg-info/*
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
%dir %{python_sitelib}/%{pkgname}
%{python_sitelib}/%{pkgname}/*
%doc LICENSE README.md
%changelog
* Mon May 27 2024 Automatic Build System <autodist@openmamba.org> 7.1.0-1mamba
- automatic version update by autodist
* Wed Apr 03 2024 Automatic Build System <autodist@openmamba.org> 7.0.0b3-1mamba
- automatic update by autodist
* Sat Dec 09 2023 Automatic Build System <autodist@mambasoft.it> 7.0.0-1mamba
- automatic version update by autodist