!10 buildrequires setuptools_scm for correct version of dist-info
From: @fundawang Reviewed-by: @davidhan008 Signed-off-by: @davidhan008
This commit is contained in:
commit
980107a4be
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user