buildrequires setuptools_scm for correct version of dist-info

This commit is contained in:
Funda Wang 2025-02-27 12:56:59 +08:00
parent 8c9d682f3d
commit 92543953f1

View File

@ -1,6 +1,6 @@
Name: python-typeguard
Version: 4.4.1
Release: 1
Release: 2
Summary: Run-time type checker for Python
# SPDX
@ -23,6 +23,7 @@ Summary: %{summary}
BuildRequires: python3-devel python3-pip python3-wheel
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm
BuildRequires: python3-pytest
BuildRequires: python3-typing-extensions
@ -33,9 +34,11 @@ BuildRequires: python3-typing-extensions
%autosetup -n typeguard-%{version}
%build
export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
%pyproject_build
%install
export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
%pyproject_install
%check
@ -61,11 +64,14 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} \
%license LICENSE
%doc README.rst
%{python3_sitelib}/typeguard/
%{python3_sitelib}/typeguard-0.0.0.dist-info/
%{python3_sitelib}/typeguard
%{python3_sitelib}/typeguard-%{version}.dist-info/
%changelog
* Thu Feb 27 2025 Funda Wang <fundawang@yeah.net> - 4.4.1-2
- buildrequires setuptools_scm for correct version of dist-info
* Wed Nov 20 2024 sqfu <dev01203@linx-info.com> - 4.4.1-1
- update to 4.4.1