diff --git a/python-blosc.spec b/python-blosc.spec index 7b31b60..108e32c 100644 --- a/python-blosc.spec +++ b/python-blosc.spec @@ -8,7 +8,7 @@ Summary: Python wrapper for the Blosc high performance compressor Name: python-%{module} Version: 1.2.8 -Release: 3%{?dist} +Release: 5%{?dist} License: MIT URL: https://github.com/FrancescAlted/python-blosc Source0: https://pypi.python.org/packages/source/b/%{module}/%{module}-%{version}.tar.gz @@ -16,6 +16,7 @@ Patch0: 0001-tests-fix-error-with-new-numpy.patch BuildRequires: blosc-devel BuildRequires: python2-devel +BuildRequires: python2-setuptools BuildRequires: numpy BuildRequires: python2-psutil @@ -35,6 +36,7 @@ Summary: %{summary} Summary: Python wrapper for the blosc high performance compressor BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-numpy BuildRequires: python%{python3_pkgversion}-psutil %{?python_provide:%python_provide python%{python3_pkgversion}-blosc} @@ -43,6 +45,21 @@ BuildRequires: python%{python3_pkgversion}-psutil %description -n python%{python3_pkgversion}-%{module} %{summary}. +%if 0%{?python3_other_pkgversion} +%package -n python%{python3_other_pkgversion}-%{module} +Summary: Python wrapper for the blosc high performance compressor + +BuildRequires: python%{python3_other_pkgversion}-devel +BuildRequires: python%{python3_other_pkgversion}-setuptools +BuildRequires: python%{python3_other_pkgversion}-numpy +BuildRequires: python%{python3_other_pkgversion}-psutil +%{?python_provide:%python_provide python%{python3_other_pkgversion}-blosc} +%{?fedora:Recommends: python%{python3_other_pkgversion}-numpy} + +%description -n python%{python3_other_pkgversion}-%{module} +%{summary}. +%endif + %prep %autosetup -n %{module}-%{version} -p1 @@ -53,15 +70,24 @@ sed -i "s|CFLAGS\.append(\"-msse2\")|pass|" setup.py export BLOSC_DIR=%{_libdir}/blosc CFLAGS="%{optflags}" %py2_build %py3_build +%if 0%{?python3_other_pkgversion} +%py3_other_build +%endif %install %py2_install %py3_install +%if 0%{?python3_other_pkgversion} +%py3_other_install +%endif %check cd / # avoid interference with build dir -PYTHONPATH=%{buildroot}%{python2_sitearch} python -c 'import sys, blosc; sys.exit(blosc.test())' -PYTHONPATH=%{buildroot}%{python3_sitearch} python3 -c 'import sys, blosc; sys.exit(blosc.test())' +PYTHONPATH=%{buildroot}%{python2_sitearch} %{__python2} -c 'import sys, blosc; sys.exit(blosc.test())' +PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -c 'import sys, blosc; sys.exit(blosc.test())' +%if 0%{?python3_other_pkgversion} +PYTHONPATH=%{buildroot}%{python3_other_sitearch} %{__python3_other} -c 'import sys, blosc; sys.exit(blosc.test())' +%endif %files -n python2-%{module} %{python2_sitearch}/blosc/ @@ -75,7 +101,21 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} python3 -c 'import sys, blosc; sys.ex %license LICENSES/PYTHON-BLOSC.txt %doc README.rst RELEASE_NOTES.rst +%if 0%{?python3_other_pkgversion} +%files -n python%{python3_other_pkgversion}-%{module} +%{python3_other_sitearch}/blosc/ +%{python3_other_sitearch}/blosc-%{version}*-py*.egg-info +%license LICENSES/PYTHON-BLOSC.txt +%doc README.rst RELEASE_NOTES.rst +%endif + %changelog +* Thu Mar 07 2019 Troy Dawson - 1.2.8-5 +- Rebuilt to change main python from 3.4 to 3.6 + +* Mon Nov 12 2018 Orion Poplawski - 1.2.8-4 +- Build for python36 + * Mon May 16 2016 Orion Poplawski - 1.2.8-3 - Fix provides filter - Use %%python3_pkgversion for EPEL7 compatibility