Compare commits
5 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f78cfa9db2 | ||
|
|
9057ef303e | ||
|
|
b7c7666321 | ||
|
|
9d25fc900d | ||
|
|
a7154955f9 |
2 changed files with 9 additions and 14 deletions
|
|
@ -4,6 +4,6 @@
|
||||||
addFilter(r" spelling-error \('(dat|twix)',")
|
addFilter(r" spelling-error \('(dat|twix)',")
|
||||||
# This source cannot be a URL because we must use a script to download its
|
# This source cannot be a URL because we must use a script to download its
|
||||||
# contents from git-lfs.
|
# contents from git-lfs.
|
||||||
addFilter(r" invalid-url Source[0-9]+: pyMapVBVD-test-data\.tar\.zst$")
|
addFilter(r" invalid-url Source[0-9]+: pymapvbvd-test-data\.tar\.zst$")
|
||||||
# Bogus; it is a perfectly fine zstandard file.
|
# Bogus; it is a perfectly fine zstandard file.
|
||||||
addFilter(r" inconsistent-file-extension pyMapVBVD-test-data\.tar\.zst$")
|
addFilter(r" inconsistent-file-extension pymapvbvd-test-data\.tar\.zst$")
|
||||||
|
|
|
||||||
|
|
@ -14,13 +14,15 @@ Source0: %{pypi_source pymapvbvd}
|
||||||
Source1: pymapvbvd-test-data.tar.zst
|
Source1: pymapvbvd-test-data.tar.zst
|
||||||
Source2: get_test_data.sh
|
Source2: get_test_data.sh
|
||||||
|
|
||||||
|
BuildSystem: pyproject
|
||||||
|
BuildOption(generate_buildrequires): -x tests
|
||||||
|
BuildOption(install): -l mapvbvd
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# PyMapVBVD assumes the platform is little-endian
|
# PyMapVBVD assumes the platform is little-endian
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=2225518
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2225518
|
||||||
ExcludeArch: s390x
|
ExcludeArch: s390x
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
|
||||||
|
|
||||||
%global common_description %{expand:
|
%global common_description %{expand:
|
||||||
Python port of the Matlab mapVBVD tool for reading Siemens raw data 'twix'
|
Python port of the Matlab mapVBVD tool for reading Siemens raw data 'twix'
|
||||||
(.dat) files.}
|
(.dat) files.}
|
||||||
|
|
@ -49,22 +51,15 @@ Summary: %{summary}
|
||||||
rm -v versioneer.py
|
rm -v versioneer.py
|
||||||
|
|
||||||
|
|
||||||
%generate_buildrequires
|
%generate_buildrequires -p
|
||||||
export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
|
export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
|
||||||
%pyproject_buildrequires -x tests
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build -p
|
||||||
export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
|
export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
|
||||||
%pyproject_wheel
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
%check -a
|
||||||
%pyproject_install
|
|
||||||
%pyproject_save_files -l mapvbvd
|
|
||||||
|
|
||||||
|
|
||||||
%check
|
|
||||||
%pytest -v
|
%pytest -v
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue