File python-pp.spec of Package python-pp

#
# spec file for package python-pp
#
# 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
# 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/

%define modname pp
Name:           python-%{modname}
Version:        1.6.4
Release:        0
License:        BSD-3-Clause
Summary:        Parallel and distributed programming for Python
Url:            http://pypi.python.org/pypi/pp/
Group:          Development/Languages/Python
Source:         http://www.parallelpython.com/downloads/%{modname}/%{modname}-%{version}.zip
BuildRequires:  python-devel
BuildRequires:  unzip
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

%description
Parallel Python module (PP) provides an easy and efficient way to create parallel-enabled applications for SMP computers and clusters. PP module features cross-platform portability and dynamic load balancing. Thus application written with PP will parallelize efficiently even on heterogeneous and multi-platform clusters (including clusters running other application with variable CPU loads). Visit http://www.parallelpython.com for further information.

%prep
%setup -q -n pp-%{version}

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
mv %{buildroot}%{_bindir}/ppserver.py %{buildroot}%{_bindir}/ppserver

%files
%defattr(-,root,root,-)
%doc AUTHORS CHANGELOG COPYING README
%{_bindir}/ppserver
%{python_sitelib}/%{modname}-%{version}-py*.egg-info
%{python_sitelib}/%{modname}*.py*


%changelog
openSUSE Build Service is sponsored by