File python-execnet.spec of Package python-execnet

# spec file for package python-execnet
# Copyright (c) 2014 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

%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}

Name:           python-execnet
Version:        1.2post2
Release:        0
Summary:        Ad-hoc interact with Python across version, platform and network barriers
License:        MIT
Group:          System/Filesystems
# execnet is from, see note in prep section
Source0:        %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-devel
BuildRequires:  python-setuptools
BuildRequires:  python-tox >= 1.2
BuildRequires:  python-virtualenv
%if 0%{?suse_version}
BuildRequires:  python-pytest >= 2.1.3
BuildRequires:  pytest
%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()")}
BuildArch:      noarch
Requires:       python-setuptools

python-execnet allows ad-hoc interact with Python interpreters across version, platform and network barriers 
including CPython 2.6-3.X, Jython 2.5.1 and PyPy 2.2 interpreters. It provides a minimal and fast API for, 
distributing tasks to local or remote processes,  making it easier to administer multiple hosts in python. 
It provides send/receive as well as callback/queue mechanisms, simple serialization of python builtin types 
(no pickling) and integrates with different threading models, including standard os threads, eventlet and 
gevent based systems.

%setup -q
%setup -q -T -D -n %{name}-%{version}

python build

python install --prefix=%{_prefix} --root=%{buildroot}

# TODO: this package contains unit tests that are not built on packaging.
# python test


openSUSE Build Service is sponsored by