14
0
forked from pool/python-cmd2

- Add cmd2-pyparsing201.patch: Allow running with pyparsing>=2.0.1

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=15
This commit is contained in:
Sascha Peilicke
2013-09-17 13:29:21 +00:00
committed by Git OBS Bridge
parent 9c8d23f586
commit 5d03892b2b
3 changed files with 33 additions and 1 deletions

View File

@@ -24,8 +24,10 @@ License: MIT
Group: Development/Languages/Python
Url: http://packages.python.org/cmd2/
Source: http://pypi.python.org/packages/source/c/cmd2/cmd2-%{version}.tar.gz
# PATCH-FIX-UPSTREAM speilicke@suse.com -- Relax pyparsing requirements again
Patch0: cmd2-pyparsing201.patch
BuildRequires: python-devel
Requires: python-pyparsing == 1.5.7
Requires: python-pyparsing >= 2.0.1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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()")}
@@ -54,6 +56,7 @@ Drop-in replacement adds several features for command-prompt tools:
%prep
%setup -q -n cmd2-%{version}
%patch0 -p1
chmod -x README.txt
sed -i "s/\r//g" README.txt