File python3-tables.spec of Package python3-tables

#
# spec file for package python3-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/
#


Name:           python3-tables
Version:        3.2.2
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/tables-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  hdf5-devel >= 1.8.9
BuildRequires:  libbz2-devel
BuildRequires:  lzo-devel
BuildRequires:  python3-2to3
BuildRequires:  python3-Cython >= 0.13
BuildRequires:  python3-blosc
BuildRequires:  python3-devel
BuildRequires:  python3-numexpr >= 2.4
BuildRequires:  python3-numpy-devel >= 1.7.1
BuildRequires:  python3-setuptools
Requires:       hdf5 >= 1.8.9
Requires:       python3-blosc
Requires:       python3-numexpr >= 2.4
Requires:       python3-numpy >= 1.7.1
Recommends:     bzip2
Recommends:     lzo
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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 -n tables-%{version}

%build
CFLAGS="%{optflags} -fno-strict-aliasing" python3 setup.py build

%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%fdupes -s %{buildroot}%{python3_sitearch}
mv %{buildroot}%{_bindir}/ptdump %{buildroot}%{_bindir}/ptdump-%{py3_ver}
mv %{buildroot}%{_bindir}/ptrepack %{buildroot}%{_bindir}/ptrepack-%{py3_ver}
mv %{buildroot}%{_bindir}/pt2to3 %{buildroot}%{_bindir}/pt2to3-%{py3_ver}
mv %{buildroot}%{_bindir}/pttree %{buildroot}%{_bindir}/pttree-%{py3_ver}

%files
%defattr(-,root,root)
%doc ANNOUNCE.txt LICENSE.txt README.rst RELEASE_NOTES.txt THANKS
%{_bindir}/ptdump-%{py3_ver}
%{_bindir}/ptrepack-%{py3_ver}
%{_bindir}/pt2to3-%{py3_ver}
%{_bindir}/pttree-%{py3_ver}
%{python3_sitearch}/tables/
%{python3_sitearch}/tables-%{version}-py%{py3_ver}.egg-info

%files doc
%defattr(-,root,root)
%doc doc/html

%changelog
openSUSE Build Service is sponsored by