From 6c9e9b216de171973933e6c006a4b21dd12a4f76 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 11 Apr 2023 03:22:17 +0000 Subject: automatic import of python-pyfaidx --- .gitignore | 1 + python-pyfaidx.spec | 101 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 103 insertions(+) create mode 100644 python-pyfaidx.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..d2df119 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/pyfaidx-0.7.2.1.tar.gz diff --git a/python-pyfaidx.spec b/python-pyfaidx.spec new file mode 100644 index 0000000..8a727ef --- /dev/null +++ b/python-pyfaidx.spec @@ -0,0 +1,101 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pyfaidx +Version: 0.7.2.1 +Release: 1 +Summary: pyfaidx: efficient pythonic random access to fasta subsequences +License: BSD-3-Clause +URL: https://github.com/mdshw5/pyfaidx/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/41/f0/3790aa6676987db69f7c7eeb01096d7836196f3c10d025a2e038f9e84728/pyfaidx-0.7.2.1.tar.gz +BuildArch: noarch + +Requires: python3-six +Requires: python3-setuptools + +%description +Samtools provides a function "faidx" (FAsta InDeX), which creates a +small flat index file ".fai" allowing for fast random access to any +subsequence in the indexed FASTA file, while loading a minimal amount of the +file in to memory. This python module implements pure Python classes for +indexing, retrieval, and in-place modification of FASTA files using a samtools +compatible index. The pyfaidx module is API compatible with the `pygr`_ seqdb module. +A command-line script "`faidx`_" is installed alongside the pyfaidx module, and +facilitates complex manipulation of FASTA files without any programming knowledge. +If you use pyfaidx in your publication, please cite: +`Shirley MD`_, `Ma Z`_, `Pedersen B`_, `Wheelan S`_. `Efficient "pythonic" access to FASTA files using pyfaidx `_. PeerJ PrePrints 3:e1196. 2015. + +%package -n python3-pyfaidx +Summary: pyfaidx: efficient pythonic random access to fasta subsequences +Provides: python-pyfaidx +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pyfaidx +Samtools provides a function "faidx" (FAsta InDeX), which creates a +small flat index file ".fai" allowing for fast random access to any +subsequence in the indexed FASTA file, while loading a minimal amount of the +file in to memory. This python module implements pure Python classes for +indexing, retrieval, and in-place modification of FASTA files using a samtools +compatible index. The pyfaidx module is API compatible with the `pygr`_ seqdb module. +A command-line script "`faidx`_" is installed alongside the pyfaidx module, and +facilitates complex manipulation of FASTA files without any programming knowledge. +If you use pyfaidx in your publication, please cite: +`Shirley MD`_, `Ma Z`_, `Pedersen B`_, `Wheelan S`_. `Efficient "pythonic" access to FASTA files using pyfaidx `_. PeerJ PrePrints 3:e1196. 2015. + +%package help +Summary: Development documents and examples for pyfaidx +Provides: python3-pyfaidx-doc +%description help +Samtools provides a function "faidx" (FAsta InDeX), which creates a +small flat index file ".fai" allowing for fast random access to any +subsequence in the indexed FASTA file, while loading a minimal amount of the +file in to memory. This python module implements pure Python classes for +indexing, retrieval, and in-place modification of FASTA files using a samtools +compatible index. The pyfaidx module is API compatible with the `pygr`_ seqdb module. +A command-line script "`faidx`_" is installed alongside the pyfaidx module, and +facilitates complex manipulation of FASTA files without any programming knowledge. +If you use pyfaidx in your publication, please cite: +`Shirley MD`_, `Ma Z`_, `Pedersen B`_, `Wheelan S`_. `Efficient "pythonic" access to FASTA files using pyfaidx `_. PeerJ PrePrints 3:e1196. 2015. + +%prep +%autosetup -n pyfaidx-0.7.2.1 + +%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-pyfaidx -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot - 0.7.2.1-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..e6be5a8 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +b542742929cc4064bc6721209a90eb2e pyfaidx-0.7.2.1.tar.gz -- cgit v1.2.3