File python3-socketpool.spec of Package python3-socketpool
#
# spec file for package python3-socketpool
#
# Copyright (c) 2015 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python3-socketpool
Version: 0.5.3
Release: 0
Summary: Python socket pool
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
Patch0: encoding.patch
BuildRequires: python3 >= 3.2
BuildRequires: python3-2to3
BuildRequires: python3-devel
BuildRequires: python3-nose
Requires: python3 >= 3.2
Recommends: python3-eventlet
Recommends: python3-gevent
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Socket pool is a simple socket pool that suports multiple factories and
backends. It can easily be used by gevent, eventlet or any other library.
%prep
%setup -q -n socketpool-%{version}
%patch0
%build
python3 setup.py build
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
rm -r %{buildroot}%{_prefix}/socketpool # Remove wrongly installed docs
# Fail for instance
#%check
#nosetests
%files
%defattr(-,root,root,-)
%doc README.rst *LICENSE examples
%{python3_sitelib}/*
%changelog