15
0
forked from pool/python-argh

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

- Fix source URL
- Various small spec file cleanups.

OBS-URL: https://build.opensuse.org/request/show/490829
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argh?expand=0&rev=16
This commit is contained in:
Todd R
2017-04-24 17:35:58 +00:00
committed by Git OBS Bridge
parent a449637d44
commit 2eceafdf78
2 changed files with 15 additions and 3 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 24 17:32:13 UTC 2017 - toddrme2178@gmail.com
- Fix source URL
- Various small spec file cleanups.
-------------------------------------------------------------------
Sun Apr 23 08:19:15 UTC 2017 - aloisio@gmx.com

View File

@@ -16,6 +16,8 @@
#
%bcond_without tests
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-argh
Version: 0.26.1
@@ -24,7 +26,7 @@ Summary: A simple argparse wrapper
License: LGPL-3.0+
Group: Development/Languages/Python
Url: https://github.com/neithere/argh/
Source: http://files.pythonhosted.org/packages/source/a/argh/argh-%{version}.tar.gz
Source: https://files.pythonhosted.org/packages/source/a/argh/argh-%{version}.tar.gz
# PATCH-FIX-OPENSUSE python-argh-0.26.1-fix-testsuite.patch -- so that tests can run on OBS
Patch0: python-argh-0.26.1-fix-testsuite.patch
BuildRequires: %{python_module devel}
@@ -32,8 +34,10 @@ BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# test requirements
%if %{with tests}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest}
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
@@ -73,14 +77,16 @@ work that a custom dispatcher may not do.
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%if %{with tests}
%check
export LC_CTYPE="en_US.UTF-8"
%python_exec setup.py test
%endif
%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst
%{python_sitelib}/argh
%{python_sitelib}/argh-%{version}-py%{python_version}.egg-info
%{python_sitelib}/argh/
%{python_sitelib}/argh-%{version}-py*.egg-info
%changelog