forked from pool/python-pysndfile
- Remove the test condition, run them always
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysndfile?expand=0&rev=4
This commit is contained in:
committed by
Git OBS Bridge
parent
13ab84c03d
commit
1a4ca05cdb
@@ -17,7 +17,6 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without test
|
||||
Name: python-pysndfile
|
||||
Version: 1.3.2
|
||||
Release: 0
|
||||
@@ -30,15 +29,13 @@ Source10: https://forge-2.ircam.fr/roebel/pysndfile/raw/master/COPYING.txt
|
||||
Source11: https://forge-2.ircam.fr/roebel/pysndfile/raw/master/COPYING.LESSER.txt
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module numpy-devel}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: c++_compiler
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: libsndfile-devel
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-numpy
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module pytest}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -72,12 +69,10 @@ export CFLAGS="%{optflags}"
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{python_sitearch}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
|
||||
$python tests/pysndfile_test.py
|
||||
}
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%doc ChangeLog README.md
|
||||
|
Reference in New Issue
Block a user