diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-12 04:44:58 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-12 04:44:58 +0000 |
| commit | 28725d70f6a8e2e0c5e549db0889f94885968bf5 (patch) | |
| tree | fea7a38dd9b47d077e8a40dac39a89f5f58830e6 /python-biothings-client.spec | |
| parent | 452165d1bcfebd89b9bdc6d47339bb7fd0952995 (diff) | |
automatic import of python-biothings-client
Diffstat (limited to 'python-biothings-client.spec')
| -rw-r--r-- | python-biothings-client.spec | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/python-biothings-client.spec b/python-biothings-client.spec new file mode 100644 index 0000000..f753410 --- /dev/null +++ b/python-biothings-client.spec @@ -0,0 +1,97 @@ +%global _empty_manifest_terminate_build 0 +Name: python-biothings-client +Version: 0.3.0 +Release: 1 +Summary: Python Client for BioThings API services. +License: BSD-3-Clause +URL: https://pypi.org/project/biothings-client/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/49/58/0c71122374789b288a6c60c98dd84996242508f11e66dca9dd6f2936f8df/biothings_client-0.3.0.tar.gz +BuildArch: noarch + +Requires: python3-requests +Requires: python3-requests-cache +Requires: python3-pandas +Requires: python3-PyLD + +%description +*biothings_client* is an easy-to-use Python wrapper to access any Biothings.api_ +-based backend service. Currently, the following clients are available: + * gene - The client for MyGene.Info_, which provides access to gene objects. + * variant - The client MyVariant.Info_, which provides access to genetic variant objects. + * chem - The client for MyChem.Info_, which provides access to chemical/drug objects. + * disease - The client for MyDisease.Info_, which provides access to disease objects. + * geneset - The client for MyGeneset.Info_, which provides access to geneset/pathway objects. + * taxon - The client for t.biothings.io_, which provides access to taxon objects. + +%package -n python3-biothings-client +Summary: Python Client for BioThings API services. +Provides: python-biothings-client +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-biothings-client +*biothings_client* is an easy-to-use Python wrapper to access any Biothings.api_ +-based backend service. Currently, the following clients are available: + * gene - The client for MyGene.Info_, which provides access to gene objects. + * variant - The client MyVariant.Info_, which provides access to genetic variant objects. + * chem - The client for MyChem.Info_, which provides access to chemical/drug objects. + * disease - The client for MyDisease.Info_, which provides access to disease objects. + * geneset - The client for MyGeneset.Info_, which provides access to geneset/pathway objects. + * taxon - The client for t.biothings.io_, which provides access to taxon objects. + +%package help +Summary: Development documents and examples for biothings-client +Provides: python3-biothings-client-doc +%description help +*biothings_client* is an easy-to-use Python wrapper to access any Biothings.api_ +-based backend service. Currently, the following clients are available: + * gene - The client for MyGene.Info_, which provides access to gene objects. + * variant - The client MyVariant.Info_, which provides access to genetic variant objects. + * chem - The client for MyChem.Info_, which provides access to chemical/drug objects. + * disease - The client for MyDisease.Info_, which provides access to disease objects. + * geneset - The client for MyGeneset.Info_, which provides access to geneset/pathway objects. + * taxon - The client for t.biothings.io_, which provides access to taxon objects. + +%prep +%autosetup -n biothings-client-0.3.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-biothings-client -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.0-1 +- Package Spec generated |
