# python3.15-packaging - Core utilities for Python packages # # First native python3.15 module package built using the grand-bundle bootstrap. # Build backend: flit-core (available via python3.15-grand-bundle .pth) %global pyver 3.15 %global pyshortver 315 %global python python%{pyver} # purelib site-packages (where installer puts pure-Python packages) %global puresitedir %{_prefix}/lib/python%{pyver}/site-packages # platlib site-packages (where C extensions go) %global platsitedir %{_libdir}/python%{pyver}/site-packages %global srcname packaging %global version 26.2 Name: python%{pyver}-%{srcname} Version: %{version} Release: 1%{?dist}%{?_trivial}%{?_buildid} Summary: Core utilities for Python packages License: Apache-2.0 OR BSD-2-Clause URL: https://github.com/pypa/packaging Source0: https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python%{pyver} BuildRequires: python%{pyver}-libs BuildRequires: python%{pyver}-flit-core BuildRequires: python%{pyver}-installer # No runtime dependencies (packaging is self-contained) Requires: python%{pyver}-libs %description Core utilities for Python packages. Provides version handling, specifiers, markers, requirements, tags, and utilities. %prep %autosetup -n %{srcname}-%{version} %build # Use python3.15 with grand-bundle's flit-core to build the wheel %{python} -m flit_core.wheel %install # Install the wheel %{python} -m installer --destdir=%{buildroot} dist/*.whl %check # Basic import check PYTHONPATH=%{buildroot}%{puresitedir} %{python} -c "import packaging; print(packaging.__version__)" %files %license LICENSE LICENSE.APACHE LICENSE.BSD %doc README.rst CHANGELOG.rst %{puresitedir}/packaging/ %{puresitedir}/packaging-%{version}.dist-info/ %changelog * Wed Jul 08 2026 Yonghang Wang - %{version}-1%{?dist}%{?_trivial}%{?_buildid} - Build for al2023