## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 15; 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 # upstream has moved to pytest but not made a release yet. # For the time being, it uses nose, so we disable tests by default %bcond_with tests %global forgeurl https://github.com/frejanordsiek/hdf5storage %global _description %{expand: 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. All of this is done without pickling data. Pickling is bad for security because it allows arbitrary code to be executed in the interpreter. One wants to be able to read possibly HDF5 and MAT files from untrusted sources, so pickling is avoided in this package. The package's documetation is found at http://pythonhosted.org/hdf5storage/ The package's source code is found at https://github.com/frejanordsiek/hdf5storage} Name: python-hdf5storage Version: 0.1.18 %global tag %{version} Release: %{autorelease} Summary: Read/write Python types to/from HDF5 files, including MATLAB v7.3 MAT files %forgemeta # Automatically converted from old format: BSD - review is highly recommended. License: LicenseRef-Callaway-BSD URL: %forgeurl Source0: %forgesource BuildArch: noarch %description %_description %package -n python3-hdf5storage Summary: %{summary} BuildRequires: python3-devel %if %{with tests} BuildRequires: %{py3_dist pytest} BuildRequires: %{py3_dist nose} %endif %description -n python3-hdf5storage %_description %prep %forgesetup # Comment out to remove /usr/bin/env shebangs # Can use something similar to correct/remove /usr/bin/python shebangs also # find . -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/env.*$/ d' {} 2>/dev/null ';' %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %pyproject_save_files hdf5storage %check %if %{with tests} %{pytest} %endif %pyproject_check_import %files -n python3-hdf5storage -f %{pyproject_files} %doc README.rst %changelog ## START: Generated by rpmautospec * Wed Sep 04 2024 Miroslav Suchý - 0.1.18-15 - convert license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 0.1.18-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 08 2024 Python Maint - 0.1.18-13 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 0.1.18-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.1.18-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.1.18-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jul 12 2023 Python Maint - 0.1.18-9 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.1.18-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.1.18-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 14 2022 Python Maint - 0.1.18-6 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.1.18-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Nov 18 2021 Ankur Sinha (Ankur Sinha Gmail) - 0.1.18-4 - feat: initial import * Thu Nov 18 2021 Ankur Sinha (Ankur Sinha Gmail) - 0.1.18-3 - feat: enable import test * Thu Nov 18 2021 Ankur Sinha (Ankur Sinha Gmail) - 0.1.18-2 - feat: drop doc subpackage * Thu Nov 18 2021 Ankur Sinha (Ankur Sinha Gmail) - 0.1.18-1 - feat: ready for review ## END: Generated by rpmautospec