diff --git a/python-hatch_vcs.changes b/python-hatch_vcs.changes index bb3706d..ad44bb3 100644 --- a/python-hatch_vcs.changes +++ b/python-hatch_vcs.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Jul 20 11:44:34 UTC 2022 - Ben Greiner + +- Cleanup spec file even more +- Fix requirements: prevent setuptools_scm 7 update +- Provide the canonical PyPI name + ------------------------------------------------------------------- Tue Jul 19 14:22:34 UTC 2022 - Matej Cepl diff --git a/python-hatch_vcs.spec b/python-hatch_vcs.spec index 5ab6f52..ced92ab 100644 --- a/python-hatch_vcs.spec +++ b/python-hatch_vcs.spec @@ -18,11 +18,6 @@ %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 -%if 0%{?suse_version} > 1500 -%bcond_without libalternatives -%else -%bcond_with libalternatives -%endif Name: python-hatch_vcs Version: 0.2.0 Release: 0 @@ -32,16 +27,17 @@ URL: https://github.com/ofek/hatch-vcs Source: https://files.pythonhosted.org/packages/source/h/hatch_vcs/hatch_vcs-%{version}.tar.gz BuildRequires: fdupes BuildRequires: python-rpm-macros >= 20210929 +Requires: python-hatchling >= 0.21.0 +# https://github.com/ofek/hatch-vcs/issues/8 +Requires: (python-setuptools_scm >= 6.4.0 with python-setuptools_scm < 7) +Provides: python-hatch-vcs = %{version}-%{info} BuildArch: noarch # SECTION build -BuildRequires: %{python_module base >= 3.7} -BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module hatchling >= 0.21.0} BuildRequires: %{python_module pip} -BuildRequires: %{python_module setuptools_scm} -BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module wheel} # /SECTION # SECTION test +BuildRequires: %{python_module setuptools_scm >= 6.4.0 with %python-setuptools_scm < 7} BuildRequires: %{python_module pytest} BuildRequires: git # /SECTION