82 lines
2.2 KiB
RPMSpec
82 lines
2.2 KiB
RPMSpec
Name: python-pymapvbvd
|
|
Version: 0.5.6
|
|
Release: %autorelease
|
|
Summary: Python twix file reader
|
|
|
|
# The entire source is MIT, except:
|
|
# - The script versioneer.py and the file pymapvbvd/_version.py, which was
|
|
# generated by it, are both Unlicense.
|
|
License: MIT AND Unlicense
|
|
URL: https://github.com/wtclarke/pymapvbvd
|
|
Source0: %{pypi_source pyMapVBVD}
|
|
# Generated with Source2: ./get_test_data.sh %%{version}
|
|
Source1: pyMapVBVD-test-data.tar.xz
|
|
Source2: get_test_data.sh
|
|
|
|
BuildArch: noarch
|
|
# PyMapVBVD assumes the platform is little-endian
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2225518
|
|
ExcludeArch: s390x
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
%global common_description %{expand:
|
|
Python port of the Matlab mapVBVD tool for reading Siemens raw data 'twix'
|
|
(.dat) files.}
|
|
|
|
%description %{common_description}
|
|
|
|
|
|
%package -n python3-pymapvbvd
|
|
Summary: %{summary}
|
|
|
|
# Provides for the actual importable module name, which is unfortunately
|
|
# different from the PyPI package name (pyMapVBVD).
|
|
%py_provides python3-mapvbvd
|
|
|
|
# The generated _version.py has the same license as python3dist(versioneer),
|
|
# but we do not consider it to be bundled from Versioneer.
|
|
#
|
|
# The system versioneer is too old for the generated _version.py to have the
|
|
# get_version() function, and too old for the License tag to be accurate. We
|
|
# must use the bundled, amalgamated versioneer.py to generate _version.py.
|
|
#
|
|
# While versioneer.py is a bundled copy of python3dist(versioneer) = 0.28, it
|
|
# is not included in the binary RPMs, so we still do not treat it as bundled,
|
|
# and there is no corresponding virtual Provides.
|
|
|
|
%description -n python3-pymapvbvd %{common_description}
|
|
|
|
|
|
%prep
|
|
%autosetup -n pyMapVBVD-%{version} -p1
|
|
%setup -q -T -D -a 1 -c -n pyMapVBVD-%{version}
|
|
|
|
|
|
%generate_buildrequires
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
|
|
export PYTHONPATH="${PWD}"
|
|
%pyproject_buildrequires -x tests
|
|
|
|
|
|
%build
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
|
|
export PYTHONPATH="${PWD}"
|
|
%pyproject_wheel
|
|
|
|
|
|
%install
|
|
%pyproject_install
|
|
%pyproject_save_files -l mapvbvd
|
|
|
|
|
|
%check
|
|
%pytest -v
|
|
|
|
|
|
%files -n python3-pymapvbvd -f %{pyproject_files}
|
|
%doc README.md
|
|
|
|
|
|
%changelog
|
|
%autochangelog
|