## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %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 # Created by pyp2rpm-3.3.2 %global pypi_name pysam Name: python-%{pypi_name} Version: 0.19.1 Release: %autorelease Summary: pysam License: MIT URL: https://github.com/pysam-developers/pysam Source0: %{pypi_source} BuildRequires: python3-devel BuildRequires: python3dist(setuptools) BuildRequires: python3dist(sphinx) BuildRequires: python3dist(cython) BuildRequires: gcc BuildRequires: zlib-devel BuildRequires: bzip2-devel BuildRequires: xz-devel %description pysam - a python module for reading, manipulating and writing genomic data sets.pysam is a lightweight wrapper of the htslib C-API and provides facilities to read and write SAM/BAM/VCF/BCF/BED/GFF/GTF/FASTA/FASTQ files as well as access to the command line functionality of the samtools and bcftools packages. The module supports compression and random access through indexing. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Provides: bundled(samtools) = 1.15.1 Provides: bundled(htslib) = 1.15.1 Provides: bundled(bcftools) = 1.15.1 %description -n python3-%{pypi_name} pysam - a python module for reading, manipulating and writing genomic data sets.pysam is a lightweight wrapper of the htslib C-API and provides facilities to read and write SAM/BAM/VCF/BCF/BED/GFF/GTF/FASTA/FASTQ files as well as access to the command line functionality of the samtools and bcftools packages. The module supports compression and random access through indexing. %package -n python3-%{pypi_name}-devel Summary: %{summary} Requires: python3-%{pypi_name}%{?_isa} = %{version}-%{release} %description -n python3-%{pypi_name}-devel Development files for pysam %package -n python-%{pypi_name}-doc Summary: pysam documentation BuildArch: noarch %description -n python-%{pypi_name}-doc Documentation for pysam %prep %autosetup -n %{pypi_name}-%{version} -p 1 # Remove bundled egg-info rm -rf %{pypi_name}.egg-info # Remove pre-generated files rm $(grep -rl '/\* Generated by Cython') %build FORCE_CYTHON=1 %py3_build # generate html docs PYTHONPATH=$(echo $PWD/build/lib.linux*) sphinx-build-3 doc html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %install %py3_install %files -n python3-%{pypi_name} %doc README.rst %license COPYING %dir %{python3_sitearch}/%{pypi_name} %{python3_sitearch}/%{pypi_name}/*so %{python3_sitearch}/%{pypi_name}/*py %{python3_sitearch}/%{pypi_name}/*pyi %{python3_sitearch}/%{pypi_name}/py.typed %{python3_sitearch}/%{pypi_name}/__pycache__ %{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %files -n python3-%{pypi_name}-devel %{python3_sitearch}/%{pypi_name}/*h %{python3_sitearch}/%{pypi_name}/*pxd %{python3_sitearch}/%{pypi_name}/include %files -n python-%{pypi_name}-doc %doc html %changelog * Fri Jan 20 2023 Fedora Release Engineering 0.19.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Aug 30 2022 David Bold 0.19.1-3 - update to 1.19.1 * Fri Jul 22 2022 Fedora Release Engineering 0.19.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jun 23 2022 David Bold - 0.19.1-1 - Update to 0.19.1 * Wed Jun 22 2022 Lumír Balhar - 0.19.0-4 - Fix compatibility with the latest setuptools * Mon Jun 13 2022 Python Maint - 0.19.0-3 - Rebuilt for Python 3.11 * Tue Apr 05 2022 David Bold - 0.19.0-1 - Update to 0.19.0 * Fri Jan 21 2022 Fedora Release Engineering - 0.18.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Nov 21 2021 David Bold - 0.18.0-1 - Update to 0.18.0 * Wed Oct 06 2021 David Bold - 0.17.0-1 - Update to 0.17.0 * Fri Jul 23 2021 Fedora Release Engineering - 0.16.0.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sat Jun 05 2021 David - 0.16.0.1-5 - Add patch to fix building with sphinx 4.0.2 * Sat Jun 05 2021 David - 0.16.0.1-4 - Add patch to fix building with sphinx 4 * Fri Jun 04 2021 Python Maint - 0.16.0.1-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.16.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Nov 01 2020 David - 0.16.0.1-1 - Initial package.