## START: Set by rpmautospec ## (rpmautospec version 0.3.8) ## 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 %global pypi_name bioframe %global forgeurl https://github.com/open2c/bioframe %bcond tests 1 Name: python-%{pypi_name} Version: 0.6.0 Release: %{autorelease} Summary: Operations and utilities for Genomic Interval Dataframes %forgemeta # SPDX License: MIT URL: %forgeurl Source: %forgesource BuildArch: noarch BuildRequires: python3-devel %if %{with tests} BuildRequires: python3-pytest %endif %global _description %{expand: Bioframe enables flexible and scalable operations on genomic interval dataframes in Python. Bioframe is built directly on top of Pandas. Bioframe provides: - A variety of genomic interval operations that work directly on dataframes. - Operations for special classes of genomic intervals, including chromosome arms and fixed-size bins. - Conveniences for diverse tabular genomic data formats and loading genome assembly summary information. Bioframe is an Affiliated Project of NumFOCUS.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %_description %prep %forgeautosetup -p1 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l %{pypi_name} %check %pyproject_check_import %if %{with tests} # Disable tests requiring network k="${k-}${k+ and }not test_fetch" # Disable failing tests (probably due to Python 3.12) k="${k-}${k+ and }not test_make_chromarms" k="${k-}${k+ and }not test_trim" k="${k-}${k+ and }not test_assign_view" %pytest -v ${k+-k }"${k-}" %endif %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.md CONTRIBUTING.md CITATION.cff CHANGES.md %changelog ## START: Generated by rpmautospec * Sun Jan 07 2024 Sandro - 0.6.0-1 - Initial package ## END: Generated by rpmautospec