Run test suite

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
This commit is contained in:
Igor Gnatenko 2016-08-25 15:17:55 +02:00
parent 8bbfd62c13
commit 9b5b88248e

View File

@ -1,11 +1,11 @@
%global srcname Cython
%global upname cython
%bcond_with check
%bcond_without tests
Name: Cython
Version: 0.24.1
Release: 6%{?dist}
Release: 7%{?dist}
Summary: A language for writing Python extension modules
License: Python
@ -13,7 +13,7 @@ URL: http://www.cython.org
Source: https://github.com/cython/cython/archive/%{version}/%{srcname}-%{version}.tar.gz
BuildRequires: gcc
%if %{with check}
%if %{with tests}
BuildRequires: gcc-c++
%endif
@ -30,7 +30,7 @@ Provides: Cython = %{?epoch:%{epoch}:}%{version}-%{release}
Obsoletes: Cython < 0.24.1-6
BuildRequires: python2-devel
BuildRequires: python2-setuptools
%if %{with check}
%if %{with tests}
BuildRequires: python2-coverage
BuildRequires: python2-numpy
BuildRequires: python-jedi
@ -44,7 +44,7 @@ Python 2 version.
Summary: %{summary}
%{?python_provide:%python_provide python3-%{srcname}}
BuildRequires: python3-devel
%if %{with check}
%if %{with tests}
BuildRequires: python3-coverage
BuildRequires: python3-numpy
BuildRequires: python3-jedi
@ -74,7 +74,7 @@ rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests
%py2_install
rm -rf %{buildroot}%{python2_sitelib}/setuptools/tests
%if %{with check}
%if %{with tests}
%check
%{__python2} runtests.py -vv
%{__python3} runtests.py -vv
@ -104,6 +104,9 @@ rm -rf %{buildroot}%{python2_sitelib}/setuptools/tests
%{python3_sitearch}/__pycache__/%{upname}.*
%changelog
* Thu Aug 25 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.24.1-7
- Run test suite
* Thu Aug 25 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.24.1-6
- Provide old names