9eb2e99
Name:           python-blosc
4735f35
Summary:        Python wrapper for the Blosc high performance compressor
1114feb
Version:        1.11.1
c0cb6d7
Release:        %autorelease
cc348dd
License:        BSD-3-Clause
1542831
URL:            https://github.com/Blosc/python-blosc
9eb2e99
Source0:        https://github.com/Blosc/python-blosc/archive/v%{version}/blosc-%{version}.tar.gz
d983b20
Source1:        https://raw.githubusercontent.com/Blosc/python-blosc/f3c5e341a2504a03c225f4f1d9066ccdf4bd31dd/setup.py
0b2db44
d7afaf7
BuildRequires:  gcc
c3d2620
BuildRequires:  blosc-devel >= 1.16.0
1542831
BuildRequires:  python%{python3_pkgversion}-devel
730af7f
BuildRequires:  python%{python3_pkgversion}-setuptools
1542831
BuildRequires:  python%{python3_pkgversion}-numpy
1542831
BuildRequires:  python%{python3_pkgversion}-psutil
89cd79e
BuildRequires:  python%{python3_pkgversion}-cpuinfo
b82ee17
b82ee17
%description
b62540f
%{summary}.
b62540f
9eb2e99
%package -n python%{python3_pkgversion}-blosc
1e2f6e9
Summary:        Python wrapper for the blosc high performance compressor
c3d2620
Requires:       blosc%{_isa} >= 1.16.0
b62540f
Orion Poplawski a8a9e5f
%{?python_provide:%python_provide python%{python3_pkgversion}-blosc}
Orion Poplawski a8a9e5f
%{?fedora:Recommends: python%{python3_pkgversion}-numpy}
1e2f6e9
9eb2e99
%description -n python%{python3_pkgversion}-blosc
b62540f
%{summary}.
1e2f6e9
b82ee17
%prep
1542831
%autosetup -p1
b82ee17
d983b20
# Overwrite setup.py with the last version that does not use skbuild and cmake
d983b20
cp %{SOURCE1} .
d983b20
b82ee17
%build
1e2f6e9
export BLOSC_DIR=%{_libdir}/blosc CFLAGS="%{optflags}"
c3d2620
export DISABLE_BLOSC_AVX2=1
b62540f
%py3_build
ce49e44
b82ee17
%install
b62540f
%py3_install
Orion Poplawski a8a9e5f
Orion Poplawski a8a9e5f
%check
Orion Poplawski a8a9e5f
cd / # avoid interference with build dir
b9ab0a0
PYTHONPATH=%{buildroot}%{python3_sitearch} %__python3 -c 'import sys, blosc; sys.exit(blosc.test())'
b82ee17
9eb2e99
%files -n python%{python3_pkgversion}-blosc
1e2f6e9
%{python3_sitearch}/blosc/
1e2f6e9
%{python3_sitearch}/blosc-%{version}*-py*.egg-info
3063863
%license LICENSE.txt
1e2f6e9
%doc README.rst RELEASE_NOTES.rst
45b8ff2
b82ee17
%changelog
c0cb6d7
%autochangelog