Compare commits
5 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d90fd702c2 | ||
|
|
45d8b00a4e | ||
|
|
0d84d5efd1 | ||
|
|
4279bf5820 | ||
|
|
13a8099fba |
5 changed files with 37 additions and 39 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -6,8 +6,3 @@
|
||||||
/pyMapVBVD-0.5.5-test-data.tar.xz
|
/pyMapVBVD-0.5.5-test-data.tar.xz
|
||||||
/pyMapVBVD-test-data.tar.xz
|
/pyMapVBVD-test-data.tar.xz
|
||||||
/pyMapVBVD-0.5.6.tar.gz
|
/pyMapVBVD-0.5.6.tar.gz
|
||||||
/pyMapVBVD-0.5.7.tar.gz
|
|
||||||
/pyMapVBVD-test-data.tar.zst
|
|
||||||
/pymapvbvd-0.6.0.tar.gz
|
|
||||||
/pymapvbvd-test-data.tar.zst
|
|
||||||
/pymapvbvd-0.6.1.tar.gz
|
|
||||||
|
|
|
||||||
|
|
@ -11,13 +11,13 @@ Usage: $1 VERSION
|
||||||
|
|
||||||
Generate a source archive containing the test data files for pyMapVBVD that are
|
Generate a source archive containing the test data files for pyMapVBVD that are
|
||||||
tracked in git LFS and are not included in the default source archive. The
|
tracked in git LFS and are not included in the default source archive. The
|
||||||
result will be named pymapvbvd-test-data.tar.zst and will be written
|
result will be named pyMapVBVD-test-data.tar.xz and will be written
|
||||||
into the current working directory.
|
into the current working directory.
|
||||||
|
|
||||||
The script attempts to produce a reproducible archive to avoid uploading
|
The script attempts to produce a reproducible archive to avoid uploading
|
||||||
near-duplicate archives to the lookaside cache when the test data does not
|
near-duplicate archives to the lookaside cache when the test data does not
|
||||||
change from one version to the next. Accordingly, the top-level directory
|
change from one version to the next. Accordingly, the top-level directory
|
||||||
pymapvbvd-\${VERSION}/ is omitted from the archived paths.
|
pyMapVBVD-\${VERSION}/ is omitted from the archived paths.
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -45,8 +45,8 @@ GITDIR="$(echo "${FORGEURL}" | sed -r 's@.*/@@')"
|
||||||
|
|
||||||
#SOURCE0="${FORGEURL}/archive/${VERSION}/pdfminer.six-${VERSION}.tar.gz"
|
#SOURCE0="${FORGEURL}/archive/${VERSION}/pdfminer.six-${VERSION}.tar.gz"
|
||||||
#TARNAME="$(basename "${SOURCE0}")"
|
#TARNAME="$(basename "${SOURCE0}")"
|
||||||
TARDIR="pymapvbvd-${VERSION}"
|
TARDIR="pyMapVBVD-${VERSION}"
|
||||||
NEWTAR='pymapvbvd-test-data.tar.zst'
|
NEWTAR='pyMapVBVD-test-data.tar.xz'
|
||||||
|
|
||||||
SAVEDIR="${PWD}"
|
SAVEDIR="${PWD}"
|
||||||
XDIR="$(mktemp -d)"
|
XDIR="$(mktemp -d)"
|
||||||
|
|
@ -79,7 +79,7 @@ TZ=UTC LC_ALL=C tar \
|
||||||
--pax-option='delete=atime,delete=ctime' \
|
--pax-option='delete=atime,delete=ctime' \
|
||||||
--clamp-mtime --mtime='@0' \
|
--clamp-mtime --mtime='@0' \
|
||||||
. |
|
. |
|
||||||
zstdmt --ultra -22 > "${XDIR}/${NEWTAR}"
|
xz -9e > "${XDIR}/${NEWTAR}"
|
||||||
|
|
||||||
cd "${SAVEDIR}"
|
cd "${SAVEDIR}"
|
||||||
mv -v "${XDIR}/${NEWTAR}" .
|
mv -v "${XDIR}/${NEWTAR}" .
|
||||||
|
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
# Not real spelling errors.
|
|
||||||
# - "dat" is from the extension ".dat"
|
|
||||||
# - "twix" is a data format
|
|
||||||
addFilter(r" spelling-error \('(dat|twix)',")
|
|
||||||
# This source cannot be a URL because we must use a script to download its
|
|
||||||
# contents from git-lfs.
|
|
||||||
addFilter(r" invalid-url Source[0-9]+: pymapvbvd-test-data\.tar\.zst$")
|
|
||||||
# Bogus; it is a perfectly fine zstandard file.
|
|
||||||
addFilter(r" inconsistent-file-extension pymapvbvd-test-data\.tar\.zst$")
|
|
||||||
|
|
@ -1,28 +1,25 @@
|
||||||
Name: python-pymapvbvd
|
Name: python-pymapvbvd
|
||||||
Version: 0.6.1
|
Version: 0.5.6
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
Summary: Python twix file reader
|
Summary: Python twix file reader
|
||||||
|
|
||||||
# The entire source is MIT, except:
|
# The entire source is MIT, except:
|
||||||
# - The file pymapvbvd/_version.py, which is generated by python-versioneer,
|
# - The script versioneer.py and the file pymapvbvd/_version.py, which was
|
||||||
# shares its license (Unlicense, for recent versions of Versioneer); see
|
# generated by it, are both Unlicense.
|
||||||
# also versioneer.py (which is removed in %%prep)
|
|
||||||
License: MIT AND Unlicense
|
License: MIT AND Unlicense
|
||||||
URL: https://github.com/wtclarke/pymapvbvd
|
URL: https://github.com/wtclarke/pymapvbvd
|
||||||
Source0: %{pypi_source pymapvbvd}
|
Source0: %{pypi_source pyMapVBVD}
|
||||||
# Generated with Source2: ./get_test_data.sh %%{version}
|
# Generated with Source2: ./get_test_data.sh %%{version}
|
||||||
Source1: pymapvbvd-test-data.tar.zst
|
Source1: pyMapVBVD-test-data.tar.xz
|
||||||
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.}
|
||||||
|
|
@ -39,31 +36,46 @@ Summary: %{summary}
|
||||||
|
|
||||||
# The generated _version.py has the same license as python3dist(versioneer),
|
# The generated _version.py has the same license as python3dist(versioneer),
|
||||||
# but we do not consider it to be bundled from 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}
|
%description -n python3-pymapvbvd %{common_description}
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n pymapvbvd-%{version} -p1
|
%autosetup -n pyMapVBVD-%{version} -p1
|
||||||
%setup -q -T -D -a 1 -c -n pymapvbvd-%{version}
|
%setup -q -T -D -a 1 -c -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 -p
|
%generate_buildrequires
|
||||||
export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
|
export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
|
||||||
|
export PYTHONPATH="${PWD}"
|
||||||
|
%pyproject_buildrequires -x tests
|
||||||
|
|
||||||
|
|
||||||
%build -p
|
%build
|
||||||
export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
|
export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
|
||||||
|
export PYTHONPATH="${PWD}"
|
||||||
|
%pyproject_wheel
|
||||||
|
|
||||||
|
|
||||||
%check -a
|
%install
|
||||||
|
%pyproject_install
|
||||||
|
%pyproject_save_files mapvbvd
|
||||||
|
|
||||||
|
|
||||||
|
%check
|
||||||
%pytest -v
|
%pytest -v
|
||||||
|
|
||||||
|
|
||||||
%files -n python3-pymapvbvd -f %{pyproject_files}
|
%files -n python3-pymapvbvd -f %{pyproject_files}
|
||||||
|
# pyproject_files handles LICENSE; verify with “rpm -qL -p …”
|
||||||
%doc README.md
|
%doc README.md
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
4
sources
4
sources
|
|
@ -1,2 +1,2 @@
|
||||||
SHA512 (pymapvbvd-0.6.1.tar.gz) = b1c12e8f4c261522858feea9c66b5c174b37203a73a54aac8e2bbfb3ab7b1933ba44c9c172aa9cf7a97dba0c4554d99042c042fef9b42f73e912f747ceac1d55
|
SHA512 (pyMapVBVD-0.5.6.tar.gz) = 72f22bf9c8fe8d8e4e4bc476312bacb83a434861b1f6ddd6ae0bf4a834da9a489547c5a90c49aeaf54dcd64d7695bb013019b413c828e7404c71ec15eb13699f
|
||||||
SHA512 (pymapvbvd-test-data.tar.zst) = 638be0a8ad0e0876b13948d657bcf921e18938e964215c0c61b9deb6eb5f3abee449a0391238e8e60ffef55c4ca3b9c2906f4c4fd3655e23eed3567279e72323
|
SHA512 (pyMapVBVD-test-data.tar.xz) = 9fa0530f68b02a8ff26fad1c463db217260c2f31a039b96f30a1fa6bb8b044ab8304edfd06abcaf5e9980ed355f29f0339c6e87e8dbddd67ae85457f384d45dd
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue