diff --git a/python-docker.spec b/python-docker.spec index 2106fc9..a0a67cd 100644 --- a/python-docker.spec +++ b/python-docker.spec @@ -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 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 7.1.0-1mamba +- automatic version update by autodist + +* Wed Apr 03 2024 Automatic Build System 7.0.0b3-1mamba +- automatic update by autodist + * Sat Dec 09 2023 Automatic Build System 7.0.0-1mamba - automatic version update by autodist