6105a6
#global commit 16191801a53eddae8ca9380a28988c3b5b263c5e
785250
%{?gitcommit:%global gitcommitshort %(c=%{gitcommit}; echo ${c:0:7})}
a7b574
15f734
# Use the same directory of the main package for subpackage licence and docs
15f734
%global _docdir_fmt %{name}
15f734
785250
Summary:        HDF5 support in Python
785250
Name:           python-tables
785250
Version:        3.3.0
3cd88d
Release:        6%{?dist}%{?gitcommit:.git%{shortcommit}}
6105a6
#Source0:        https://github.com/PyTables/PyTables/archive/%{commit}/PyTables-%{commit}.tar.gz
785250
Source0:        https://github.com/PyTables/PyTables/archive/v%{version}.tar.gz#/python-tables-%{version}.tar.gz
a7b574
785250
Source1:        https://github.com/PyTables/PyTables/releases/download/v%{version}/pytablesmanual-%{version}.pdf
e14854
Patch0:         always-use-blosc.diff
06a3fb
Patch1:         0001-setup.py-gracefuly-handle-cpuinfo-failure.patch
Thibault North 0c9716
c65811
License:        BSD
c65811
URL:            http://www.pytables.org
Thibault North 0c9716
c65811
BuildRequires:  hdf5-devel >= 1.8 bzip2-devel lzo-devel
4e3d0c
BuildRequires:  Cython >= 0.13
4e3d0c
BuildRequires:  numpy
4e3d0c
BuildRequires:  python-numexpr >= 2.4
a7b574
BuildRequires:  blosc-devel >= 1.5.2
c65811
BuildRequires:  python2-devel
785250
BuildRequires:  python2-six
785250
BuildRequires:  python%{python3_pkgversion}-devel
Orion Poplawski 871c09
BuildRequires:  python%{python3_pkgversion}-Cython >= 0.13
Orion Poplawski 871c09
BuildRequires:  python%{python3_pkgversion}-numpy
Orion Poplawski 871c09
BuildRequires:  python%{python3_pkgversion}-numexpr >= 2.4
785250
BuildRequires:  python%{python3_pkgversion}-six
Thibault North 0c9716
Thibault North 0c9716
%description
c65811
PyTables is a package for managing hierarchical datasets and designed
c65811
to efficiently and easily cope with extremely large amounts of data.
c65811
785250
%package -n python2-tables
785250
Summary:        %{summary}
Orion Poplawski 871c09
Orion Poplawski 871c09
Requires:       numpy
785250
Requires:       python2-six
Orion Poplawski 871c09
Requires:       python2-numexpr >= 2.4
785250
%{?python_provide:%python_provide python2-tables}
Orion Poplawski 871c09
785250
%description -n python2-tables
Orion Poplawski 871c09
PyTables is a package for managing hierarchical datasets and designed
Orion Poplawski 871c09
to efficiently and easily cope with extremely large amounts of data.
Orion Poplawski 871c09
3fbfdb
This is the version for Python 2.
3fbfdb
785250
%package -n python%{python3_pkgversion}-tables
785250
Summary:        %{summary}
c65811
Orion Poplawski 871c09
Requires:       python%{python3_pkgversion}-numpy
785250
Requires:       python%{python3_pkgversion}-six
Orion Poplawski 871c09
Requires:       python%{python3_pkgversion}-numexpr >= 2.4
785250
%{?python_provide:%python_provide python%{python3_pkgversion}-tables}
718804
785250
%description -n python%{python3_pkgversion}-tables
c65811
PyTables is a package for managing hierarchical datasets and designed
Thibault North 0c9716
to efficiently and easily cope with extremely large amounts of data.
Thibault North 0c9716
c65811
This is the version for Python 3.
c65811
c65811
%package        doc
c65811
Group:          Development/Languages
c65811
Summary:        Documentation for PyTables
c65811
BuildArch:      noarch
Thibault North 0c9716
Thibault North 0c9716
%description doc
08740b
The %{name}-doc package contains the documentation for %{name}.
Thibault North 0c9716
c65811
%prep
785250
%autosetup -n PyTables-%{version} -p1
785250
cp -a %{SOURCE1} pytablesmanual.pdf
785250
7d02bc
echo "import sys, tables; sys.exit(tables.test(verbose=1))" > bench/check_all.py
785250
08740b
# Make sure we are not using anything from the bundled blosc by mistake
08740b
find c-blosc -mindepth 1 -maxdepth 1 -name hdf5 -prune -o -exec rm -r {} +
08740b
Thibault North 0c9716
%build
Orion Poplawski 871c09
%py2_build
Orion Poplawski 871c09
%py3_build
c65811
Thibault North 0c9716
%install
Thibault North 0c9716
chmod -x examples/check_examples.sh
06a3fb
sed -i 's|bin/env |bin/|' utils/*
Thibault North 0c9716
Orion Poplawski 871c09
%py2_install
Orion Poplawski 871c09
%py3_install
c65811
Orion Poplawski 871c09
%check
Orion Poplawski 871c09
export LANG=en_US.UTF-8
Orion Poplawski 871c09
PYTHONPATH=%{buildroot}%{python2_sitearch} %{__python2} bench/check_all.py
Thibault North 0c9716
Orion Poplawski 871c09
# OOM during tests on s390
Orion Poplawski 871c09
%ifnarch s390
Orion Poplawski 871c09
PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} bench/check_all.py
Orion Poplawski 871c09
%endif
Orion Poplawski 871c09
785250
%files -n python2-tables
15f734
%license LICENSE.txt LICENSES
785250
%{python2_sitearch}/tables
785250
%{python2_sitearch}/tables-%{version}*.egg-info
Thibault North 0c9716
785250
%files -n python%{python3_pkgversion}-tables
15f734
%license LICENSE.txt LICENSES
3fbfdb
%{_bindir}/ptdump
3fbfdb
%{_bindir}/ptrepack
3fbfdb
%{_bindir}/pt2to3
3fbfdb
%{_bindir}/pttree
785250
%{python3_sitearch}/tables
785250
%{python3_sitearch}/tables-%{version}*.egg-info
c65811
Thibault North 0c9716
%files doc
15f734
%license LICENSE.txt LICENSES
a7b574
%doc pytablesmanual.pdf
15f734
%doc [A-KM-Za-z]*.txt
Thibault North 0c9716
%doc examples/
Thibault North 0c9716
Thibault North 0c9716
%changelog
3cd88d
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-6
3cd88d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
3cd88d
3d3496
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-5
3d3496
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3d3496
76d748
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-4
76d748
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
76d748
bc74dc
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 3.3.0-3
bc74dc
- Rebuild for Python 3.6
bc74dc
cb1bff
* Mon Nov 07 2016 Than Ngo <than@redhat.com> - 3.3.0-2
cb1bff
- rebuild against new blosc due to big endien issue on s390x/ppc64
cb1bff
785250
* Thu Sep 15 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.3.0-1
785250
- Update to latest upstream version (#1352621)
785250
c2c307
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-6
c2c307
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
c2c307
Orion Poplawski 871c09
* Tue May 17 2016 Orion Poplawski <orion@cora.nwra.com> - 3.2.2-5
Orion Poplawski 871c09
- Update provides filter
Orion Poplawski 871c09
- Ship python2 package
Orion Poplawski 871c09
- Use %%python3_pkgversion for EPEL7 compatibility
Orion Poplawski 871c09
- Use current python macros
Orion Poplawski 871c09
d62c8b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.2-4
d62c8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d62c8b
Orion Poplawski db830d
* Thu Jan 21 2016 Orion Poplawski <orion@cora.nwra.com> - 3.2.2-3
Orion Poplawski db830d
- Rebuild for hdf5 1.8.16
Orion Poplawski db830d
4e3d0c
* Wed Nov 18 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.2.2-2
4e3d0c
- Make sure numexpr is new enough
4e3d0c
4f513b
* Sat Nov 14 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.2.2-1
4f513b
- Update to latest version
4f513b
d9ec65
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.0-4
d9ec65
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
d9ec65
80f785
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.0-3
80f785
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
80f785
Orion Poplawski ac2d71
* Sun May 17 2015 Orion Poplawski <orion@cora.nwra.com> - 3.2.0-2
Orion Poplawski ac2d71
- Rebuild for hdf5 1.8.15
Orion Poplawski ac2d71
6105a6
* Thu May  7 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.2.0-1
6105a6
- Update to 3.2.0
6105a6
e18107
* Thu Jan  8 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.1.2-4.git1619180
e18107
- Use blosc on all architectures
e18107
a7b574
* Thu Jan  8 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.1.2-3.git1619180
a7b574
- Update to latest snapshot and use external blosc
a7b574
Orion Poplawski 81a4ff
* Wed Jan 07 2015 Orion Poplawski <orion@cora.nwra.com> - 3.1.1-2
Orion Poplawski 81a4ff
- Rebuild for hdf5 1.8.14
Orion Poplawski 81a4ff
48a090
* Tue Jan 06 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.1.1-1
48a090
- Update to 3.1.1 (#1080889)
48a090
7f8606
* Tue Nov 25 2014 Dan Horák <dan[at]danny.cz> - 3.0.0-8
7f8606
- workaround OOM during Python3 tests on s390
7f8606
feb693
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.0-7
feb693
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
feb693
07862a
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.0-6
07862a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
07862a
f977c3
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 3.0.0-5
f977c3
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
f977c3
a3c91d
* Mon Mar 24 2014 Zbigniew Jędrzejewski-Szmek - 3.0.0-4
a3c91d
- Rebuild for latest blosc
a3c91d
718804
* Fri Jan 10 2014 Zbigniew Jędrzejewski-Szmek - 3.0.0-3
718804
- Move python3 requires to the proper package (#1051691)
718804
c65811
* Thu Sep 05 2013 Zbigniew Jędrzejewski-Szmek - 3.0.0-2
c65811
- Add python3-tables package
c65811
c65811
* Wed Aug 21 2013 Thibault North <tnorth@fedoraproject.org> - 3.0.0-1
e849b8
- Update to 3.0.0
e849b8
6fee6f
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-4
6fee6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
6fee6f
82343d
* Thu May 16 2013 Orion Poplawski <orion@cora.nwra.com> - 2.4.0-3
82343d
- Rebuild for hdf5 1.8.11
82343d
87a944
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-2
87a944
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
87a944
b042b5
* Sun Oct 28 2012 Thibault North <tnorth@fedoraproject.org> - 2.4.0-1
b042b5
- Update to 2.4.0
b042b5
cefb00
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.1-5
cefb00
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
cefb00
4f2f95
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.1-4
4f2f95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4f2f95
Thibault North 0c9716
* Mon Nov 14 2011 Thibault North <tnorth@fedoraproject.org> - 2.3.1-3
Thibault North 0c9716
- Remove lrucache.py which was deprecated and under AFL license
Thibault North 0c9716
c65811
* Thu Nov 10 2011 Thibault North <tnorth@fedoraproject.org> - 2.3.1-2
Thibault North 0c9716
- Fixes and subpackage for the docs
Thibault North 0c9716
Thibault North 0c9716
* Mon Nov 07 2011 Thibault North <tnorth@fedoraproject.org> - 2.3.1-1
Thibault North 0c9716
- Fixes and update to 2.3.1