File python-neo.spec of Package python-neo
#
# spec file for package python-neo
#
# Copyright (c) 2017 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_with test
Name: python-neo
Version: 0.5.1
Release: 0
Summary: Read a wide variety electrophysiology file formats in Python
License: BSD-3-Clause
Group: Development/Languages/Python
Url: http://neuralensemble.org/neo
Source: https://files.pythonhosted.org/packages/source/n/neo/neo-%{version}.tar.gz
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module numpy-devel >= 1.3.0}
BuildRequires: %{python_module quantities >= 0.9.0}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-numpy >= 1.3.0
Requires: python-quantities >= 0.9.0
Recommends: python-scipy >= 0.8
Recommends: python-tables >= 2.2
BuildArch: noarch
%python_subpackages
%description
Neo is a package for representing electrophysiology data in Python, together
with support for reading a wide range of neurophysiology file formats, including
Spike2, NeuroExplorer, AlphaOmega, Axon, Blackrock, Plexon, Tdt, and support for
writing to a subset of these formats plus non-proprietary formats including HDF5.
%prep
%setup -q -n neo-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
%python_exec setup.py test
%endif
%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst
%doc examples/
%{python_sitelib}/neo/
%{python_sitelib}/neo-%{version}-py*.egg-info/
%changelog