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