summaryrefslogtreecommitdiff
path: root/python-greengrasssdk.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 03:18:07 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 03:18:07 +0000
commit59c54eb954439e8cafd7e8cdb8b1c712422b5ae9 (patch)
treeea95483e7ea72d83f5c8d07a646966b6a6d4ecbb /python-greengrasssdk.spec
parent314017aa862f0c3ae9fadbff8aff1ace99380173 (diff)
automatic import of python-greengrasssdkopeneuler20.03
Diffstat (limited to 'python-greengrasssdk.spec')
-rw-r--r--python-greengrasssdk.spec73
1 files changed, 73 insertions, 0 deletions
diff --git a/python-greengrasssdk.spec b/python-greengrasssdk.spec
new file mode 100644
index 0000000..1449c26
--- /dev/null
+++ b/python-greengrasssdk.spec
@@ -0,0 +1,73 @@
+%global _empty_manifest_terminate_build 0
+Name: python-greengrasssdk
+Version: 1.6.1
+Release: 1
+Summary: The AWS IoT Greengrass SDK for Python
+License: Apache License 2.0
+URL: https://pypi.org/project/greengrasssdk/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ff/c1/23e878dd41ecc99beb05f8be4a5795cbd5df111e0f97bd52ec49268bba96/greengrasssdk-1.6.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-cbor2
+
+%description
+
+
+%package -n python3-greengrasssdk
+Summary: The AWS IoT Greengrass SDK for Python
+Provides: python-greengrasssdk
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-greengrasssdk
+
+
+%package help
+Summary: Development documents and examples for greengrasssdk
+Provides: python3-greengrasssdk-doc
+%description help
+
+
+%prep
+%autosetup -n greengrasssdk-1.6.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-greengrasssdk -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.6.1-1
+- Package Spec generated