# Created by pyp2rpm-3.3.2 %global pypi_name pysam Name: python-%{pypi_name} Version: 0.16.0.1 Release: 1%{?dist} 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.9 Provides: bundled(htslib) = 1.9 Provides: bundled(bcftools) = 1.9 %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} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build # generate html docs PYTHONPATH=${PWD} 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}/__pycache__ %{python3_sitearch}/%{pypi_name}-%{version}-py?.?.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 * Sun Nov 01 2020 David - 0.16.0.1-1 - Initial package.