diff --git a/python-hatch_vcs.changes b/python-hatch_vcs.changes index b497f16..bb3706d 100644 --- a/python-hatch_vcs.changes +++ b/python-hatch_vcs.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jul 19 14:22:34 UTC 2022 - Matej Cepl + +- Cleanup the SPEC file. + ------------------------------------------------------------------- Tue Jul 19 09:27:06 UTC 2022 - Johannes Kastl diff --git a/python-hatch_vcs.spec b/python-hatch_vcs.spec index 32f2dc2..5ab6f52 100644 --- a/python-hatch_vcs.spec +++ b/python-hatch_vcs.spec @@ -16,21 +16,23 @@ # +%{?!python_module:%define python_module() python3-%{**}} +%define skip_python2 1 %if 0%{?suse_version} > 1500 %bcond_without libalternatives %else %bcond_with libalternatives %endif - -%{?!python_module:%define python_module() python3-%{**}} -%define skip_python2 1 Name: python-hatch_vcs Version: 0.2.0 Release: 0 Summary: Hatch plugin for versioning with your preferred VCS License: MIT URL: https://github.com/ofek/hatch-vcs -Source: https://files.pythonhosted.org/packages/source/h/hatch-vcs/hatch_vcs-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/h/hatch_vcs/hatch_vcs-%{version}.tar.gz +BuildRequires: fdupes +BuildRequires: python-rpm-macros >= 20210929 +BuildArch: noarch # SECTION build BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module hatchling} @@ -43,9 +45,6 @@ BuildRequires: %{python_module wheel} BuildRequires: %{python_module pytest} BuildRequires: git # /SECTION -BuildRequires: fdupes -BuildRequires: python-rpm-macros >= 20210929 -BuildArch: noarch %python_subpackages %description @@ -59,7 +58,7 @@ This provides a plugin for Hatch that uses your preferred version control system %install %pyproject_install -%fdupes %{buildroot}%{$python_sitelib} +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pytest tests