File python-tables.spec of Package python-tables
#
# spec file for package python-tables
#
# Copyright (c) 2015 SUSE LINUX 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 tables
Name: python-%{modname}
Version: 3.2.0
Release: 0
Summary: Hierarchical datasets for Python
License: BSD-3-Clause
Group: Development/Languages/Python
Url: http://www.pytables.org/
Source0: https://pypi.python.org/packages/source/t/tables/%{modname}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: hdf5-devel >= 1.8.10
BuildRequires: libbz2-devel
BuildRequires: lzo-devel
BuildRequires: python-Cython >= 0.13
BuildRequires: python-blosc
BuildRequires: python-devel >= 2.6
BuildRequires: python-numexpr >= 2.0
BuildRequires: python-numpy-devel >= 1.4.1
BuildRequires: python-setuptools
Requires: hdf5 >= 1.8.10
Requires: python-blosc
Requires: python-numexpr >= 2.0
Requires: python-numpy >= 1.4.1
Recommends: bzip2
Recommends: lzo
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%endif
%description
PyTables is a package for managing hierarchical datasets and
designed to efficently cope with extremely large amounts of
data. PyTables is built on top of the HDF5 library and the
NumPy package and features an object-oriented interface
that, combined with C-code generated from Pyrex sources,
makes of it a fast, yet extremely easy to use tool for
interactively save and retrieve large amounts of data.
%package doc
Summary: Documentation for %{name}
Group: Development/Languages/Python
%description doc
Documentation and help files for %{name}
%prep
%setup -q -n %{modname}-%{version}
%build
CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%fdupes -s %{buildroot}%{python_sitearch}
%files
%defattr(-,root,root)
%doc ANNOUNCE.txt LICENSE.txt README.rst RELEASE_NOTES.txt THANKS
%{_bindir}/pt2to3
%{_bindir}/ptdump
%{_bindir}/ptrepack
%{_bindir}/pttree
%{python_sitearch}/%{modname}/
%{python_sitearch}/%{modname}-%{version}-py%{py_ver}.egg-info
%files doc
%defattr(-,root,root)
%doc doc/html
%changelog