From 92543953f16e7bd1caf36c292933fd4c8bea4870 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Thu, 27 Feb 2025 12:56:59 +0800 Subject: [PATCH] buildrequires setuptools_scm for correct version of dist-info --- python-typeguard.spec | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/python-typeguard.spec b/python-typeguard.spec index e859e19..97414d1 100644 --- a/python-typeguard.spec +++ b/python-typeguard.spec @@ -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 - 4.4.1-2 +- buildrequires setuptools_scm for correct version of dist-info + * Wed Nov 20 2024 sqfu - 4.4.1-1 - update to 4.4.1