761f9f4
%global python3_pkgversion 3.11
290941c
Name:           python-poetry-core
290941c
Version:        1.0.0
290941c
Release:        0%{?dist}
290941c
Summary:        Poetry PEP 517 Build Backend
290941c
290941c
License:        MIT
290941c
URL:            https://pypi.org/project/poetry-core/
290941c
Source0:        %{pypi_source poetry-core}
290941c
290941c
BuildArch:      noarch
761f9f4
BuildRequires:  python%{python3_pkgversion}-devel
290941c
BuildRequires:  pyproject-rpm-macros
290941c
290941c
%description
290941c
Test a build with pyproject.toml backend-path = [.]
290941c
poetry-core builds with poetry-core.
290941c
290941c
761f9f4
%package -n python%{python3_pkgversion}-poetry-core
290941c
Summary:        %{summary}
290941c
761f9f4
%description -n python%{python3_pkgversion}-poetry-core
290941c
...
290941c
290941c
290941c
%prep
290941c
%autosetup -p1 -n poetry-core-%{version}
290941c
290941c
290941c
%build
290941c
%pyproject_wheel
290941c
290941c
290941c
%install
290941c
%pyproject_install
2c4be00
# the license is not marked as License-File by poetry-core, hence -L
2c4be00
%pyproject_save_files -L poetry
290941c
2c4be00
# internal check for our macros, -l must fail:
2c4be00
%pyproject_save_files -l poetry && exit 1 || true
290941c
761f9f4
%files -n python%{python3_pkgversion}-poetry-core -f %{pyproject_files}
290941c
%doc README.md
290941c
%license LICENSE