diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-05 05:33:37 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 05:33:37 +0000 |
commit | 37f39d51a2a5731593ff8adbc998641769d7a77d (patch) | |
tree | 95d71a3fee60539440023cee1c4c933faa3c2151 | |
parent | 1ac649aac0bef4f3d47bd0077ab261ce16a1bcc9 (diff) |
automatic import of python-hubopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-hub.spec | 76 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 78 insertions, 0 deletions
@@ -0,0 +1 @@ +/hub-3.0.1.tar.gz diff --git a/python-hub.spec b/python-hub.spec new file mode 100644 index 0000000..ffb69c7 --- /dev/null +++ b/python-hub.spec @@ -0,0 +1,76 @@ +%global _empty_manifest_terminate_build 0 +Name: python-hub +Version: 3.0.1 +Release: 1 +Summary: Activeloop Deep Lake +License: MPL-2.0 +URL: https://www.github.com/activeloopai/deeplake +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/36/f1/47791f62ca4f28cbd129820d1acfe86f440d0f5ec41ce48bed14649ef2a3/hub-3.0.1.tar.gz +BuildArch: noarch + +Requires: python3-deeplake + +%description +Use deeplake instead: pip install deeplake + + +%package -n python3-hub +Summary: Activeloop Deep Lake +Provides: python-hub +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-hub +Use deeplake instead: pip install deeplake + + +%package help +Summary: Development documents and examples for hub +Provides: python3-hub-doc +%description help +Use deeplake instead: pip install deeplake + + +%prep +%autosetup -n hub-3.0.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-hub -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 3.0.1-1 +- Package Spec generated @@ -0,0 +1 @@ +de503b6cf1b889f5534ce08348c6bfff hub-3.0.1.tar.gz |