From dddcc0e9d2d5f1d5caf2ed3fe00a06c46fa6981d Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 10 May 2023 05:18:05 +0000 Subject: automatic import of python-cterasdk --- .gitignore | 1 + python-cterasdk.spec | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 78 insertions(+) create mode 100644 python-cterasdk.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..2a6bcae 100644 --- a/.gitignore +++ b/.gitignore @@ -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 `_. + +%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 `_. + +%package help +Summary: Development documents and examples for cterasdk +Provides: python3-cterasdk-doc +%description help +User documentation is available on `Read the Docs `_. + +%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 - 2.18.33-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..c984ea5 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +9ad86501c64aae2aeb36fd17d2d4fa26 cterasdk-2.18.33.tar.gz -- cgit v1.2.3