SHA256
1
0
forked from pool/python-cmd2
Thomas Bechtold 2017-08-07 07:58:37 +00:00 committed by Git OBS Bridge
parent 440f9644e9
commit 28bd7f8a75
2 changed files with 14 additions and 5 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Aug 7 07:58:02 UTC 2017 - tbechtold@suse.com
- convert to singlespec
-------------------------------------------------------------------
Mon Aug 7 07:40:00 UTC 2017 - tbechtold@suse.com

View File

@ -16,6 +16,7 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-cmd2
Version: 0.7.5
Release: 0
@ -24,14 +25,17 @@ License: MIT
Group: Development/Languages/Python
Url: http://packages.python.org/cmd2/
Source: https://files.pythonhosted.org/packages/source/c/cmd2/cmd2-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
Requires: python-pyparsing >= 2.0.1
Requires: python-pyperclip
Requires: python-six
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
Enhancements for standard library's cmd module.
@ -55,12 +59,12 @@ Drop-in replacement adds several features for command-prompt tools:
%setup -q -n cmd2-%{version}
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc README.md LICENSE
%{python_sitelib}/*