From 00266385af2d0a8db3458c1efc93a17f671c69c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 29 May 2015 14:03:56 -0400 Subject: [PATCH 1/5] Epel does not seem to support Recommends --- python-blosc.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python-blosc.spec b/python-blosc.spec index 7966f4e..42787ed 100644 --- a/python-blosc.spec +++ b/python-blosc.spec @@ -21,7 +21,7 @@ Patch1: 0002-Propagate-the-result-of-tests.patch BuildRequires: blosc-devel BuildRequires: python2-devel BuildRequires: numpy -Recommends: numpy +%{?fedora:Recommends: numpy} %description Python wrapper for the Blosc high performance compressor. @@ -31,7 +31,7 @@ Python wrapper for the Blosc high performance compressor. Summary: Python wrapper for the blosc high performance compressor BuildRequires: python3-devel BuildRequires: python3-numpy -Recommends: python3-numpy +%{?fedora:Recommends: python3-numpy} %description -n python3-%{module} Python wrapper for the Blosc high performance compressor. From 947154fd851443d9fdbf06712e50446e472b186a Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Mon, 12 Nov 2018 20:09:27 -0700 Subject: [PATCH 2/5] Add BR setuptools --- python-blosc.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python-blosc.spec b/python-blosc.spec index 7b31b60..637559c 100644 --- a/python-blosc.spec +++ b/python-blosc.spec @@ -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} From 31ac0a39432e33e5790c56990e3c4322684e54ee Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Mon, 12 Nov 2018 20:38:59 -0700 Subject: [PATCH 3/5] Build for python3_other --- python-blosc.spec | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/python-blosc.spec b/python-blosc.spec index 637559c..a846ea6 100644 --- a/python-blosc.spec +++ b/python-blosc.spec @@ -45,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 @@ -55,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/ @@ -77,6 +101,14 @@ 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 * Mon May 16 2016 Orion Poplawski - 1.2.8-3 - Fix provides filter From 755badcfd263c4c2fc81f86ac9fa15b27fd8200c Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Mon, 12 Nov 2018 20:41:29 -0700 Subject: [PATCH 4/5] Bump release --- python-blosc.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-blosc.spec b/python-blosc.spec index a846ea6..cb6793c 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: 4%{?dist} License: MIT URL: https://github.com/FrancescAlted/python-blosc Source0: https://pypi.python.org/packages/source/b/%{module}/%{module}-%{version}.tar.gz @@ -110,6 +110,9 @@ PYTHONPATH=%{buildroot}%{python3_other_sitearch} %{__python3_other} -c 'import s %endif %changelog +* 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 From 042297dcaa45ba0fc6c013147373d995a108fe3f Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Thu, 7 Mar 2019 14:46:24 -0800 Subject: [PATCH 5/5] Rebuilt to change main python from 3.4 to 3.6 --- python-blosc.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-blosc.spec b/python-blosc.spec index cb6793c..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: 4%{?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 @@ -110,6 +110,9 @@ PYTHONPATH=%{buildroot}%{python3_other_sitearch} %{__python3_other} -c 'import s %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