15
0
forked from pool/python-mando

Accepting request 539363 from home:TheBlackCat:branches:devel:languages:python

- Spec file cleanups
- rpmlint fixes

OBS-URL: https://build.opensuse.org/request/show/539363
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mando?expand=0&rev=3
This commit is contained in:
Todd R
2017-11-06 17:17:30 +00:00
committed by Git OBS Bridge
parent 23f3964e62
commit f98e9df68e
2 changed files with 23 additions and 12 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Nov 6 17:16:46 UTC 2017 - toddrme2178@gmail.com
- Spec file cleanups
- rpmlint fixes
-------------------------------------------------------------------
Tue Oct 24 20:13:04 UTC 2017 - aloisio@gmx.com

View File

@@ -13,49 +13,54 @@
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-mando
Version: 0.6.4
Release: 0
Summary: Create Python CLI apps with little to no effort at all
License: MIT
Summary: Create Python CLI apps with little to no effort at all!
Url: https://mando.readthedocs.org/
Group: Development/Languages/Python
URL: https://mando.readthedocs.org/
Source: https://files.pythonhosted.org/packages/source/m/mando/mando-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-Sphinx
%if %{with test}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module six}
%endif
Requires: python-six
Recommends: python-rst2ansi
Suggests: python-rst2ansi
BuildArch: noarch
%python_subpackages
%description
Mando is a wrapper around `argparse`, and allows you to
write complete CLI applications in seconds while
maintaining all the flexibility.
Mando is a wrapper around argparse, and allows you to write complete CLI
applications in seconds while maintaining all the flexibility.
%prep
%setup -q -n mando-%{version}
sed -i '1d' mando/tests/capture.py mando/tests/run.py
sed -i -e '/^#!\//, 1d' mando/tests/*.py
%build
%python_build
%install
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
%python_exec setup.py test
%endif
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE README.rst
%{python_sitelib}/*