14
0
forked from pool/python-knack

- Remove patch as the test fail properly as the pkg does not support

python2:
  * k_skip-broken-tests.patch
- Fix the version field

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-knack?expand=0&rev=21
This commit is contained in:
Tomáš Chvátal
2020-04-03 06:35:21 +00:00
committed by Git OBS Bridge
parent 0f67e1d19a
commit f1efb70c23
3 changed files with 13 additions and 30 deletions

View File

@@ -17,15 +17,16 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%define realver 0.7.0rc1
Name: python-knack
Version: 0.7.0rc1
Version: 0.7.0~rc1
Release: 0
Summary: A Command-Line Interface framework
License: MIT
Group: Development/Languages/Python
URL: https://github.com/microsoft/knack
Source: https://files.pythonhosted.org/packages/source/k/knack/knack-%{version}.tar.gz
Patch: k_skip-broken-tests.patch
Source: https://files.pythonhosted.org/packages/source/k/knack/knack-%{realver}.tar.gz
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module argcomplete}
BuildRequires: %{python_module colorama}
@@ -38,7 +39,6 @@ BuildRequires: %{python_module six}
BuildRequires: %{python_module tabulate}
BuildRequires: %{python_module vcrpy}
BuildRequires: fdupes
BuildRequires: python-enum34
BuildRequires: python-rpm-macros
Requires: python-PyYAML
Requires: python-argcomplete
@@ -48,17 +48,13 @@ Requires: python-pygments
Requires: python-six
Requires: python-tabulate
BuildArch: noarch
%ifpython2
Requires: python-enum34
%endif
%python_subpackages
%description
A Command-Line Interface framework
%prep
%setup -q -n knack-%{version}
%patch0 -p1
%setup -q -n knack-%{realver}
%build
%python_build