Compare commits

...
Sign in to create a new pull request.

6 commits

Author SHA1 Message Date
Troy Dawson
042297dcaa Rebuilt to change main python from 3.4 to 3.6 2019-03-07 14:46:24 -08:00
Orion Poplawski
755badcfd2 Bump release 2018-11-12 20:41:29 -07:00
Orion Poplawski
31ac0a3943 Build for python3_other 2018-11-12 20:38:59 -07:00
Orion Poplawski
947154fd85 Add BR setuptools 2018-11-12 20:09:27 -07:00
Orion Poplawski
3f1efa2e42 Merge commit 'a8a9e5fce7' into epel7
Builds for python3X for EPEL

Conflicts:
	python-blosc.spec
2018-11-12 18:31:55 -07:00
Zbigniew Jędrzejewski-Szmek
00266385af Epel does not seem to support Recommends 2015-05-29 14:03:56 -04:00

View file

@ -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 <tdawson@redhat.com> - 1.2.8-5
- Rebuilt to change main python from 3.4 to 3.6
* Mon Nov 12 2018 Orion Poplawski <orion@cora.nwra.com> - 1.2.8-4
- Build for python36
* Mon May 16 2016 Orion Poplawski <orion@cora.nwra.com> - 1.2.8-3
- Fix provides filter
- Use %%python3_pkgversion for EPEL7 compatibility