File OpenElectrophy.spec of Package OpenElectrophy

#
# spec file for package OpenElectrophy
#
# Copyright (c) 2012 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:           OpenElectrophy
Version:        0.3.1
Release:        0
License:        CECILL-B
Summary:        Electrophysiological data and analysis-sharing framework
Url:            http://packages.python.org/OpenElectrophy/
Group:          Development/Languages/Python
Source:         http://pypi.python.org/packages/source/O/OpenElectrophy/OpenElectrophy-%{version}.tar.gz
BuildRequires:  python-devel >= 2.7
BuildRequires:  python-PyWavelets
BuildRequires:  python-SQLAlchemy >= 0.7.8
BuildRequires:  python-blosc
BuildRequires:  python-guidata >= 1.4.1
BuildRequires:  python-joblib >= 0.6.4
BuildRequires:  python-lz4
BuildRequires:  python-matplotlib >= 1.1.0
BuildRequires:  python-mysql >= 1.2.3
BuildRequires:  python-neo >= 0.2.1
BuildRequires:  python-numpy >= 1.3.0
BuildRequires:  python-psycopg2
BuildRequires:  python-python-snappy
BuildRequires:  python-qt4 >= 4.9
BuildRequires:  python-quantities >= 0.9.0
BuildRequires:  python-scipy >= 0.10
BuildRequires:  python-scikit-learn >= 0.11
BuildRequires:  python-sqlalchemy-migrate >= 0.7.2
# BuildRequires:  python-snappy
BuildRequires:  python-tables >= 2.3.1
Requires:       python(abi) = %{py_ver}
Requires:       python-PyWavelets
Requires:       python-SQLAlchemy >= 0.7.8
Requires:       python-guidata >= 1.4.1
Requires:       python-joblib >= 0.6.4
Requires:       python-matplotlib >= 1.1.0
Requires:       python-neo >= 0.2.1
Requires:       python-numpy >= 1.3.0
Requires:       python-psycopg2
Requires:       python-qt4 >= 4.9
Requires:       python-quantities >= 0.9.0
Requires:       python-scipy >= 0.10
Requires:       python-scikit-learn >= 0.11
Requires:       python-sqlalchemy-migrate >= 0.7.2
Requires:       python-tables >= 2.3.1
Recommends:     python-blosc
Recommends:     python-lz4
Recommends:     python-mysql >= 1.2.3
Recommends:     python-psycopg2
Recommends:     python-python-snappy
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
OpenElectrophy is a python module for electrophysioly data analysis (intra- and extra-cellular).
OpenElectrophy is build on top of Neo :
    * It includes the powerful Neo IO that can read a quantity of data formats (Plexon, NeuroExplorer, Spike2, TDT, Axon, BlackRock, ...) 
    * Neo object ready for analyses (AnalogSIgnal, SpikeTrain, RecordingChannel, Segment, Block ...)

But OpenElectrophy also provides:
    * A GUI for exploring datasets
    * A complete offline spikesorting tool chain = GUI and/or command line.
    * A timefrequency toolbox = fast wavelet scalogram plotting +  transient oscillation in LFP detection.
    * Viewers for neo objects.
    * A database for storage.

%prep
%setup -q

%build
CFLAGS="%{optflags}" python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

# remove unneedex extension
mv %{buildroot}%{_bindir}/startOpenElectrophy.py %{buildroot}%{_bindir}/startOpenElectrophy

%files
%defattr(-,root,root,-)
%doc README.txt
%{_bindir}/startOpenElectrophy
%{python_sitelib}/%{name}/
%{python_sitelib}/%{name}-%{version}-py*.egg-info/

%changelog
openSUSE Build Service is sponsored by