c658110
%global with_python3 1
c658110
Thibault North 0c9716b
%{?filter_setup:
Thibault North 0c9716b
%filter_provides_in %{python_sitearch}/.*\.so$
c658110
%filter_provides_in %{python3_sitearch}/.*\.so$
Thibault North 0c9716b
%filter_setup}
Thibault North 0c9716b
c658110
%global module  tables
c658110
c658110
Summary:        Hierarchical datasets in Python
c658110
Name:           python-%{module}
c658110
Version:        3.0.0
718804a
Release:        3%{?dist}
c658110
Source0:        http://sourceforge.net/projects/pytables/files/pytables/%{version}/%{module}-%{version}.tar.gz
c658110
Source1:        http://sourceforge.net/project/pytables/pytables/%{version}/pytablesmanual-%{version}.pdf
Thibault North 0c9716b
c658110
License:        BSD
c658110
Group:          Development/Languages
c658110
URL:            http://www.pytables.org
c658110
Requires:       numpy
c658110
Requires:       python-numexpr
Thibault North 0c9716b
c658110
BuildRequires:  hdf5-devel >= 1.8 bzip2-devel lzo-devel
c658110
BuildRequires:  Cython >= 0.13 numpy python-numexpr
c658110
BuildRequires:  python2-devel
Thibault North 0c9716b
c658110
%if 0%{?with_python3}
c658110
BuildRequires:  python3-Cython >= 0.13 python3-numpy python3-numexpr >= 2.2
c658110
BuildRequires:  python3-devel
c658110
%endif # with_python3
Thibault North 0c9716b
Thibault North 0c9716b
%description
c658110
PyTables is a package for managing hierarchical datasets and designed
c658110
to efficiently and easily cope with extremely large amounts of data.
c658110
c658110
%if 0%{?with_python3}
c658110
%package -n python3-%{module}
c658110
Summary:        Hierarchical datasets in Python
c658110
718804a
Requires:       python3-numpy
718804a
Requires:       python3-numexpr
718804a
c658110
%description -n python3-%{module}
c658110
PyTables is a package for managing hierarchical datasets and designed
Thibault North 0c9716b
to efficiently and easily cope with extremely large amounts of data.
Thibault North 0c9716b
c658110
This is the version for Python 3.
c658110
%endif # with_python3
c658110
c658110
%package        doc
c658110
Group:          Development/Languages
c658110
Summary:        Documentation for PyTables
c658110
BuildArch:      noarch
Thibault North 0c9716b
Thibault North 0c9716b
%description doc
c658110
The %{name}-doc package contains the documentation related to
Thibault North 0c9716b
PyTables.
Thibault North 0c9716b
c658110
%prep
Thibault North 0c9716b
%setup -q -n %{module}-%{version}
c658110
echo "import tables; tables.test()" > bench/check_all.py
c658110
%if 0%{?with_python3}
c658110
rm -rf %{py3dir}
c658110
cp -a . %{py3dir}
c658110
%endif # with_python3
e849b8c
cp -a %{SOURCE1} .
Thibault North 0c9716b
Thibault North 0c9716b
%build
Thibault North 0c9716b
python setup.py build
c658110
%if 0%{?with_python3}
c658110
pushd %{py3dir}
c658110
python3 setup.py build
c658110
popd
c658110
%endif # with_python3
Thibault North 0c9716b
Thibault North 0c9716b
%check
Thibault North 0c9716b
libdir=`ls build/|grep lib`
Thibault North 0c9716b
export PYTHONPATH=`pwd`/build/$libdir
Thibault North 0c9716b
python bench/check_all.py
Thibault North 0c9716b
c658110
%if 0%{?with_python3}
c658110
pushd %{py3dir}
c658110
libdir=`ls build/|grep lib`
c658110
export PYTHONPATH=`pwd`/build/$libdir
c658110
python3 bench/check_all.py
c658110
popd
c658110
%endif # with_python3
c658110
Thibault North 0c9716b
%install
Thibault North 0c9716b
chmod -x examples/check_examples.sh
Thibault North 0c9716b
for i in utils/*; do sed -i 's|bin/env |bin/|' $i; done
Thibault North 0c9716b
Thibault North 0c9716b
python setup.py install -O1 --skip-build --root %{buildroot}
c658110
%if 0%{?with_python3}
c658110
pushd %{py3dir}
c658110
python3 setup.py install -O1 --skip-build --root=%{buildroot}
c658110
popd
c658110
%endif # with_python3
c658110
Thibault North 0c9716b
Thibault North 0c9716b
%files
Thibault North 0c9716b
%doc *.txt LICENSES
Thibault North 0c9716b
%{_bindir}/ptdump
Thibault North 0c9716b
%{_bindir}/ptrepack
e849b8c
%{_bindir}/pt2to3
Thibault North 0c9716b
%{python_sitearch}/%{module}
Thibault North 0c9716b
%{python_sitearch}/%{module}-%{version}-py*.egg-info
Thibault North 0c9716b
c658110
%if 0%{?with_python3}
c658110
%files -n python3-%{module}
c658110
%doc *.txt LICENSES
c658110
%{python3_sitearch}/%{module}
c658110
%{python3_sitearch}/%{module}-%{version}-py*.egg-info
c658110
%endif # with_python3
c658110
Thibault North 0c9716b
%files doc
e849b8c
%doc pytablesmanual-%{version}.pdf
Thibault North 0c9716b
%doc examples/
Thibault North 0c9716b
Thibault North 0c9716b
%changelog
718804a
* Fri Jan 10 2014 Zbigniew Jędrzejewski-Szmek - 3.0.0-3
718804a
- Move python3 requires to the proper package (#1051691)
718804a
c658110
* Thu Sep 05 2013 Zbigniew Jędrzejewski-Szmek - 3.0.0-2
c658110
- Add python3-tables package
c658110
c658110
* Wed Aug 21 2013 Thibault North <tnorth@fedoraproject.org> - 3.0.0-1
e849b8c
- Update to 3.0.0
e849b8c
6fee6f4
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-4
6fee6f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
6fee6f4
82343db
* Thu May 16 2013 Orion Poplawski <orion@cora.nwra.com> - 2.4.0-3
82343db
- Rebuild for hdf5 1.8.11
82343db
87a944e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-2
87a944e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
87a944e
b042b5f
* Sun Oct 28 2012 Thibault North <tnorth@fedoraproject.org> - 2.4.0-1
b042b5f
- Update to 2.4.0
b042b5f
cefb00f
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.1-5
cefb00f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
cefb00f
4f2f950
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.1-4
4f2f950
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4f2f950
Thibault North 0c9716b
* Mon Nov 14 2011 Thibault North <tnorth@fedoraproject.org> - 2.3.1-3
Thibault North 0c9716b
- Remove lrucache.py which was deprecated and under AFL license
Thibault North 0c9716b
c658110
* Thu Nov 10 2011 Thibault North <tnorth@fedoraproject.org> - 2.3.1-2
Thibault North 0c9716b
- Fixes and subpackage for the docs
Thibault North 0c9716b
Thibault North 0c9716b
* Mon Nov 07 2011 Thibault North <tnorth@fedoraproject.org> - 2.3.1-1
Thibault North 0c9716b
- Fixes and update to 2.3.1