%global pyver 3.15 %global python python%{pyver} %global puresitedir %{_prefix}/lib/python%{pyver}/site-packages Name: python%{pyver}-hatchling Version: 1.31.0 Release: 1%{?dist}%{?_trivial}%{?_buildid} Summary: Modern, extensible Python build backend License: MIT URL: https://github.com/pypa/hatch Source0: https://files.pythonhosted.org/packages/source/h/hatchling/hatchling-%{version}.tar.gz BuildArch: noarch BuildRequires: python%{pyver} BuildRequires: python%{pyver}-libs BuildRequires: python%{pyver}-setuptools BuildRequires: python%{pyver}-wheel BuildRequires: python%{pyver}-pip BuildRequires: python%{pyver}-installer BuildRequires: python%{pyver}-flit-core BuildRequires: python%{pyver}-packaging BuildRequires: python%{pyver}-pathspec BuildRequires: python%{pyver}-editables BuildRequires: python%{pyver}-pluggy BuildRequires: python%{pyver}-tomli BuildRequires: python%{pyver}-trove-classifiers Requires: python%{pyver}-libs Requires: python%{pyver}-packaging Requires: python%{pyver}-pathspec Requires: python%{pyver}-editables Requires: python%{pyver}-pluggy Requires: python%{pyver}-tomli %description Hatchling is a modern, extensible Python build backend. %prep %autosetup -n hatchling-%{version} %build # hatchling is self-bootstrapping %{python} -m pip wheel --no-deps --no-build-isolation -w dist . %install %{python} -m installer --destdir=%{buildroot} dist/*.whl find %{buildroot}%{_bindir} -type f -exec \ sed -i '1s|^#!.*python.*$|#!/usr/bin/python%{pyver}|' {} \; 2>/dev/null || true %check PYTHONPATH=%{buildroot}%{puresitedir} %{python} -c "import hatchling; print('hatchling OK')" %files %license LICENSE.txt %{_bindir}/hatchling %{puresitedir}/hatchling/ %{puresitedir}/hatchling-%{version}.dist-info/ %changelog * Wed Jul 08 2026 Yonghang Wang - 1.31.0-1%{?dist}%{?_trivial}%{?_buildid} - Build for al2023