6105a62
#global commit 16191801a53eddae8ca9380a28988c3b5b263c5e
7852500
%{?gitcommit:%global gitcommitshort %(c=%{gitcommit}; 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
7852500
Summary:        HDF5 support in Python
7852500
Name:           python-tables
d43a32b
Version:        3.5.2
27cf440
Release:        10%{?dist}%{?gitcommit:.git%{shortcommit}}
6105a62
#Source0:        https://github.com/PyTables/PyTables/archive/%{commit}/PyTables-%{commit}.tar.gz
4815066
Source0:        https://github.com/PyTables/PyTables/archive/v%{version}/python-tables-%{version}.tar.gz
a7b5748
487add0
# sometimes it doesn't get updated
487add0
%global manual_version 3.3.0
487add0
487add0
Source1:        https://github.com/PyTables/PyTables/releases/download/v%{manual_version}/pytablesmanual-%{manual_version}.pdf
e14854e
Patch0:         always-use-blosc.diff
32853b1
Patch1:         skip-tests-on-s390x.diff
5fa14f2
Patch2:         https://github.com/PyTables/PyTables/commit/f68dcdb47bfe6e069f4f6be10e6a47c55c2b9533.patch
487add0
c658110
License:        BSD
c658110
URL:            http://www.pytables.org
Thibault North 0c9716b
6ca2b40
BuildRequires:  hdf5-devel >= 1.8
6ca2b40
BuildRequires:  bzip2-devel
6ca2b40
BuildRequires:  lzo-devel
a7b5748
BuildRequires:  blosc-devel >= 1.5.2
7852500
BuildRequires:  python%{python3_pkgversion}-devel
Orion Poplawski 871c090
BuildRequires:  python%{python3_pkgversion}-Cython >= 0.13
Orion Poplawski 871c090
BuildRequires:  python%{python3_pkgversion}-numpy
Orion Poplawski 871c090
BuildRequires:  python%{python3_pkgversion}-numexpr >= 2.4
7852500
BuildRequires:  python%{python3_pkgversion}-six
487add0
BuildRequires:  python%{python3_pkgversion}-mock
Thibault North 0c9716b
be6e2ea
%global _description %{expand:
c658110
PyTables is a package for managing hierarchical datasets and designed
be6e2ea
to efficiently and easily cope with extremely large amounts of data.}
be6e2ea
be6e2ea
%description %_description
c658110
7852500
%package -n python%{python3_pkgversion}-tables
7852500
Summary:        %{summary}
c658110
Orion Poplawski 871c090
Requires:       python%{python3_pkgversion}-numpy
7852500
Requires:       python%{python3_pkgversion}-six
Orion Poplawski 871c090
Requires:       python%{python3_pkgversion}-numexpr >= 2.4
7852500
%{?python_provide:%python_provide python%{python3_pkgversion}-tables}
718804a
be6e2ea
%description -n python%{python3_pkgversion}-tables %_description
c658110
c658110
%package        doc
c658110
Summary:        Documentation for PyTables
c658110
BuildArch:      noarch
Thibault North 0c9716b
Thibault North 0c9716b
%description doc
08740b8
The %{name}-doc package contains the documentation for %{name}.
Thibault North 0c9716b
c658110
%prep
32853b1
%setup -n PyTables-%{version} -q
32853b1
%patch0 -p1
32853b1
32853b1
# https://github.com/PyTables/PyTables/issues/735
32853b1
%ifarch s390x
32853b1
%patch1 -p1
32853b1
%endif
32853b1
5fa14f2
%patch2 -p1
5fa14f2
7852500
cp -a %{SOURCE1} pytablesmanual.pdf
7852500
7d02bc2
echo "import sys, tables; sys.exit(tables.test(verbose=1))" > bench/check_all.py
7852500
08740b8
# Make sure we are not using anything from the bundled blosc by mistake
08740b8
find c-blosc -mindepth 1 -maxdepth 1 -name hdf5 -prune -o -exec rm -r {} +
08740b8
Thibault North 0c9716b
%build
Orion Poplawski 871c090
%py3_build
c658110
Thibault North 0c9716b
%install
Thibault North 0c9716b
chmod -x examples/check_examples.sh
06a3fb7
sed -i 's|bin/env |bin/|' utils/*
Thibault North 0c9716b
Orion Poplawski 871c090
%py3_install
c658110
Orion Poplawski 871c090
%check
Thibault North 0c9716b
Orion Poplawski 871c090
# OOM during tests on s390
Orion Poplawski 871c090
%ifnarch s390
Orion Poplawski 871c090
PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} bench/check_all.py
Orion Poplawski 871c090
%endif
Orion Poplawski 871c090
7852500
%files -n python%{python3_pkgversion}-tables
15f734c
%license LICENSE.txt LICENSES
3fbfdb6
%{_bindir}/ptdump
3fbfdb6
%{_bindir}/ptrepack
3fbfdb6
%{_bindir}/pt2to3
3fbfdb6
%{_bindir}/pttree
b1f5219
%{python3_sitearch}/tables/
b1f5219
%{python3_sitearch}/tables-%{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
27cf440
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.2-10
27cf440
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
27cf440
bb9cf4c
* Thu Jun 25 2020 Orion Poplawski <orion@cora.nwra.com> - 3.5.2-9
bb9cf4c
- Rebuild for hdf5 1.10.6
bb9cf4c
60a0285
* Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 3.5.2-8
60a0285
- Rebuilt for Python 3.9
60a0285
476ba88
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.2-7
476ba88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
476ba88
4c24512
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.5.2-6
4c24512
- Rebuilt for Python 3.8.0rc1 (#1748018)
4c24512
7aef723
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.5.2-5
7aef723
- Rebuilt for Python 3.8
7aef723
47dfc91
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.2-4
47dfc91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
47dfc91
5fa14f2
* Fri Jul 12 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.5.2-3
5fa14f2
- Add patch to fix build on python3.8 (#1718246)
5fa14f2
e24428f
* Fri Jun 28 2019 Miro Hrončok <mhroncok@redhat.com> - 3.5.2-2
e24428f
- Subpackage python2-tables has been removed
e24428f
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
e24428f
d43a32b
* Sat Jun  1 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.5.2-1
d43a32b
- Update to latest version (#1715694)
d43a32b
b1f5219
* Wed May 22 2019 Miro Hrončok <mhroncok@redhat.com> - 3.5.1-1
b1f5219
- Update to 3.5.1 (#1687831)
d43a32b
- Fix build under python3.8 (#1712818)
b1f5219
51fc919
* Sat Mar 16 2019 Orion Poplawski <orion@nwra.com> - 3.4.4-5
51fc919
- Rebuild for hdf5 1.10.5
51fc919
5e78885
* Sun Mar  3 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.4.4-4
5e78885
- Backport patch from upstream for numpy 1.16 compatibility (#1675793)
5e78885
125468a
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.4-4
125468a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
125468a
3126f4e
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.4.4-3
3126f4e
- Drop explicit locale setting
3126f4e
  See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
3126f4e
994218f
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.4-2
994218f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
994218f
4815066
* Sun Jun 24 2018 Miro Hrončok <mhroncok@redhat.com> - 3.4.4-1
4815066
- Update to 3.4.4 (#1570227)
4815066
af99b8b
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.4.2-3
af99b8b
- Rebuilt for Python 3.7
af99b8b
fe01237
* Wed Feb 28 2018 Iryna Shcherbina <ishcherb@redhat.com> - 3.4.2-2
fe01237
- Update Python 2 dependency declarations to new packaging standards
fe01237
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
fe01237
487add0
* Sat Feb 24 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.4.2-1
487add0
- Update to latest version (#1441659)
487add0
c5098da
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-7
c5098da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c5098da
3cd88de
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-6
3cd88de
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
3cd88de
3d34967
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-5
3d34967
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3d34967
76d7489
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-4
76d7489
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
76d7489
bc74dc8
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 3.3.0-3
bc74dc8
- Rebuild for Python 3.6
bc74dc8
cb1bff1
* Mon Nov 07 2016 Than Ngo <than@redhat.com> - 3.3.0-2
cb1bff1
- rebuild against new blosc due to big endien issue on s390x/ppc64
cb1bff1
7852500
* Thu Sep 15 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.3.0-1
7852500
- Update to latest upstream version (#1352621)
7852500
c2c307a
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-6
c2c307a
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
c2c307a
Orion Poplawski 871c090
* Tue May 17 2016 Orion Poplawski <orion@cora.nwra.com> - 3.2.2-5
Orion Poplawski 871c090
- Update provides filter
Orion Poplawski 871c090
- Ship python2 package
Orion Poplawski 871c090
- Use %%python3_pkgversion for EPEL7 compatibility
Orion Poplawski 871c090
- Use current python macros
Orion Poplawski 871c090
d62c8b2
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.2-4
d62c8b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d62c8b2
Orion Poplawski db830d4
* Thu Jan 21 2016 Orion Poplawski <orion@cora.nwra.com> - 3.2.2-3
Orion Poplawski db830d4
- Rebuild for hdf5 1.8.16
Orion Poplawski db830d4
4e3d0c0
* Wed Nov 18 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.2.2-2
4e3d0c0
- Make sure numexpr is new enough
4e3d0c0
4f513b3
* Sat Nov 14 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.2.2-1
4f513b3
- Update to latest version
4f513b3
d9ec655
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.0-4
d9ec655
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
d9ec655
80f785a
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.0-3
80f785a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
80f785a
Orion Poplawski ac2d71c
* Sun May 17 2015 Orion Poplawski <orion@cora.nwra.com> - 3.2.0-2
Orion Poplawski ac2d71c
- Rebuild for hdf5 1.8.15
Orion Poplawski ac2d71c
6105a62
* Thu May  7 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.2.0-1
6105a62
- Update to 3.2.0
6105a62
e181074
* Thu Jan  8 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.1.2-4.git1619180
e181074
- Use blosc on all architectures
e181074
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