1 |
|
%define commit dcf678068233bb4efd0449bcd003f3f435f49bd1 |
2 |
|
%define shortcommit %(c=%{commit}; echo ${c:0:7}) |
3 |
|
|
4 |
|
|
5 |
Name: python-cmdln |
Name: python-cmdln |
6 |
Version: 1.1.2 |
Version: 1.3.0 |
7 |
Release: %mkrel 0 |
Release: %mkrel 1 |
8 |
Url: http://code.google.com/p/cmdln/ |
Url: http://code.google.com/p/cmdln/ |
9 |
Summary: An improved cmd.py for Writing Multi-command Scripts and Shells |
Summary: An improved cmd.py for Writing Multi-command Scripts and Shells |
10 |
License: MIT |
License: MIT |
11 |
Group: Development/Python |
Group: Development/Python |
12 |
Source: https://pypi.python.org/packages/source/c/cmdln/cmdln-%{version}.zip |
Source: https://github.com/trentm/cmdln/archive/%{commit}/cmdln-%{version}-%{shortcommit}.tar.gz |
13 |
BuildRequires: python-devel |
BuildRequires: python-devel |
14 |
BuildRequires: python-setuptools |
BuildRequires: python-setuptools |
15 |
BuildArch: noarch |
BuildArch: noarch |
24 |
option processing, and make having good command documentation easier. |
option processing, and make having good command documentation easier. |
25 |
|
|
26 |
%prep |
%prep |
27 |
%setup -q -n cmdln-%{version} |
%setup -q -n cmdln-%{commit} |
28 |
|
|
29 |
%build |
%build |
30 |
%{__python} setup.py build |
%{__python} setup.py build |
33 |
%{__python} setup.py install --skip-build --root=%{buildroot} |
%{__python} setup.py install --skip-build --root=%{buildroot} |
34 |
|
|
35 |
%files |
%files |
36 |
%doc LICENSE.txt README.txt docs/ examples/ |
%doc LICENSE.txt README.md docs/ examples/ |
37 |
%{python_sitelib}/cmdln-%{version}-py%{py_ver}.egg-info |
%{python_sitelib}/cmdln-%{version}-py%{py_ver}.egg-info |
38 |
%{python_sitelib}/cmdln* |
%{python_sitelib}/cmdln* |
39 |
|
|