Disable tests by default

- resolves: #1928123
This commit is contained in:
Nikola Forró 2021-04-16 14:10:37 +02:00
parent cc7eed4a4e
commit 5a35f580fa

View File

@ -1,12 +1,7 @@
#uncomment next line for a release candidate or a beta
#%%global relc rc1
# Simple way to disable tests
%if 0%{?flatpak}
%bcond_with tests
%else
%bcond_without tests
%endif
%if 0%{?fedora} >= 33 || 0%{?rhel} >= 9
%global blaslib flexiblas
@ -20,7 +15,7 @@
Name: numpy
Version: 1.20.1
Release: 2%{?dist}
Release: 3%{?dist}
Epoch: 1
Summary: A fast multidimensional array facility for Python
@ -59,8 +54,8 @@ BuildRequires: python3-setuptools
BuildRequires: python3-Cython
BuildRequires: gcc-gfortran gcc
BuildRequires: lapack-devel
BuildRequires: python3-hypothesis
%if %{with tests}
BuildRequires: python3-hypothesis
BuildRequires: python3-pytest
BuildRequires: python3-test
%endif
@ -194,6 +189,9 @@ python3 runtests.py
%changelog
* Fri Apr 16 2021 Nikola Forró <nforro@redhat.com> - 1:1.20.1-3
- Disable tests by default (#1928123)
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1:1.20.1-2
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937