diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-10 05:18:05 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 05:18:05 +0000 |
commit | dddcc0e9d2d5f1d5caf2ed3fe00a06c46fa6981d (patch) | |
tree | e8fd80d74c85ec1e78814691f83c741ba21c17ad | |
parent | 739411695f5aae8cbc219e15fb8e3200c255d7fd (diff) |
automatic import of python-cterasdkopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-cterasdk.spec | 76 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 78 insertions, 0 deletions
@@ -0,0 +1 @@ +/cterasdk-2.18.33.tar.gz diff --git a/python-cterasdk.spec b/python-cterasdk.spec new file mode 100644 index 0000000..9cb15df --- /dev/null +++ b/python-cterasdk.spec @@ -0,0 +1,76 @@ +%global _empty_manifest_terminate_build 0 +Name: python-cterasdk +Version: 2.18.33 +Release: 1 +Summary: CTERA Python SDK +License: Apache Software License +URL: https://pypi.org/project/cterasdk/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/71/a3/daff7a572689774ceab9b0e20935b1ad03d4f9f59c96594164f96eb4a55f/cterasdk-2.18.33.tar.gz +BuildArch: noarch + +Requires: python3-setuptools +Requires: python3-requests +Requires: python3-requests-toolbelt +Requires: python3-cryptography + +%description +User documentation is available on `Read the Docs <http://ctera-python-sdk.readthedocs.org/>`_. + +%package -n python3-cterasdk +Summary: CTERA Python SDK +Provides: python-cterasdk +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-cterasdk +User documentation is available on `Read the Docs <http://ctera-python-sdk.readthedocs.org/>`_. + +%package help +Summary: Development documents and examples for cterasdk +Provides: python3-cterasdk-doc +%description help +User documentation is available on `Read the Docs <http://ctera-python-sdk.readthedocs.org/>`_. + +%prep +%autosetup -n cterasdk-2.18.33 + +%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-cterasdk -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.18.33-1 +- Package Spec generated @@ -0,0 +1 @@ +9ad86501c64aae2aeb36fd17d2d4fa26 cterasdk-2.18.33.tar.gz |