File python-mpi4py.spec of Package python-mpi4py

%define name python-mpi4py
%define version 1.0.0
%define unmangled_version 1.0.0
%define release 1

Summary: MPI for Python
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{unmangled_version}.tar.bz2
License: Public Domain
Group: Development/Libraries/Python
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Vendor: CIMEC <http://www.cimec.org.ar>
Url: http://mpi4py.googlecode.com/

%py_requires
Requires: 	python openmpi openmpi-devel
BuildRequires: 	python-devel openmpi openmpi-devel
AutoReqProv: 	on

%description
This package provides MPI support for Python scripting in parallel
environments. It is constructed on top of the MPI-1/MPI-2
specification, but provides an object oriented interface which closely
follows the MPI-2 C++ bindings.

This module supports point-to-point (send, receive) and collective
(broadcast, scatter, gather, reduction) communications of any
*picklable* Python object.

For objects exporting single-segment buffer interface (strings, NumPy
arrays, etc.), blocking/nonbloking/persistent point-to-point,
collective and one-sided (put, get, accumulate) communications are
fully supported, as well as parallel I/O (blocking and nonbloking,
collective and noncollective read and write operations using explicit
file offsets, individual file pointers and shared file
pointers).

There is also full support for group and communicator (inter, intra,
Cartesian and graph topologies) creation and management, as well as
creating user-defined datatypes. Additionally, there is almost
complete support for dynamic process creation and management (spawn,
name publishing).

%prep
%setup -n %{name}-%{unmangled_version}

%build
env CFLAGS="$RPM_OPT_FLAGS" python setup.py build

%install
python setup.py install --root=$RPM_BUILD_ROOT --prefix=%{_prefix} --record=INSTALLED_FILES

%clean
rm -rf $RPM_BUILD_ROOT

%files -f INSTALLED_FILES
%defattr(-,root,root)
%dir %{py_sitedir}/mpi4py
%dir %{py_sitedir}/mpi4py/include
%dir %{py_sitedir}/mpi4py/include/mpi4py
%doc LICENSE.txt README.txt HISTORY.txt THANKS.txt docs/html

%changelog
* Tue May 05 2009 Felix Richter <felix.richter2@uni-rostock.de> - 1.0.0
- Initial specfile generated by python distutils, 
- adapted for SUSE Build Service
openSUSE Build Service is sponsored by