78 lines
2.6 KiB
RPMSpec
78 lines
2.6 KiB
RPMSpec
|
#
|
||
|
# spec file for package python-hdf5storage
|
||
|
#
|
||
|
# Copyright (c) 2024 SUSE LLC
|
||
|
#
|
||
|
# All modifications and additions to the file contributed by third parties
|
||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||
|
# upon. The license for this file, and modifications and additions to the
|
||
|
# file, is the same license as for the pristine package itself (unless the
|
||
|
# license for the pristine package is not an Open Source License, in which
|
||
|
# case the license is the MIT License). An "Open Source License" is a
|
||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||
|
# published by the Open Source Initiative.
|
||
|
|
||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||
|
#
|
||
|
|
||
|
|
||
|
Name: python-hdf5storage
|
||
|
Version: 0.1.19
|
||
|
Release: 0
|
||
|
Summary: Utilities to read/write HDF5 files, including MATLAB v7.3 MAT files
|
||
|
License: BSD-3-Clause
|
||
|
URL: https://github.com/frejanordsiek/hdf5storage
|
||
|
Source: https://files.pythonhosted.org/packages/source/h/hdf5storage/hdf5storage-%{version}.tar.gz
|
||
|
# PATCH-FIX-UPSTREAM nose-to-pytest.patch gh#frejanordsiek/hdf5storage#96 mcepl@suse.com, uses pytest instead of nose
|
||
|
Patch0: nose-to-pytest.patch
|
||
|
# PATCH-FIX-UPSTREAM hdf5storage-pr134-numpy2.patch gh#frejanordsiek/hdf5storage#135 (backport to 0.1)
|
||
|
Patch1: hdf5storage-pr134-numpy2.patch
|
||
|
BuildRequires: %{python_module h5py >= 3.3}
|
||
|
BuildRequires: %{python_module numpy}
|
||
|
BuildRequires: %{python_module pip}
|
||
|
BuildRequires: %{python_module setuptools}
|
||
|
BuildRequires: %{python_module wheel}
|
||
|
BuildRequires: fdupes
|
||
|
BuildRequires: python-rpm-macros
|
||
|
# SECTION test requirements
|
||
|
BuildRequires: %{python_module pytest >= 6.0}
|
||
|
# I don't know how to do @pytest.mark.parametrize on class methods
|
||
|
BuildRequires: %{python_module parameterized}
|
||
|
BuildRequires: %{python_module scipy}
|
||
|
# /SECTION
|
||
|
Requires: python-h5py >= 3.3
|
||
|
Requires: python-numpy
|
||
|
Recommends: python-scipy
|
||
|
BuildArch: noarch
|
||
|
%python_subpackages
|
||
|
|
||
|
%description
|
||
|
This Python package provides high level utilities to read/write a
|
||
|
variety of Python types to/from HDF5 (Heirarchal Data Format) formatted
|
||
|
files. This package also provides support for MATLAB MAT v7.3 formatted
|
||
|
files, which are just HDF5 files with a different extension and some
|
||
|
extra meta-data.
|
||
|
|
||
|
%prep
|
||
|
%autosetup -p1 -n hdf5storage-%{version}
|
||
|
# fix end-of-line encoding
|
||
|
sed -i 's/\r$//' COPYING.txt
|
||
|
|
||
|
%build
|
||
|
%pyproject_wheel
|
||
|
|
||
|
%install
|
||
|
%pyproject_install
|
||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||
|
|
||
|
%check
|
||
|
%pytest
|
||
|
|
||
|
%files %{python_files}
|
||
|
%doc README.rst
|
||
|
%license COPYING.txt
|
||
|
%{python_sitelib}/hdf5storage/
|
||
|
%{python_sitelib}/hdf5storage-%{version}.dist-info
|
||
|
|
||
|
%changelog
|