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
a7b5748
%global commit 16191801a53eddae8ca9380a28988c3b5b263c5e
a7b5748
%global shortcommit %(c=%{commit}; echo ${c:0:7})
a7b5748
15f734c
# Use the same directory of the main package for subpackage licence and docs
15f734c
%global _docdir_fmt %{name}
15f734c
c658110
Summary:        Hierarchical datasets in Python
c658110
Name:           python-%{module}
a7b5748
Version:        3.1.2
a7b5748
Release:        3%{?dist}.git%{shortcommit}
a7b5748
Source0:        https://github.com/PyTables/PyTables/archive/%{commit}/PyTables-%{commit}.tar.gz
a7b5748
a7b5748
Source1:        https://sourceforge.net/projects/pytables/files/pytables/%{version}/pytablesmanual-3.1.1.pdf
e14854e
Patch0:         always-use-blosc.diff
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
a7b5748
BuildRequires:  blosc-devel >= 1.5.2
c658110
BuildRequires:  python2-devel
c658110
BuildRequires:  python3-Cython >= 0.13 python3-numpy python3-numexpr >= 2.2
c658110
BuildRequires:  python3-devel
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
3fbfdb6
This is the version for Python 2.
3fbfdb6
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
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
a7b5748
%setup -q -n PyTables-%{commit}
e14854e
%patch0 -p1
a6d28db
echo "import sys, tables; sys.exit(tables.test())" > bench/check_all.py
c658110
rm -rf %{py3dir}
c658110
cp -a . %{py3dir}
a7b5748
cp -a %{SOURCE1} pytablesmanual.pdf
Thibault North 0c9716b
Thibault North 0c9716b
%build
Thibault North 0c9716b
python setup.py build
c658110
pushd %{py3dir}
c658110
python3 setup.py build
c658110
popd
Thibault North 0c9716b
Thibault North 0c9716b
%check
Thibault North 0c9716b
libdir=`ls build/|grep lib`
d71a4d4
export PYTHONPATH=`pwd`/build/$libdir LANG=en_US.UTF-8
Thibault North 0c9716b
python bench/check_all.py
Thibault North 0c9716b
7f8606a
# OOM during tests on s390
7f8606a
%ifnarch s390
c658110
pushd %{py3dir}
c658110
libdir=`ls build/|grep lib`
c658110
export PYTHONPATH=`pwd`/build/$libdir
c658110
python3 bench/check_all.py
c658110
popd
7f8606a
%endif
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
pushd %{py3dir}
c658110
python3 setup.py install -O1 --skip-build --root=%{buildroot}
c658110
popd
c658110
Thibault North 0c9716b
Thibault North 0c9716b
%files
15f734c
%license LICENSE.txt LICENSES
Thibault North 0c9716b
%{python_sitearch}/%{module}
a7b5748
%{python_sitearch}/%{module}-%{version}*.egg-info
Thibault North 0c9716b
c658110
%files -n python3-%{module}
15f734c
%license LICENSE.txt LICENSES
3fbfdb6
%{_bindir}/ptdump
3fbfdb6
%{_bindir}/ptrepack
3fbfdb6
%{_bindir}/pt2to3
3fbfdb6
%{_bindir}/pttree
c658110
%{python3_sitearch}/%{module}
a7b5748
%{python3_sitearch}/%{module}-%{version}*.egg-info
c658110
Thibault North 0c9716b
%files doc
15f734c
%license LICENSE.txt LICENSES
a7b5748
%doc pytablesmanual.pdf
15f734c
%doc [A-KM-Za-z]*.txt
Thibault North 0c9716b
%doc examples/
Thibault North 0c9716b
Thibault North 0c9716b
%changelog
a7b5748
* Thu Jan  8 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.1.2-3.git1619180
a7b5748
- Update to latest snapshot and use external blosc
a7b5748
Orion Poplawski 81a4ff1
* Wed Jan 07 2015 Orion Poplawski <orion@cora.nwra.com> - 3.1.1-2
Orion Poplawski 81a4ff1
- Rebuild for hdf5 1.8.14
Orion Poplawski 81a4ff1
48a0907
* Tue Jan 06 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.1.1-1
48a0907
- Update to 3.1.1 (#1080889)
48a0907
7f8606a
* Tue Nov 25 2014 Dan Horák <dan[at]danny.cz> - 3.0.0-8
7f8606a
- workaround OOM during Python3 tests on s390
7f8606a
feb6934
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.0-7
feb6934
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
feb6934
07862a0
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.0-6
07862a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
07862a0
f977c3a
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 3.0.0-5
f977c3a
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
f977c3a
a3c91d7
* Mon Mar 24 2014 Zbigniew Jędrzejewski-Szmek - 3.0.0-4
a3c91d7
- Rebuild for latest blosc
a3c91d7
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