forked from pool/python-cmd2
Updating link to change in openSUSE:Factory/python-cmd2 revision 19.0
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=219aacca894ff6b415485ad7a737fcda
This commit is contained in:
committed by
Git OBS Bridge
parent
71b18193f8
commit
7f821b6ca6
@@ -17,32 +17,33 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-cmd2
|
||||
Version: 0.9.4
|
||||
Version: 0.8.9
|
||||
Release: 0
|
||||
Summary: Extra features for standard library's cmd module
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/python-cmd2/cmd2
|
||||
Url: http://packages.python.org/cmd2/
|
||||
Source: https://files.pythonhosted.org/packages/source/c/cmd2/cmd2-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module setuptools_scm}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION Test requirements
|
||||
BuildRequires: %{python_module attrs}
|
||||
BuildRequires: %{python_module colorama}
|
||||
BuildRequires: %{python_module contextlib2}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module pyperclip >= 1.5.27}
|
||||
BuildRequires: %{python_module pytest-mock}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module pyperclip}
|
||||
BuildRequires: %{python_module pytest-xdist}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wcwidth}
|
||||
# /SECTION
|
||||
Requires: python-attrs
|
||||
Requires: python-colorama
|
||||
Requires: python-pyperclip >= 1.5.27
|
||||
BuildRequires: python-enum34
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python-subprocess32
|
||||
Requires: python-pyparsing >= 2.0.1
|
||||
Requires: python-pyperclip
|
||||
Requires: python-six
|
||||
Requires: python-wcwidth
|
||||
%ifpython2
|
||||
Requires: python-contextlib2
|
||||
Requires: python-enum34
|
||||
Requires: python-subprocess32
|
||||
%endif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
@@ -68,24 +69,19 @@ Drop-in replacement adds several features for command-prompt tools:
|
||||
|
||||
%prep
|
||||
%setup -q -n cmd2-%{version}
|
||||
# Fix non-executable-script
|
||||
sed -i -e '/^#!\//, 1d' cmd2/cmd2.py
|
||||
# Fix spurious-executable-perm
|
||||
chmod a-x README.md
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc CHANGELOG.md CODEOWNERS README.md
|
||||
%doc README.md
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user