%global _empty_manifest_terminate_build 0 Name: python-bgzip Version: 0.4.0 Release: 1 Summary: Utilities working with blocked gzip streams. License: MIT URL: https://github.com/xbrianh/bgzip.git Source0: https://mirrors.nju.edu.cn/pypi/web/packages/28/fd/9c693ecdcfb16f9a0384feffa12423643ce25bf359007c830aaf94af0404/bgzip-0.4.0.tar.gz BuildArch: noarch %description # bgzip: block gzip streams _bgzip_ provides streams for block gzip files. Cython is used under the hood to bypass Python's GIL and provide fast, parallelized inflation/deflation. ``` with open("my_bgzipped_file.gz", "rb") as raw: with bgzip.BGZipReader(raw) as fh: data = fh.read(number_of_bytes) with open("my_bgzipped_file.gz", "wb") as raw: with bgzip.BGZipWriter(raw) as fh: fh.write(my_data) ``` ## Installation ``` pip install bgzip ``` #### Requirements bgzip requires [openmp](https://github.com/llvm/llvm-project/tree/master/openmp). On MacOS it can be installed with: ``` brew install llvm ``` ## Links Project home page [GitHub](https://github.com/xbrianh/bgzip) Package distribution [PyPI](https://pypi.org/project/bgzip/) ### Bugs Please report bugs, issues, feature requests, etc. on [GitHub](https://github.com/xbrianh/bgzip). ![](https://travis-ci.org/xbrianh/bgzip.svg?branch=master) ![](https://badge.fury.io/py/bgzip.svg) %package -n python3-bgzip Summary: Utilities working with blocked gzip streams. Provides: python-bgzip BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-bgzip # bgzip: block gzip streams _bgzip_ provides streams for block gzip files. Cython is used under the hood to bypass Python's GIL and provide fast, parallelized inflation/deflation. ``` with open("my_bgzipped_file.gz", "rb") as raw: with bgzip.BGZipReader(raw) as fh: data = fh.read(number_of_bytes) with open("my_bgzipped_file.gz", "wb") as raw: with bgzip.BGZipWriter(raw) as fh: fh.write(my_data) ``` ## Installation ``` pip install bgzip ``` #### Requirements bgzip requires [openmp](https://github.com/llvm/llvm-project/tree/master/openmp). On MacOS it can be installed with: ``` brew install llvm ``` ## Links Project home page [GitHub](https://github.com/xbrianh/bgzip) Package distribution [PyPI](https://pypi.org/project/bgzip/) ### Bugs Please report bugs, issues, feature requests, etc. on [GitHub](https://github.com/xbrianh/bgzip). ![](https://travis-ci.org/xbrianh/bgzip.svg?branch=master) ![](https://badge.fury.io/py/bgzip.svg) %package help Summary: Development documents and examples for bgzip Provides: python3-bgzip-doc %description help # bgzip: block gzip streams _bgzip_ provides streams for block gzip files. Cython is used under the hood to bypass Python's GIL and provide fast, parallelized inflation/deflation. ``` with open("my_bgzipped_file.gz", "rb") as raw: with bgzip.BGZipReader(raw) as fh: data = fh.read(number_of_bytes) with open("my_bgzipped_file.gz", "wb") as raw: with bgzip.BGZipWriter(raw) as fh: fh.write(my_data) ``` ## Installation ``` pip install bgzip ``` #### Requirements bgzip requires [openmp](https://github.com/llvm/llvm-project/tree/master/openmp). On MacOS it can be installed with: ``` brew install llvm ``` ## Links Project home page [GitHub](https://github.com/xbrianh/bgzip) Package distribution [PyPI](https://pypi.org/project/bgzip/) ### Bugs Please report bugs, issues, feature requests, etc. on [GitHub](https://github.com/xbrianh/bgzip). ![](https://travis-ci.org/xbrianh/bgzip.svg?branch=master) ![](https://badge.fury.io/py/bgzip.svg) %prep %autosetup -n bgzip-0.4.0 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-bgzip -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Fri May 05 2023 Python_Bot - 0.4.0-1 - Package Spec generated