forked from pool/python-cmdln
This commit is contained in:
commit
308b1e342f
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
cmdln-1.1.1.tar.bz2
Normal file
3
cmdln-1.1.1.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a45130304cf3031cbf8be0170790a7a9b4cd2c951a02be91c23ea1c41f9ac441
|
||||
size 67505
|
4
python-cmdln.changes
Normal file
4
python-cmdln.changes
Normal file
@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 6 09:11:00 CET 2008 - toms@suse.de
|
||||
|
||||
- Initial package 1.1.1
|
67
python-cmdln.spec
Normal file
67
python-cmdln.spec
Normal file
@ -0,0 +1,67 @@
|
||||
#
|
||||
# spec file for package python-cmdln (Version 0)
|
||||
#
|
||||
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# nodebuginfo
|
||||
|
||||
%define _name cmdln
|
||||
%define version 1.1.1
|
||||
%define unmangled_version 1.1.1
|
||||
%define release 1
|
||||
Summary: An improved cmd.py for Writing Multi-command Scripts and Shells
|
||||
|
||||
Name: python-cmdln
|
||||
Version: %{version}
|
||||
Release: 1
|
||||
Source0: %{_name}-%{unmangled_version}.tar.bz2
|
||||
License: X11/MIT
|
||||
Group: Development/Libraries/Python
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Prefix: %{_prefix}
|
||||
BuildRequires: python-devel python-setuptools
|
||||
#BuildArch: noarch
|
||||
Url: http://trentm.com/projects/cmdln
|
||||
|
||||
%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.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Trent Mick <TrentM@ActiveState.com>
|
||||
|
||||
%prep
|
||||
%setup -n %{_name}-%{unmangled_version}
|
||||
|
||||
%build
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
python setup.py build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} \
|
||||
--root=$RPM_BUILD_ROOT \
|
||||
--record-rpm=INSTALLED_FILES
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files -f INSTALLED_FILES
|
||||
%defattr(-,root,root)
|
||||
%doc LICENSE.txt README.txt docs/ examples/
|
||||
|
||||
%changelog
|
||||
* Thu Mar 06 2008 toms@suse.de
|
||||
- Initial package 1.1.1
|
Loading…
Reference in New Issue
Block a user