Hello community, here is the log from the commit of package python-cmdln for openSUSE:Factory checked in at 2017-09-09 20:26:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-cmdln (Old) and /work/SRC/openSUSE:Factory/.python-cmdln.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-cmdln" Sat Sep 9 20:26:03 2017 rev:18 rq:521968 version:2.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-cmdln/python-cmdln.changes 2015-05-06 07:48:50.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-cmdln.new/python-cmdln.changes 2017-09-09 20:26:04.262012115 +0200 @@ -1,0 +2,5 @@ +Thu Sep 7 09:49:23 UTC 2017 - mimi...@gmail.com + +- convert to singlespec package + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-cmdln.spec ++++++ --- /var/tmp/diff_new_pack.TnjYsy/_old 2017-09-09 20:26:04.901921918 +0200 +++ /var/tmp/diff_new_pack.TnjYsy/_new 2017-09-09 20:26:04.909920790 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-cmdln # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,24 +16,22 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-cmdln Version: 2.0.0 Release: 0 -Url: https://github.com/trentm/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 -BuildRequires: python-devel -BuildRequires: python-setuptools +Url: https://github.com/trentm/cmdln +Source: https://files.pythonhosted.org/packages/source/c/cmdln/cmdln-%{version}.zip +BuildRequires: %{python_module base} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros BuildRequires: tcl 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 +%python_subpackages %description `cmdln.py` is an extension of Python's default `cmd.py` module that @@ -52,18 +50,16 @@ chmod -x examples/* %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install %check -cd test && python test.py -%files -%defattr(-,root,root) +%files %{python_files} %doc LICENSE.txt docs/ examples/ -%{python_sitelib}/cmdln-%{version}-py%{py_ver}.egg-info %{python_sitelib}/cmdln* +%pycache_only %{python3_sitelib}/__pycache__/* %changelog