b62540
Summary:        Python wrapper for the Blosc high performance compressor
9eb2e9
Name:           python-blosc
c3d262
Version:        1.8.1
9e0867
Release:        3%{?dist}
1e2f6e
License:        MIT
154283
URL:            https://github.com/Blosc/python-blosc
9eb2e9
Source0:        https://github.com/Blosc/python-blosc/archive/v%{version}/blosc-%{version}.tar.gz
45b8ff
0b2db4
# https://github.com/Blosc/python-blosc/pull/200
0b2db4
Patch1:         0001-blosc_extenion-constify-char-pointers-for-Py_BuildVa.patch
0b2db4
Patch2:         0002-setup.py-unbreak-build-on-architectures-which-don-t-.patch
0b2db4
Patch3:         0003-setup.py-catch-import-error-for-cpuinfo.patch
f3fe37
# https://github.com/Blosc/python-blosc/pull/202
f3fe37
Patch4:         0004-Read-os-release-instead-of-using-platform.linux_dist.patch
0b2db4
d7afaf
BuildRequires:  gcc
c3d262
BuildRequires:  blosc-devel >= 1.16.0
45b8ff
BuildRequires:  numpy
154283
BuildRequires:  python%{python3_pkgversion}-devel
154283
BuildRequires:  python%{python3_pkgversion}-numpy
154283
BuildRequires:  python%{python3_pkgversion}-psutil
89cd79
BuildRequires:  python%{python3_pkgversion}-cpuinfo
b82ee1
b82ee1
%description
b62540
%{summary}.
b62540
9eb2e9
%package -n python%{python3_pkgversion}-blosc
1e2f6e
Summary:        Python wrapper for the blosc high performance compressor
c3d262
Requires:       blosc%{_isa} >= 1.16.0
b62540
Orion Poplawski a8a9e5
%{?python_provide:%python_provide python%{python3_pkgversion}-blosc}
Orion Poplawski a8a9e5
%{?fedora:Recommends: python%{python3_pkgversion}-numpy}
1e2f6e
9eb2e9
%description -n python%{python3_pkgversion}-blosc
b62540
%{summary}.
1e2f6e
b82ee1
%prep
154283
%autosetup -p1
89cd79
# Remove bundled copy
89cd79
rm cpuinfo.py
b82ee1
b82ee1
%build
1e2f6e
export BLOSC_DIR=%{_libdir}/blosc CFLAGS="%{optflags}"
c3d262
export DISABLE_BLOSC_AVX2=1
b62540
%py3_build
ce49e4
b82ee1
%install
b62540
%py3_install
Orion Poplawski a8a9e5
Orion Poplawski a8a9e5
%check
Orion Poplawski a8a9e5
cd / # avoid interference with build dir
b9ab0a
PYTHONPATH=%{buildroot}%{python3_sitearch} %__python3 -c 'import sys, blosc; sys.exit(blosc.test())'
b82ee1
9eb2e9
%files -n python%{python3_pkgversion}-blosc
1e2f6e
%{python3_sitearch}/blosc/
1e2f6e
%{python3_sitearch}/blosc-%{version}*-py*.egg-info
1e2f6e
%license LICENSES/PYTHON-BLOSC.txt
1e2f6e
%doc README.rst RELEASE_NOTES.rst
45b8ff
b82ee1
%changelog
9e0867
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.8.1-3
9e0867
- Rebuilt for Python 3.8
9e0867
fa17c3
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-2
fa17c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
fa17c3
c3d262
* Sun May  5 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.8.1-1
c3d262
- Update to latest version (#1684965)
c3d262
7ac9fc
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-3
7ac9fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
7ac9fc
1bf4ab
* Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.5.1-2
1bf4ab
- Subpackage python2-blosc has been removed
1bf4ab
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
1bf4ab
b9ab0a
* Thu Jul 19 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.5.1-1
b9ab0a
- Update to latest version (#1372856)
b9ab0a
7982a0
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-9
7982a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
7982a0
7746a2
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.4.1-8
7746a2
- Rebuilt for Python 3.7
7746a2
99e0de
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-7
99e0de
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
99e0de
dfd972
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-6
dfd972
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
dfd972
ce0337
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-5
ce0337
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ce0337
2cc1a6
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-4
2cc1a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2cc1a6
3602f2
* Thu Jan 05 2017 Dan Horák <dan[at]danny.cz> - 1.4.1-3
3602f2
- remove build time CPU detection, fixed build on ppc64/ppc64le and s390(x)
3602f2
da31bb
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.4.1-2
da31bb
- Rebuild for Python 3.6
da31bb
154283
* Thu Jul 28 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.4.1-1
154283
- Update to latest version (#1323008)
154283
067b37
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.3-2
067b37
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
067b37
ff40db
* Thu Jul 14 2016 Thibault North <tnorth@fedoraproject.org> - 1.3.3-1
ff40db
- Update to 1.3.3
ff40db
Orion Poplawski c657fe
* Mon May 16 2016 Orion Poplawski <orion@cora.nwra.com> - 1.3.2-1
Orion Poplawski c657fe
- Update to 1.3.2
Orion Poplawski c657fe
Orion Poplawski a8a9e5
* Mon May 16 2016 Orion Poplawski <orion@cora.nwra.com> - 1.2.8-3
Orion Poplawski a8a9e5
- Fix provides filter
Orion Poplawski a8a9e5
- Use %%python3_pkgversion for EPEL7 compatibility
Orion Poplawski a8a9e5
c8e222
* Sat Feb 13 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@bupkis> - 1.2.8-2
c8e222
- Add dependency on psutil to check for leaks during build
c8e222
- Fix build (#1307896)
c8e222
dd20be
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.8-2
dd20be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
dd20be
b62540
* Mon Nov 16 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.2.8-1
b62540
- Update to latest version (#1263680)
b62540
- Add python2 subpackage following the latest guidelines
b62540
b62540
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.7-5
d039e8
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
d039e8
d23ecf
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.7-4
d23ecf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d23ecf
45b8ff
* Fri May 29 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.2.7-3
45b8ff
- Run test suite
45b8ff
403ae7
* Thu May 28 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.2.7-2
403ae7
- Build python 3 subpackage
403ae7
- Install license and readme files
403ae7
0be7e3
* Thu May  7 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.2.7-1
0be7e3
- Update to 1.2.7 (#1212231)
0be7e3
6cf776
* Mon Apr 20 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.2.5-1
6cf776
- Update to 1.2.5 (#1212231)
6cf776
238863
* Tue Jan 06 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.2.4-1
238863
- Update to 1.2.4
238863
15ad68
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-4
15ad68
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
15ad68
ec4333
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-3
ec4333
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ec4333
c859b3
* Wed Mar 26 2014 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.2.3-2
c859b3
- Rebuild for blosc
c859b3
6e5516
* Sat Mar 22 2014 Thibault North <tnorth@fedoraproject.org> - 1.2.3-1
6e5516
- Update to 1.2.3 for blosc 1.3.4
6e5516
f4e945
* Wed Jan 08 2014 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.1-8
f4e945
- Rebuild for blosc
f4e945
ce49e4
* Tue Nov 05 2013 Thibault North <tnorth@fedoraproject.org> - 1.1-7
ce49e4
- Properly link with blosc shared lib
ce49e4
1c40f2
* Tue Nov 05 2013 Thibault North <tnorth@fedoraproject.org> - 1.1-6
1c40f2
- Disable SSE2 optimizations
1c40f2
b82ee1
* Tue Nov 05 2013 Thibault North <tnorth@fedoraproject.org> - 1.1-5
b82ee1
- Final cosmetic fixes
b82ee1
b82ee1
* Tue Nov 05 2013 Thibault North <tnorth@fedoraproject.org> - 1.1-4
b82ee1
- Fix wrong lib perms
b82ee1
b82ee1
* Fri Oct 18 2013 Thibault North <tnorth@fedoraproject.org> - 1.1-3
b82ee1
- Fixes, thanks to Christopher Meng
b82ee1
b82ee1
* Wed Oct 16 2013 Thibault North <tnorth@fedoraproject.org> - 1.1-2
b82ee1
- Various fixes
b82ee1
b82ee1
* Fri Sep 20 2013 Thibault North <tnorth@fedoraproject.org> - 1.1-1
b82ee1
- Sync to version 1.1
b82ee1
b82ee1
* Mon Jan 2 2012 Thibault North <tnorth@fedoraproject.org> - 1.0.7-1
b82ee1
- Initial package