diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-05 12:29:38 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 12:29:38 +0000 |
commit | e909e031daddfd64ebef80e66ad5abc50ca1204e (patch) | |
tree | d14e01f56445368bca455bccfc8eae8b8cb547d2 | |
parent | 0d00adbb83bc0127f8c4b72ec0e148c48ea0d72a (diff) |
automatic import of python-bgzipopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-bgzip.spec | 177 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 179 insertions, 0 deletions
@@ -0,0 +1 @@ +/bgzip-0.4.0.tar.gz diff --git a/python-bgzip.spec b/python-bgzip.spec new file mode 100644 index 0000000..c9d626f --- /dev/null +++ b/python-bgzip.spec @@ -0,0 +1,177 @@ +%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). + +  + +%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). + +  + +%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). + +  + +%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 <Python_Bot@openeuler.org> - 0.4.0-1 +- Package Spec generated @@ -0,0 +1 @@ +5eef27eb10462423feec6887307f43db bgzip-0.4.0.tar.gz |