Logoj0ke.net Open Build Service > Projects > devel:python > python-cmdln > Changes
Sign Up | Log In

Changes of Revision 3

[-] Added cmdln.spec
x
 
1
@@ -0,0 +1,58 @@
2
+#
3
+# spec file for package python-cmdln
4
+#
5
+# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
6
+# This file and all modifications and additions to the pristine
7
+# package are under the same license as the package itself.
8
+#
9
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
10
+#
11
+
12
+
13
+%define _name cmdln
14
+%define version 1.1.1
15
+%define unmangled_version 1.1.1
16
+
17
+Summary:    An improved cmd.py for Writing Multi-command Scripts and Shells
18
+Name:       python-%{_name}
19
+Version:    %{version}
20
+Release:    2
21
+Source0:    %{_name}-%{unmangled_version}.tar.bz2
22
+License:    MIT License
23
+Group:      Development/Libraries/Python
24
+BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-buildroot
25
+BuildRequires: python-setuptools python-devel
26
+Vendor:      Trent Mick <TrentM@ActiveState.com>
27
+Url:         http://trentm.com/projects/cmdln/
28
+
29
+%description
30
+`cmdln.py` is an extension of Python's default `cmd.py` module that
31
+provides "a simple framework for writing line-oriented command
32
+interpreters".  The idea (with both cmd.py and cmdln.py) is to be able
33
+to quickly build multi-sub-command tools (think cvs or svn) and/or
34
+simple interactive shells (think gdb or pdb).  Cmdln's extensions make
35
+it more natural to write sub-commands, integrate optparse for simple
36
+option processing, and make having good command documentation easier.
37
+
38
+
39
+%prep
40
+%setup -n %{_name}-%{unmangled_version}
41
+
42
+
43
+%build
44
+export CFLAGS="$RPM_OPT_FLAGS"
45
+python setup.py build
46
+
47
+
48
+%install
49
+python setup.py install --prefix=%{_prefix} \
50
+   --root=$RPM_BUILD_ROOT \
51
+   --record-rpm=INSTALLED_FILES
52
+
53
+
54
+%clean
55
+rm -rf $RPM_BUILD_ROOT
56
+
57
+%files -f INSTALLED_FILES
58
+%defattr(-,root,root)
59
+%doc LICENSE.txt README.txt docs/ examples/
60