File python-mvpa.spec of Package python-mvpa

%define modname pymvpa
Name:           python-mvpa
URL:            http://www.pymvpa.org/
Summary:        Multivariate pattern analysis
Version:        0.4.4
Release:        1
License:        MIT License
Group:          Development/Libraries/Python
Source:         %{modname}_%{version}.tar.gz
#Patch:          externals_check.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-root
%if %{defined fedora_version} || %{defined rhel_version} || %{defined centos_version}
BuildRequires:  numpy
Requires:       numpy
%if %{defined fedora_version}
BuildRequires:  atlas lapack
%endif
# python 2.4 has no ctypes
%if 0%{?centos_version} < 600 || 0%{?rhel_version} < 600
BuildRequires:  python-ctypes
Requires:       python-ctypes
%endif
%else
# SUSE-related stuff
%{py_requires}
BuildRequires:  python-numpy-devel
Requires:       python-numpy
%endif
BuildRequires:  python-devel swig python-nose
BuildRequires:  gcc-c++

%description
PyMVPA is a Python module intended to ease pattern classification analyses of
large datasets. It provides high-level abstraction of typical processing steps
and a number of implementations of some popular algorithms. While it is not
limited to neuroimaging data it is eminently suited for such datasets.  PyMVPA
is truely free software (in every respect) and additionally requires nothing
but free-software to run.

This is a package of a development snaphot. The latest released version is
provided by the python-mvpa package.


%prep
%setup -q -n %{modname}-%{version}
#%patch -p1

%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
make 3rd
python setup.py build
MVPA_TESTS_LOWMEM=yes MVPA_TESTS_QUICK=yes MVPA_TESTS_LABILE=no make unittest

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

%clean
rm -rf %{buildroot}

%files -f INSTALLED_FILES
%defattr(0644,root,root,0755)

%if 0%{?suse_version} >= 1100
%dir
%{py_sitedir}/mvpa
%{py_sitedir}/mvpa/*
%endif

%changelog
* Mon Feb 2 2010 - Michael Hanke <michael.hanke@gmail.com> - 0.4.4-1
- New upstream version

* Wed Sep 09 2009 - Michael Hanke <michael.hanke@gmail.com> - 0.4.3-1
- New upstream version

* Mon May 25 2009 - Michael Hanke <michael.hanke@gmail.com> - 0.4.2-1
- New upstream version

* Sat Jan 24 2009 - Michael Hanke <michael.hanke@gmail.com> - 0.4.1-1
- New upstream version

* Fri Nov 21 2008 - Michael Hanke <michael.hanke@gmail.com> - 0.4.0-1
- Run unittest subset during package build.

* Sat Oct 4 2008 - Michael Hanke <michael.hanke@gmail.com> - 0.3.1-1
- Initial release
openSUSE Build Service is sponsored by