python-poetry/python-poetry.spec

79 lines
2.5 KiB
RPMSpec

%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-poetry
Version: 1.7.0
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
Patch0: python-poetry-1.6.1-python-build-1.0.3.patch
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}
#%patch 0 -p1 -b .python-build-1.0.3
%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
* 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