%global pyver 3.15 %global python python%{pyver} %global puresitedir %{_prefix}/lib/python%{pyver}/site-packages %global srcname setuptools %global version 83.0.0 Name: python%{pyver}-%{srcname} Version: %{version} Release: 1%{?dist}%{?_trivial}%{?_buildid} Summary: Easily download, build, install, upgrade, and uninstall Python packages License: MIT URL: https://github.com/pypa/setuptools Source0: https://files.pythonhosted.org/packages/source/s/%{srcname}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python%{pyver} BuildRequires: python%{pyver}-libs BuildRequires: python%{pyver}-wheel BuildRequires: python%{pyver}-installer BuildRequires: python%{pyver}-flit-core Requires: python%{pyver}-libs %description Setuptools is a fully-featured, actively-maintained, and stable library designed to facilitate packaging Python projects. %prep %autosetup -n %{srcname}-%{version} %build # setuptools is self-bootstrapping (backend-path = ["."]) %{python} -c " import sys sys.path.insert(0, '.') from setuptools.build_meta import build_wheel build_wheel('dist') " %install %{python} -m installer --destdir=%{buildroot} dist/*.whl %check PYTHONPATH=%{buildroot}%{puresitedir} %{python} -c "import setuptools; print(setuptools.__version__)" %files %license LICENSE %{puresitedir}/setuptools/ %{puresitedir}/setuptools-%{version}.dist-info/ %{puresitedir}/_distutils_hack/ %{puresitedir}/distutils-precedence.pth %changelog * Wed Jul 08 2026 Yonghang Wang - %{version}-1%{?dist}%{?_trivial}%{?_buildid} - Build for al2023