python-poetry/python-poetry.spec

103 lines
3.4 KiB
RPMSpec

%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-poetry
Version: 1.8.4
Release: 1mamba
Summary: Python dependency management and packaging made easy
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://python-poetry.org/
Source: https://pypi.debian.net/poetry/poetry-%{version}.tar.gz
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel
BuildRequires: python3.11dist(build)
BuildRequires: python3.11dist(cachecontrol)
BuildRequires: python3.11dist(cleo)
BuildRequires: python3.11dist(crashtest)
BuildRequires: python3.11dist(dulwich)
BuildRequires: python3.11dist(fastjsonschema)
BuildRequires: python3.11dist(installer)
BuildRequires: python3.11dist(keyring)
BuildRequires: python3.11dist(packaging)
BuildRequires: python3.11dist(pexpect)
BuildRequires: python3.11dist(pkginfo)
BuildRequires: python3.11dist(platformdirs)
BuildRequires: python3.11dist(poetry-core)
BuildRequires: python3.11dist(poetry-plugin-export)
BuildRequires: python3.11dist(pyproject-hooks)
BuildRequires: python3.11dist(requests)
BuildRequires: python3.11dist(requests-toolbelt)
BuildRequires: python3.11dist(shellingham)
BuildRequires: python3.11dist(tomlkit)
BuildRequires: python3.11dist(trove-classifiers)
BuildRequires: python3.11dist(virtualenv)
## AUTOBUILDREQ-END
%description
%{summary}.
%if 0%{?with_pyver}
%pyver_package
%endif
%prep
%setup -q -n poetry-%{version}
sed -i 's|platformdirs = .*|platformdirs = ">=3.0.0,<5"|' pyproject.toml
sed -i -e '/^cachecontrol/s/ version = .*,/ version = ">=0.13.0",/' pyproject.toml
%build
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
#%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}
%defattr(-,root,root)
%{_bindir}/poetry
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
%dir %{python_sitelib}/%{pkgname}
%{python_sitelib}/%{pkgname}/*
%doc LICENSE
%changelog
* Tue Oct 15 2024 Automatic Build System <autodist@openmamba.org> 1.8.4-1mamba
- automatic version update by autodist
* Thu May 09 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.3-1mamba
- update to 1.8.3
* Sun Mar 03 2024 Automatic Build System <autodist@openmamba.org> 1.8.2-1mamba
- automatic version update by autodist
* Tue Feb 27 2024 Automatic Build System <autodist@openmamba.org> 1.8.1-1mamba
- automatic version update by autodist
* Mon Feb 26 2024 Automatic Build System <autodist@openmamba.org> 1.8.0-1mamba
- automatic version update by autodist
* Tue Feb 13 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.7.1-3mamba
- loosen version requirement on cachecontrol
* Sun Jan 14 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.7.1-2mamba
- loosen requirement for platformdirs 4.1.0
* Fri Nov 17 2023 Automatic Build System <autodist@mambasoft.it> 1.7.1-1mamba
- automatic version update by autodist
* Fri Nov 10 2023 Automatic Build System <autodist@mambasoft.it> 1.7.0-1mamba
- automatic version update by autodist
* Sat Sep 30 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.1-1mamba
- package created using the webbuild interface