## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; 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 # include/oligTm.h and src/oligoTm.c are BSD-4-Clause License: MIT AND BSD-4-Clause URL: %forgeurl Source: %forgesource # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} BuildRequires: gcc BuildRequires: python3-devel BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(libpng) # for %%pyproject_buildrequires -p: BuildRequires: pyproject-rpm-macros >= 1.15 %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 -p %build %pyproject_wheel %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 Oct 02 2024 Karolina Surma - 0.4.0-4 - Read the runtime depedencies from pyproject.toml [project] directly * Fri Jul 19 2024 Fedora Release Engineering - 0.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Tue Jun 18 2024 Sandro - 0.4.0-2 - Exclude i686 * Tue Jun 18 2024 Sandro - 0.4.0-1 - Initial release (RHBZ#2282778) ## END: Generated by rpmautospec