diff --git a/cmdln-1.1.1.tar.bz2 b/cmdln-1.1.1.tar.bz2 deleted file mode 100644 index 7762174..0000000 --- a/cmdln-1.1.1.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a45130304cf3031cbf8be0170790a7a9b4cd2c951a02be91c23ea1c41f9ac441 -size 67505 diff --git a/cmdln-1.1.2.zip b/cmdln-1.1.2.zip new file mode 100644 index 0000000..e65e096 --- /dev/null +++ b/cmdln-1.1.2.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6b11124b6f846ab1f5ac7be0a7e3ccd2241e0f2fa318f5db66e3630235ed130a +size 87467 diff --git a/python-cmdln.changes b/python-cmdln.changes index 6cc3846..ca82dad 100644 --- a/python-cmdln.changes +++ b/python-cmdln.changes @@ -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 diff --git a/python-cmdln.spec b/python-cmdln.spec index c3c61e9..7da7cf7 100644 --- a/python-cmdln.spec +++ b/python-cmdln.spec @@ -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 - %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