## START: Set by rpmautospec ## (rpmautospec version 0.6.3) ## 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 pybbi Name: python-%{pypi_name} Version: 0.4.0 Release: %{autorelease} Summary: Python bindings to the UCSC source for Big Binary Indexed (bigWig/bigBed) files %global forgeurl https://github.com/nvictus/pybbi %global tag v%{version} %forgemeta #SPDX License: MIT URL: %forgeurl Source: %forgesource BuildRequires: gcc BuildRequires: python3-devel BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(libpng) %global _description %{expand: Python interface to Jim Kent's Big Binary Indexed file (BBI) library from the UCSC Genome Browser source tree using Cython. This provides read-level access to local and remote bigWig and bigBed files but no write capabilitites. The main feature is fast retrieval of range queries into numpy arrays.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} Recommends: python3dist(pandas) %description -n python3-%{pypi_name} %_description %prep %forgeautosetup -p1 # Fix requires sed -i 's/oldest-supported-numpy/numpy/' pyproject.toml %generate_buildrequires %pyproject_buildrequires -x test -w # Don't re-invent the wheel # The wheel is already built in %%genrate_buildrequires #%%build %install %pyproject_install %pyproject_save_files -l bbi %check # Skip tests requiring network k="${k-}${k+ and }not test_sigs" k="${k-}${k+ and }not test_aws_403_redirect" k="${k-}${k+ and }not test_chromsizes" k="${k-}${k+ and }not test_fetch_remote" %pytest -v --import-mode=importlib ${k+-k }"${k-}" %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.md CITATION.cff %changelog ## START: Generated by rpmautospec * Wed May 22 2024 Sandro - 0.4.0-1 - Initial package ## END: Generated by rpmautospec