Run test suite in %check
This commit is contained in:
parent
403ae7f7c1
commit
45b8ff26d8
3 changed files with 81 additions and 2 deletions
|
|
@ -11,12 +11,17 @@
|
|||
Summary: Python wrapper for the blosc high performance compressor
|
||||
Name: python-%{module}
|
||||
Version: 1.2.7
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?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.
|
||||
|
|
@ -25,13 +30,15 @@ Python wrapper for the Blosc high performance compressor.
|
|||
%package -n python3-%{module}
|
||||
Summary: Python wrapper for the blosc high performance compressor
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-numpy
|
||||
Recommends: python3-numpy
|
||||
|
||||
%description -n python3-%{module}
|
||||
Python wrapper for the Blosc high performance compressor.
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q -n %{module}-%{version}
|
||||
%autosetup -n %{module}-%{version} -p1
|
||||
|
||||
# Don't enable SSE2 optimizations
|
||||
sed -i "s|CFLAGS\.append(\"-msse2\")|pass|" setup.py
|
||||
|
|
@ -63,7 +70,17 @@ export BLOSC_DIR=%{_libdir}/blosc CFLAGS="%{optflags}"
|
|||
%doc README.rst RELEASE_NOTES.rst
|
||||
%endif
|
||||
|
||||
%check
|
||||
cd / # avoid interference with build dir
|
||||
PYTHONPATH=%{buildroot}%{python2_sitearch} python -c 'import sys, blosc; sys.exit(blosc.test())'
|
||||
%if 0%{?with_python3}
|
||||
PYTHONPATH=%{buildroot}%{python3_sitearch} python3 -c 'import sys, blosc; sys.exit(blosc.test())'
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Fri May 29 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.2.7-3
|
||||
- Run test suite
|
||||
|
||||
* Thu May 28 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.2.7-2
|
||||
- Build python 3 subpackage
|
||||
- Install license and readme files
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue