[python-cmdln] First import

averi averi at fedoraproject.org
Wed Dec 4 18:17:34 UTC 2013


commit 5b486f011440fdded58cf9a32981a5f833322549
Author: Andrea Veri <av at gnome.org>
Date:   Wed Dec 4 19:17:04 2013 +0100

    First import

 .gitignore                        |    1 +
 python-cmdln-1.3.0-1.fc21.src.rpm |  Bin 0 -> 123454 bytes
 python-cmdln.spec                 |   62 +++++++++++++++++++++++++++++++++++++
 sources                           |    1 +
 4 files changed, 64 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..82fc4a3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cmdln-1.3.0-dcf6780.tar.gz
diff --git a/python-cmdln-1.3.0-1.fc21.src.rpm b/python-cmdln-1.3.0-1.fc21.src.rpm
new file mode 100644
index 0000000..87f0648
Binary files /dev/null and b/python-cmdln-1.3.0-1.fc21.src.rpm differ
diff --git a/python-cmdln.spec b/python-cmdln.spec
new file mode 100644
index 0000000..a08db42
--- /dev/null
+++ b/python-cmdln.spec
@@ -0,0 +1,62 @@
+%global commit dcf678068233bb4efd0449bcd003f3f435f49bd1
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Summary:        An improved cmd.py for Writing Multi-command Scripts and Shells
+Name:           python-cmdln
+Version:        1.3.0
+Release:        1%{?dist}
+Source0:        https://github.com/trentm/cmdln/archive/%{commit}/cmdln-%{version}-%{shortcommit}.tar.gz
+License:        MIT
+Group:          Development/Libraries
+BuildRequires:  python-setuptools
+BuildRequires:  python2-devel
+URL:            https://github.com/trentm/cmdln
+BuildArch:	noarch
+
+%description
+`cmdln.py` is an extension of Python's default `cmd.py` module that
+provides "a simple framework for writing line-oriented command
+interpreters".  The idea (with both cmd.py and cmdln.py) is to be able
+to quickly build multi-sub-command tools (think cvs or svn) and/or
+simple interactive shells (think gdb or pdb).  Cmdln's extensions make
+it more natural to write sub-commands, integrate optparse for simple
+option processing, and make having good command documentation easier.
+
+%package doc
+License:        MIT
+Summary:	An improved cmd.py for Writing Multi-command Scripts and Shells
+Group:          Development/Libraries
+Requires:	%{name}%{?_isa} = %{version}-%{release}
+
+%description doc
+`cmdln.py` is an extension of Python's default `cmd.py` module that
+provides "a simple framework for writing line-oriented command
+interpreters".  The idea (with both cmd.py and cmdln.py) is to be able
+to quickly build multi-sub-command tools (think cvs or svn) and/or
+simple interactive shells (think gdb or pdb).  Cmdln's extensions make
+it more natural to write sub-commands, integrate optparse for simple
+option processing, and make having good command documentation easier.
+
+Documentation package.
+
+%prep
+%setup -q -n cmdln-%{commit}
+
+%build
+export CFLAGS="%{optflags}"
+%{__python2} setup.py build
+
+%install
+%{__python2} setup.py install \
+   --prefix=%{_prefix} \
+   --root=%{buildroot}
+
+%files
+%{python_sitelib}/cmdln*
+
+%files doc
+%doc LICENSE.txt README.md docs/* examples/*
+
+%changelog
+* Wed Dec 04 2013 Andrea Veri <averi at fedoraproject.org> 1.3.0-1
+- First package release.
diff --git a/sources b/sources
index e69de29..f075c05 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+49aabbec29659ee5ccb18c2c63f0e58f  cmdln-1.3.0-dcf6780.tar.gz


More information about the scm-commits mailing list