Matej Cepl 2022-07-19 14:22:39 +00:00 committed by Git OBS Bridge
parent ec83965f44
commit 46f6adb4b7
2 changed files with 12 additions and 8 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jul 19 14:22:34 UTC 2022 - Matej Cepl <mcepl@suse.com>
- Cleanup the SPEC file.
-------------------------------------------------------------------
Tue Jul 19 09:27:06 UTC 2022 - Johannes Kastl <kastl@b1-systems.de>

View File

@ -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