%global pyver 3.15 %global python python%{pyver} %global puresitedir %{_prefix}/lib/python%{pyver}/site-packages Name: python%{pyver}-setuptools-scm Version: 8.3.1 Release: 1%{?dist} Summary: The blessed package to manage your versions by scm tags License: MIT URL: https://github.com/pypa/setuptools_scm Source0: https://files.pythonhosted.org/packages/source/s/setuptools-scm/setuptools_scm-%{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 Requires: python%{pyver}-libs Requires: python%{pyver}-setuptools Requires: python%{pyver}-packaging %description Setuptools-scm handles managing your Python package versions in SCM metadata. %prep %autosetup -n setuptools_scm-%{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}/setuptools_scm/ %{puresitedir}/setuptools_scm-%{version}.dist-info/ %changelog * Thu Jul 09 2026 Yonghang Wang - 8.3.1-1%{?dist} - Build for al2023