## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 7; 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 %global forgeurl https://github.com/swharden/pyABF Name: python-pyABF Version: 2.3.8 Release: %autorelease Summary: Python library for reading files in Axon Binary Format %global tag %{version} %forgemeta # SPDX License: MIT URL: https://swharden.com/pyabf Source: %forgesource # python-pyABF: FTBFS on s390x (big-endian) # https://bugzilla.redhat.com/show_bug.cgi?id=2256818 # # It *may* be that the package works fine on big-endian architectures, but only # for big-endian data files. Without further investigation, it’s probably best # not to offer the package to big-endian users. ExcludeArch: s390x BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) %global _description %{expand: pyABF provides a Python interface to electrophysiology files in the Axon Binary Format (ABF). pyABF supports Python 3 and does not use obscure libraries (just numpy and matplotlib). pyABF supports reading ABF1 and ABF2 files and can write ABF1 files.} %description %_description %package -n python3-pyABF Summary: %{summary} %description -n python3-pyABF %_description %prep %forgeautosetup -p1 # `pytest` is listed as runtime requirement, but it's only needed for # running te tests. Remove it from `setup.py` sed -i '/pytest/ d' src/setup.py %generate_buildrequires cd src/ %pyproject_buildrequires %build cd src/ %pyproject_wheel %install cd src/ %pyproject_install %pyproject_save_files -l pyabf %check %pytest -v --runslow %files -n python3-pyABF -f %{pyproject_files} %doc README.* %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 2.3.8-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 08 2024 Python Maint - 2.3.8-6 - Rebuilt for Python 3.13 * Sun May 19 2024 Sandro - 2.3.8-5 - Make base package noarch * Sun May 19 2024 Sandro - 2.3.8-4 - Migrate to SPDX license (no change) * Sat May 18 2024 Sandro - 2.3.8-3 - Add Packit config * Sat May 18 2024 Sandro - 2.3.8-1 - Update to 2.3.8 * Fri Jan 26 2024 Fedora Release Engineering - 2.3.6-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 2.3.6-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jan 04 2024 Benjamin A. Beasley - 2.3.6-9 - Run tests on all architectures; exclude big-endian (s390x) for now due to failures * Thu Jan 04 2024 Benjamin A. Beasley - 2.3.6-8 - Assert that a license file is present in the .dist-info directory * Fri Jul 21 2023 Fedora Release Engineering - 2.3.6-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 27 2023 Python Maint - 2.3.6-5 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 2.3.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Sep 28 2022 Benjamin A. Beasley - 2.3.6-3 - Fix broken changelog (fix RHBZ#2129936) * Mon Sep 12 2022 Vanessa Kris 2.3.6-1 - removed patch * Mon Sep 12 2022 Vanessa Kris 2.3.5-4 - added patch * Mon Sep 12 2022 Vanessa Kris 2.3.5-3 - added patch 9cd568066b5ff8d6079e2d8cf8af388066cc9b79 * Mon Sep 12 2022 Vanessa_kris 2.3.5-2 - f37 build * Mon Sep 12 2022 Vanessa_kris 2.3.5-1 - initial build ## END: Generated by rpmautospec