- Update to version 1.1.2:

+ No changelog
- Spec file cleanup

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmdln?expand=0&rev=12
This commit is contained in:
Sascha Peilicke 2013-10-24 13:46:09 +00:00 committed by Git OBS Bridge
parent 81fad3cc4b
commit 154e8925b7
4 changed files with 29 additions and 33 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a45130304cf3031cbf8be0170790a7a9b4cd2c951a02be91c23ea1c41f9ac441
size 67505

3
cmdln-1.1.2.zip Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6b11124b6f846ab1f5ac7be0a7e3ccd2241e0f2fa318f5db66e3630235ed130a
size 87467

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Oct 24 13:45:41 UTC 2013 - speilicke@suse.com
- Update to version 1.1.2:
+ No changelog
- Spec file cleanup
-------------------------------------------------------------------
Fri Aug 28 22:31:23 CEST 2009 - coolo@novell.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-cmdln
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -15,25 +15,24 @@
# 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: 5
Source0: %{_name}-%{unmangled_version}.tar.bz2
Version: 1.1.2
Release: 0
Url: http://code.google.com/p/cmdln/
Summary: An improved cmd.py for Writing Multi-command Scripts and Shells
License: MIT
Group: Development/Libraries/Python
Source: https://pypi.python.org/packages/source/c/cmdln/cmdln-%{version}.zip
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Prefix: %{_prefix}
BuildRequires: python-devel python-setuptools
#BuildArch: noarch
Url: http://code.google.com/p/cmdln/
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: unzip
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%description
`cmdln.py` is an extension of Python's default `cmd.py` module that
@ -44,29 +43,19 @@ 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}
%setup -q -n cmdln-%{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
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%files
%defattr(-,root,root)
%doc LICENSE.txt README.txt docs/ examples/
%{python_sitelib}/cmdln-%{version}-py%{py_ver}.egg-info
%{python_sitelib}/cmdln*
%changelog