## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-pymapvbvd Version: 0.5.5 Release: %autorelease Summary: Python twix file reader # The entire source is MIT, except: # - The file pymapvbvd/_version.py, which is generated by python-versioneer, # shares its license (Unlicense, for recent versions of Versioneer); see # also versioneer.py (which is removed in %%prep) License: MIT AND Unlicense URL: https://github.com/wtclarke/pymapvbvd Source0: %{pypi_source pyMapVBVD} # Generated with Source2: ./get_test_data.sh %%{version} Source1: pyMapVBVD-%{version}-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. %description -n python3-pymapvbvd %{common_description} %prep %autosetup -n pyMapVBVD-%{version} -p1 %setup -q -T -D -b 1 -n pyMapVBVD-%{version} # We can use the system versioneer to generate _version.py, and can remove the # bundled, amaglamated versioneer.py to indicate we aren’t using it. rm -v versioneer.py %generate_buildrequires export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}' %pyproject_buildrequires -x tests %build export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}' %pyproject_wheel %install %pyproject_install %pyproject_save_files mapvbvd %check %pytest -v %files -n python3-pymapvbvd -f %{pyproject_files} # pyproject_files handles LICENSE; verify with “rpm -qL -p …” %doc README.md %changelog * Tue Oct 10 2023 Benjamin A. Beasley - 0.5.5-1 - Update to 0.5.5 (close RHBZ#2243111) * Tue Jul 25 2023 Benjamin A. Beasley - 0.5.4-3 - Add mandatory ExcludeArch bug link * Mon Jul 24 2023 Benjamin A. Beasley - 0.5.4-2 - Drop versioneer conditionals and let the dist-git branches diverge * Mon Jul 24 2023 Benjamin A. Beasley - 0.5.4-1 - Update to 0.5.4 (close RHBZ#2221739) * Mon Jul 24 2023 Benjamin A. Beasley - 0.5.3-1 - Initial import