15
0
forked from pool/python-cliff

Accepting request 220428 from devel:languages:python

- update to 1.5.2:
  * Fix the arguments passed to commands when they are instantiated to
  pull out help.
  * Add bash command completion.
  * Use stevedore to load formatter plugins
  * Use pbr for packaging
- add remove-distribute-dep.patch: remove distribute dependency
- add 0001-Fix-doc-build-with-Python-2.6.x.patch: Fix build with python 2.6 (forwarded request 220390 from dirkmueller)

OBS-URL: https://build.opensuse.org/request/show/220428
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cliff?expand=0&rev=16
This commit is contained in:
Stephan Kulow
2014-01-31 08:44:04 +00:00
committed by Git OBS Bridge
parent 0946425915
commit 0f8251c6d4
6 changed files with 73 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-cliff
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,31 +17,39 @@
Name: python-cliff
Version: 1.4.5
Version: 1.5.2
Release: 0
Url: https://github.com/dreamhost/cliff
Summary: Command Line Interface Formulation Framework
License: Apache-2.0
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/c/cliff/cliff-%{version}.tar.gz
Patch0: remove-distribute-dep.patch
Patch1: 0001-Fix-doc-build-with-Python-2.6.x.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-argparse
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: python-tablib
# Test requirements:
BuildRequires: python-PrettyTable
BuildRequires: python-Sphinx
BuildRequires: python-cmd2
BuildRequires: python-coverage
BuildRequires: python-mock >= 1.0.1
BuildRequires: python-nose
BuildRequires: python-pbr
BuildRequires: python-pep8
BuildRequires: python-pyparsing >= 2.0.1
BuildRequires: python-six
BuildRequires: python-stevedore
Requires: python-PrettyTable >= 0.6
%if 0%{?suse_version} <= 1110
Requires: python-argparse
%endif
Requires: python-cmd2 >= 0.6.7
Requires: python-pyparsing >= 2.0.1
Requires: python-tablib
Requires: python-six
Requires: python-stevedore
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%py_requires
@@ -64,15 +72,18 @@ This package contains documentation files for %{name}.
%prep
%setup -q -n cliff-%{version}
%patch0
%patch1 -p1
%build
python setup.py build
python setup.py build_sphinx
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
nosetests
python setup.py test
%files
%defattr(-,root,root,-)