Hello community, here is the log from the commit of package python-socketpool for openSUSE:Factory checked in at 2017-09-05 15:17:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-socketpool (Old) and /work/SRC/openSUSE:Factory/.python-socketpool.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-socketpool" Tue Sep 5 15:17:43 2017 rev:12 rq:520816 version:0.5.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-socketpool/python-socketpool.changes 2015-12-03 13:30:15.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-socketpool.new/python-socketpool.changes 2017-09-05 15:17:52.642826891 +0200 @@ -1,0 +2,5 @@ +Thu Aug 24 13:55:08 UTC 2017 - jmate...@suse.com + +- singlespec auto-conversion + +------------------------------------------------------------------- @@ -29,0 +35 @@ + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-socketpool.spec ++++++ --- /var/tmp/diff_new_pack.wdB36Y/_old 2017-09-05 15:17:55.386441239 +0200 +++ /var/tmp/diff_new_pack.wdB36Y/_new 2017-09-05 15:17:55.390440677 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-socketpool # -# 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,6 +16,8 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_with test Name: python-socketpool Version: 0.5.3 Release: 0 @@ -23,19 +25,21 @@ License: MIT Group: Development/Languages/Python Url: http://github.com/benoitc/socketpool -Source: http://pypi.python.org/packages/source/s/socketpool/socketpool-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-nose -%if 0%{?suse_version} +Source: https://files.pythonhosted.org/packages/source/s/socketpool/socketpool-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros +BuildRequires: python3-2to3 +%if %{with test} +BuildRequires: %{python_module eventlet} +BuildRequires: %{python_module gevent} +BuildRequires: %{python_module pytest} +%endif Recommends: python-eventlet Recommends: python-gevent -%endif -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%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 Socket pool is a simple socket pool that suports multiple factories and @@ -45,19 +49,25 @@ %setup -q -n socketpool-%{version} %build -python setup.py build +export LANG=en_US.UTF-8 +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +export LANG=en_US.UTF-8 +%python_install rm -r %{buildroot}%{_prefix}/socketpool # Remove wrongly installed docs -# Fail for instance -#%check -#nosetests +%if %{with test} +%check +%{python_expand export PYTHONPATH=%{buildroot}%{python_sitelib} +py.test-%{$python_bin_suffix} +} +%endif -%files +%files %{python_files} %defattr(-,root,root,-) -%doc README.rst *LICENSE examples +%doc README.rst *LICENSE +%doc examples/ %{python_sitelib}/* %changelog