%global pyver 3.15 %global python python%{pyver} %global puresitedir %{_prefix}/lib/python%{pyver}/site-packages Name: python%{pyver}-platformdirs Version: 4.10.0 Release: 1%{?dist} Summary: Platform-specific system directories License: MIT URL: https://github.com/tox-dev/platformdirs Source0: https://files.pythonhosted.org/packages/source/p/platformdirs/platformdirs-%{version}.tar.gz BuildArch: noarch BuildRequires: python%{pyver} BuildRequires: python%{pyver}-libs BuildRequires: python%{pyver}-hatchling BuildRequires: python%{pyver}-hatch-vcs BuildRequires: python%{pyver}-setuptools-scm BuildRequires: python%{pyver}-pip BuildRequires: python%{pyver}-installer BuildRequires: python%{pyver}-trove-classifiers Requires: python%{pyver}-libs %description A library to determine platform-specific system directories. %prep %autosetup -n platformdirs-%{version} %build SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %{python} -m pip wheel --no-deps --no-build-isolation -w dist . %install %{python} -m installer --destdir=%{buildroot} dist/*.whl %files %license LICENSE %{puresitedir}/platformdirs/ %{puresitedir}/platformdirs-%{version}.dist-info/ %changelog * Thu Jul 09 2026 Yonghang Wang - 4.10.0-1%{?dist} - Build for al2023