Update to 1.2.8
This commit is contained in:
parent
d039e870ae
commit
b62540ff25
5 changed files with 29 additions and 78 deletions
|
|
@ -8,33 +8,41 @@
|
|||
# Use the same directory of the main package for subpackage licence and docs
|
||||
%global _docdir_fmt %{name}
|
||||
|
||||
Summary: Python wrapper for the blosc high performance compressor
|
||||
Summary: Python wrapper for the Blosc high performance compressor
|
||||
Name: python-%{module}
|
||||
Version: 1.2.7
|
||||
Release: 5%{?dist}
|
||||
Version: 1.2.8
|
||||
Release: 1%{?dist}
|
||||
License: MIT
|
||||
URL: https://github.com/FrancescAlted/python-blosc
|
||||
Source0: https://pypi.python.org/packages/source/b/%{module}/%{module}-%{version}.tar.gz
|
||||
Patch0: 0001-Allow-verbosity-to-be-specified-when-running-test-su.patch
|
||||
Patch1: 0002-Propagate-the-result-of-tests.patch
|
||||
|
||||
BuildRequires: blosc-devel
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: numpy
|
||||
Recommends: numpy
|
||||
|
||||
%description
|
||||
Python wrapper for the Blosc high performance compressor.
|
||||
%{summary}.
|
||||
|
||||
%package -n python2-%{module}
|
||||
Summary: %{summary}
|
||||
|
||||
%{?python_provide:%python_provide python2-blosc}
|
||||
%{?fedora:Recommends: numpy}
|
||||
|
||||
%description -n python2-%{module}
|
||||
%{summary}.
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%package -n python3-%{module}
|
||||
Summary: Python wrapper for the blosc high performance compressor
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-numpy
|
||||
Recommends: python3-numpy
|
||||
%{?python_provide:%python_provide python3-blosc}
|
||||
%{?fedora:Recommends: python3-numpy}
|
||||
|
||||
%description -n python3-%{module}
|
||||
Python wrapper for the Blosc high performance compressor.
|
||||
%{summary}.
|
||||
%endif
|
||||
|
||||
%prep
|
||||
|
|
@ -45,18 +53,18 @@ sed -i "s|CFLAGS\.append(\"-msse2\")|pass|" setup.py
|
|||
|
||||
%build
|
||||
export BLOSC_DIR=%{_libdir}/blosc CFLAGS="%{optflags}"
|
||||
%{__python2} setup.py build
|
||||
%py2_build
|
||||
%if 0%{?with_python3}
|
||||
%{__python3} setup.py build
|
||||
%py3_build
|
||||
%endif
|
||||
|
||||
%install
|
||||
%{__python2} setup.py install --prefix=%{_prefix} -O1 --skip-build --root=%{buildroot}
|
||||
%py2_install
|
||||
%if 0%{?with_python3}
|
||||
%{__python3} setup.py install --prefix=%{_prefix} -O1 --skip-build --root=%{buildroot}
|
||||
%py3_install
|
||||
%endif
|
||||
|
||||
%files
|
||||
%files -n python2-%{module}
|
||||
%{python2_sitearch}/blosc/
|
||||
%{python2_sitearch}/blosc-%{version}*-py*.egg-info
|
||||
%license LICENSES/PYTHON-BLOSC.txt
|
||||
|
|
@ -78,7 +86,11 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} python3 -c 'import sys, blosc; sys.ex
|
|||
%endif
|
||||
|
||||
%changelog
|
||||
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
|
||||
* Mon Nov 16 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.2.8-1
|
||||
- Update to latest version (#1263680)
|
||||
- Add python2 subpackage following the latest guidelines
|
||||
|
||||
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.7-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
||||
|
||||
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.7-4
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue