diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-dlhub-sdk.spec | 83 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 85 insertions, 0 deletions
@@ -0,0 +1 @@ +/dlhub_sdk-2.1.0.tar.gz diff --git a/python-dlhub-sdk.spec b/python-dlhub-sdk.spec new file mode 100644 index 0000000..144edff --- /dev/null +++ b/python-dlhub-sdk.spec @@ -0,0 +1,83 @@ +%global _empty_manifest_terminate_build 0 +Name: python-dlhub-sdk +Version: 2.1.0 +Release: 1 +Summary: Python interface and utilities for DLHub +License: Apache License, Version 2.0 +URL: https://github.com/DLHub-Argonne/dlhub_sdk +Source0: https://mirrors.aliyun.com/pypi/web/packages/cb/c7/382dbf077f09726022c44ee44a7b2d9dafe34ae9eb4add0b2f447259084f/dlhub_sdk-2.1.0.tar.gz +BuildArch: noarch + +Requires: python3-globus-sdk +Requires: python3-requests +Requires: python3-mdf-toolbox +Requires: python3-jsonschema +Requires: python3-globus-compute-sdk +Requires: python3-pydantic +Requires: python3-numpy +Requires: python3-PyGithub + +%description +DLHub SDK contains a Python interface to the Data and Learning Hub for Science (DLHub). These interfaces include functions for quickly describing a model in the correct schema for DLHub, and discovering or using models that other scientists have published. + + +%package -n python3-dlhub-sdk +Summary: Python interface and utilities for DLHub +Provides: python-dlhub-sdk +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-dlhub-sdk +DLHub SDK contains a Python interface to the Data and Learning Hub for Science (DLHub). These interfaces include functions for quickly describing a model in the correct schema for DLHub, and discovering or using models that other scientists have published. + + +%package help +Summary: Development documents and examples for dlhub-sdk +Provides: python3-dlhub-sdk-doc +%description help +DLHub SDK contains a Python interface to the Data and Learning Hub for Science (DLHub). These interfaces include functions for quickly describing a model in the correct schema for DLHub, and discovering or using models that other scientists have published. + + +%prep +%autosetup -n dlhub_sdk-2.1.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-dlhub-sdk -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri Jun 09 2023 Python_Bot <Python_Bot@openeuler.org> - 2.1.0-1 +- Package Spec generated @@ -0,0 +1 @@ +e5bd8e423fa88d24a875c77adebebf23 dlhub_sdk-2.1.0.tar.gz |