1 |
%define commit dcf678068233bb4efd0449bcd003f3f435f49bd1 |
2 |
%define shortcommit %(c=%{commit}; echo ${c:0:7}) |
3 |
|
4 |
|
5 |
Name: python-cmdln |
6 |
Version: 1.3.0 |
7 |
Release: %mkrel 5 |
8 |
Url: http://code.google.com/p/cmdln/ |
9 |
Summary: An improved cmd.py for Writing Multi-command Scripts and Shells |
10 |
License: MIT |
11 |
Group: Development/Python |
12 |
Source: https://github.com/trentm/cmdln/archive/%{commit}/cmdln-%{version}-%{shortcommit}.tar.gz |
13 |
BuildRequires: python-devel |
14 |
BuildRequires: python-setuptools |
15 |
BuildArch: noarch |
16 |
|
17 |
%description |
18 |
`cmdln.py` is an extension of Python's default `cmd.py` module that |
19 |
provides "a simple framework for writing line-oriented command |
20 |
interpreters". The idea (with both cmd.py and cmdln.py) is to be able |
21 |
to quickly build multi-sub-command tools (think cvs or svn) and/or |
22 |
simple interactive shells (think gdb or pdb). Cmdln's extensions make |
23 |
it more natural to write sub-commands, integrate optparse for simple |
24 |
option processing, and make having good command documentation easier. |
25 |
|
26 |
%prep |
27 |
%setup -q -n cmdln-%{commit} |
28 |
|
29 |
%build |
30 |
%{__python} setup.py build |
31 |
|
32 |
%install |
33 |
%{__python} setup.py install --skip-build --root=%{buildroot} |
34 |
|
35 |
%files |
36 |
%doc LICENSE.txt README.md docs/ examples/ |
37 |
%{python_sitelib}/cmdln-%{version}-py%{py_ver}.egg-info |
38 |
%{python_sitelib}/cmdln* |
39 |
|