summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 15:13:22 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 15:13:22 +0000
commit3ac7b9e25bbf2dc1d22448e2be63d5ae57e0d480 (patch)
tree5391f27b8e810b1b42e8daf6e011c6f516d4f6d7
parente314daea038cbbd6f90a5e1fcc392a7454f34837 (diff)
automatic import of python-awsiotpythonsdk
-rw-r--r--.gitignore1
-rw-r--r--python-awsiotpythonsdk.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..38e15a8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/AWSIoTPythonSDK-1.5.2.tar.gz
diff --git a/python-awsiotpythonsdk.spec b/python-awsiotpythonsdk.spec
new file mode 100644
index 0000000..7a974f4
--- /dev/null
+++ b/python-awsiotpythonsdk.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-AWSIoTPythonSDK
+Version: 1.5.2
+Release: 1
+Summary: SDK for connecting to AWS IoT using Python.
+License: Apache Software License
+URL: https://github.com/aws/aws-iot-device-sdk-python.git
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/07/da/b352d91a409c3ec26faf3191e650c209666353af1b5a34ae4f446db087c8/AWSIoTPythonSDK-1.5.2.tar.gz
+BuildArch: noarch
+
+
+%description
+
+
+%package -n python3-AWSIoTPythonSDK
+Summary: SDK for connecting to AWS IoT using Python.
+Provides: python-AWSIoTPythonSDK
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-AWSIoTPythonSDK
+
+
+%package help
+Summary: Development documents and examples for AWSIoTPythonSDK
+Provides: python3-AWSIoTPythonSDK-doc
+%description help
+
+
+%prep
+%autosetup -n AWSIoTPythonSDK-1.5.2
+
+%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-AWSIoTPythonSDK -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.5.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..c7074e9
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+eada06f4173a1a4b8e227714a6234c6f AWSIoTPythonSDK-1.5.2.tar.gz