Blame SPECS/python-tables.spec

0a39a2
#global commit 16191801a53eddae8ca9380a28988c3b5b263c5e
0a39a2
%{?gitcommit:%global gitcommitshort %(c=%{gitcommit}; echo ${c:0:7})}
0a39a2
0a39a2
# Use the same directory of the main package for subpackage licence and docs
0a39a2
%global _docdir_fmt %{name}
0a39a2
0a39a2
Summary:        HDF5 support in Python
0a39a2
Name:           python-tables
0a39a2
Version:        3.6.1
0a39a2
Release:        4%{?dist}%{?gitcommit:.git%{shortcommit}}
0a39a2
#Source0:        https://github.com/PyTables/PyTables/archive/%{commit}/PyTables-%{commit}.tar.gz
0a39a2
Source0:        https://github.com/PyTables/PyTables/archive/v%{version}/python-tables-%{version}.tar.gz
0a39a2
0a39a2
# sometimes it doesn't get updated
0a39a2
%global manual_version 3.3.0
0a39a2
0a39a2
Source1:        https://github.com/PyTables/PyTables/releases/download/v%{manual_version}/pytablesmanual-%{manual_version}.pdf
0a39a2
Patch0:         always-use-blosc.diff
0a39a2
Patch1:         0001-Skip-tests-that-fail-on-s390x.patch
0a39a2
Patch2:         0001-doctest-adjust-__init__-TypeError-formatting.patch
0a39a2
Patch3:         0001-Use-lowercase-float64-as-numpy-dtype.patch
0a39a2
Patch4:         0001-Fix-syntax-warnings.patch
0a39a2
0a39a2
License:        BSD
0a39a2
URL:            https://www.pytables.org
0a39a2
0a39a2
BuildRequires:  hdf5-devel >= 1.8
0a39a2
BuildRequires:  bzip2-devel
0a39a2
BuildRequires:  lzo-devel
0a39a2
BuildRequires:  blosc-devel >= 1.5.2
0a39a2
BuildRequires:  python%{python3_pkgversion}-devel
0a39a2
BuildRequires:  python%{python3_pkgversion}-setuptools
0a39a2
BuildRequires:  python%{python3_pkgversion}-Cython >= 0.13
0a39a2
BuildRequires:  python%{python3_pkgversion}-numpy
0a39a2
BuildRequires:  python%{python3_pkgversion}-numexpr >= 2.4
0a39a2
BuildRequires:  python%{python3_pkgversion}-six
0a39a2
BuildRequires:  python%{python3_pkgversion}-mock
0a39a2
0a39a2
%global _description %{expand:
0a39a2
PyTables is a package for managing hierarchical datasets and designed
0a39a2
to efficiently and easily cope with extremely large amounts of data.}
0a39a2
0a39a2
%description %_description
0a39a2
0a39a2
%package -n python%{python3_pkgversion}-tables
0a39a2
Summary:        %{summary}
0a39a2
0a39a2
Requires:       python%{python3_pkgversion}-numpy
0a39a2
Requires:       python%{python3_pkgversion}-six
0a39a2
Requires:       python%{python3_pkgversion}-numexpr >= 2.4
0a39a2
%{?python_provide:%python_provide python%{python3_pkgversion}-tables}
0a39a2
0a39a2
%description -n python%{python3_pkgversion}-tables %_description
0a39a2
0a39a2
%package        doc
0a39a2
Summary:        Documentation for PyTables
0a39a2
BuildArch:      noarch
0a39a2
0a39a2
%description doc
0a39a2
The %{name}-doc package contains the documentation for %{name}.
0a39a2
0a39a2
%prep
0a39a2
%setup -n PyTables-%{version} -q
0a39a2
%patch0 -p1
0a39a2
0a39a2
# https://github.com/PyTables/PyTables/issues/735
0a39a2
%ifarch s390x
0a39a2
%patch1 -p1
0a39a2
%endif
0a39a2
0a39a2
%if "%{?python3_version}" == "3.10"
0a39a2
%patch2 -p1
0a39a2
%endif
0a39a2
0a39a2
%patch3 -p1
0a39a2
%patch4 -p1
0a39a2
0a39a2
cp -a %{SOURCE1} pytablesmanual.pdf
0a39a2
0a39a2
echo "import sys, tables; sys.exit(tables.test(verbose=1))" > bench/check_all.py
0a39a2
0a39a2
# Make sure we are not using anything from the bundled blosc by mistake
0a39a2
find c-blosc -mindepth 1 -maxdepth 1 -name hdf5 -prune -o -exec rm -r {} +
0a39a2
0a39a2
%build
0a39a2
%py3_build
0a39a2
0a39a2
%install
0a39a2
chmod -x examples/check_examples.sh
0a39a2
sed -i 's|bin/env |bin/|' utils/*
0a39a2
0a39a2
%py3_install
0a39a2
0a39a2
## %check
0a39a2
0a39a2
## # OOM during tests on s390
0a39a2
## %ifnarch s390
0a39a2
## PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} bench/check_all.py
0a39a2
## %endif
0a39a2
0a39a2
%files -n python%{python3_pkgversion}-tables
0a39a2
%license LICENSE.txt LICENSES
0a39a2
%{_bindir}/ptdump
0a39a2
%{_bindir}/ptrepack
0a39a2
%{_bindir}/pt2to3
0a39a2
%{_bindir}/pttree
0a39a2
%{python3_sitearch}/tables/
0a39a2
%{python3_sitearch}/tables-%{version}*.egg-info/
0a39a2
0a39a2
%files doc
0a39a2
%license LICENSE.txt LICENSES
0a39a2
%doc pytablesmanual.pdf
0a39a2
%doc [A-KM-Za-z]*.txt
0a39a2
%doc examples/
0a39a2
0a39a2
%changelog
0a39a2
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.1-4
0a39a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
0a39a2
0a39a2
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.6.1-3
0a39a2
- Rebuilt for Python 3.10
0a39a2
0a39a2
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.1-2
0a39a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
0a39a2
0a39a2
* Thu Nov 12 2020 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.6.1-1
0a39a2
- Update to latest version (#1761990)
0a39a2
0a39a2
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.2-10
0a39a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0a39a2
0a39a2
* Thu Jun 25 2020 Orion Poplawski <orion@cora.nwra.com> - 3.5.2-9
0a39a2
- Rebuild for hdf5 1.10.6
0a39a2
0a39a2
* Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 3.5.2-8
0a39a2
- Rebuilt for Python 3.9
0a39a2
0a39a2
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.2-7
0a39a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0a39a2
0a39a2
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.5.2-6
0a39a2
- Rebuilt for Python 3.8.0rc1 (#1748018)
0a39a2
0a39a2
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.5.2-5
0a39a2
- Rebuilt for Python 3.8
0a39a2
0a39a2
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.2-4
0a39a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
0a39a2
0a39a2
* Fri Jul 12 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.5.2-3
0a39a2
- Add patch to fix build on python3.8 (#1718246)
0a39a2
0a39a2
* Fri Jun 28 2019 Miro Hrončok <mhroncok@redhat.com> - 3.5.2-2
0a39a2
- Subpackage python2-tables has been removed
0a39a2
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
0a39a2
0a39a2
* Sat Jun  1 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.5.2-1
0a39a2
- Update to latest version (#1715694)
0a39a2
0a39a2
* Wed May 22 2019 Miro Hrončok <mhroncok@redhat.com> - 3.5.1-1
0a39a2
- Update to 3.5.1 (#1687831)
0a39a2
- Fix build under python3.8 (#1712818)
0a39a2
0a39a2
* Sat Mar 16 2019 Orion Poplawski <orion@nwra.com> - 3.4.4-5
0a39a2
- Rebuild for hdf5 1.10.5
0a39a2
0a39a2
* Sun Mar  3 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.4.4-4
0a39a2
- Backport patch from upstream for numpy 1.16 compatibility (#1675793)
0a39a2
0a39a2
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.4-4
0a39a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
0a39a2
0a39a2
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.4.4-3
0a39a2
- Drop explicit locale setting
0a39a2
  See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
0a39a2
0a39a2
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.4-2
0a39a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
0a39a2
0a39a2
* Sun Jun 24 2018 Miro Hrončok <mhroncok@redhat.com> - 3.4.4-1
0a39a2
- Update to 3.4.4 (#1570227)
0a39a2
0a39a2
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.4.2-3
0a39a2
- Rebuilt for Python 3.7
0a39a2
0a39a2
* Wed Feb 28 2018 Iryna Shcherbina <ishcherb@redhat.com> - 3.4.2-2
0a39a2
- Update Python 2 dependency declarations to new packaging standards
0a39a2
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
0a39a2
0a39a2
* Sat Feb 24 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.4.2-1
0a39a2
- Update to latest version (#1441659)
0a39a2
0a39a2
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-7
0a39a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0a39a2
0a39a2
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-6
0a39a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
0a39a2
0a39a2
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-5
0a39a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0a39a2
0a39a2
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-4
0a39a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0a39a2
0a39a2
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 3.3.0-3
0a39a2
- Rebuild for Python 3.6
0a39a2
0a39a2
* Mon Nov 07 2016 Than Ngo <than@redhat.com> - 3.3.0-2
0a39a2
- rebuild against new blosc due to big endien issue on s390x/ppc64
0a39a2
0a39a2
* Thu Sep 15 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.3.0-1
0a39a2
- Update to latest upstream version (#1352621)
0a39a2
0a39a2
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-6
0a39a2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
0a39a2
0a39a2
* Tue May 17 2016 Orion Poplawski <orion@cora.nwra.com> - 3.2.2-5
0a39a2
- Update provides filter
0a39a2
- Ship python2 package
0a39a2
- Use %%python3_pkgversion for EPEL7 compatibility
0a39a2
- Use current python macros
0a39a2
0a39a2
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.2-4
0a39a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0a39a2
0a39a2
* Thu Jan 21 2016 Orion Poplawski <orion@cora.nwra.com> - 3.2.2-3
0a39a2
- Rebuild for hdf5 1.8.16
0a39a2
0a39a2
* Wed Nov 18 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.2.2-2
0a39a2
- Make sure numexpr is new enough
0a39a2
0a39a2
* Sat Nov 14 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.2.2-1
0a39a2
- Update to latest version
0a39a2
0a39a2
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.0-4
0a39a2
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
0a39a2
0a39a2
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.0-3
0a39a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0a39a2
0a39a2
* Sun May 17 2015 Orion Poplawski <orion@cora.nwra.com> - 3.2.0-2
0a39a2
- Rebuild for hdf5 1.8.15
0a39a2
0a39a2
* Thu May  7 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.2.0-1
0a39a2
- Update to 3.2.0
0a39a2
0a39a2
* Thu Jan  8 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.1.2-4.git1619180
0a39a2
- Use blosc on all architectures
0a39a2
0a39a2
* Thu Jan  8 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.1.2-3.git1619180
0a39a2
- Update to latest snapshot and use external blosc
0a39a2
0a39a2
* Wed Jan 07 2015 Orion Poplawski <orion@cora.nwra.com> - 3.1.1-2
0a39a2
- Rebuild for hdf5 1.8.14
0a39a2
0a39a2
* Tue Jan 06 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.1.1-1
0a39a2
- Update to 3.1.1 (#1080889)
0a39a2
0a39a2
* Tue Nov 25 2014 Dan Horák <dan[at]danny.cz> - 3.0.0-8
0a39a2
- workaround OOM during Python3 tests on s390
0a39a2
0a39a2
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.0-7
0a39a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
0a39a2
0a39a2
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.0-6
0a39a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0a39a2
0a39a2
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 3.0.0-5
0a39a2
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
0a39a2
0a39a2
* Mon Mar 24 2014 Zbigniew Jędrzejewski-Szmek - 3.0.0-4
0a39a2
- Rebuild for latest blosc
0a39a2
0a39a2
* Fri Jan 10 2014 Zbigniew Jędrzejewski-Szmek - 3.0.0-3
0a39a2
- Move python3 requires to the proper package (#1051691)
0a39a2
0a39a2
* Thu Sep 05 2013 Zbigniew Jędrzejewski-Szmek - 3.0.0-2
0a39a2
- Add python3-tables package
0a39a2
0a39a2
* Wed Aug 21 2013 Thibault North <tnorth@fedoraproject.org> - 3.0.0-1
0a39a2
- Update to 3.0.0
0a39a2
0a39a2
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-4
0a39a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
0a39a2
0a39a2
* Thu May 16 2013 Orion Poplawski <orion@cora.nwra.com> - 2.4.0-3
0a39a2
- Rebuild for hdf5 1.8.11
0a39a2
0a39a2
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-2
0a39a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0a39a2
0a39a2
* Sun Oct 28 2012 Thibault North <tnorth@fedoraproject.org> - 2.4.0-1
0a39a2
- Update to 2.4.0
0a39a2
0a39a2
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.1-5
0a39a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0a39a2
0a39a2
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.1-4
0a39a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0a39a2
0a39a2
* Mon Nov 14 2011 Thibault North <tnorth@fedoraproject.org> - 2.3.1-3
0a39a2
- Remove lrucache.py which was deprecated and under AFL license
0a39a2
0a39a2
* Thu Nov 10 2011 Thibault North <tnorth@fedoraproject.org> - 2.3.1-2
0a39a2
- Fixes and subpackage for the docs
0a39a2
0a39a2
* Mon Nov 07 2011 Thibault North <tnorth@fedoraproject.org> - 2.3.1-1
0a39a2
- Fixes and update to 2.3.1