python-AWSIoTPythonSDK/python-AWSIoTPythonSDK.spec

77 lines
2.2 KiB
RPMSpec
Raw Permalink Normal View History

%global _empty_manifest_terminate_build 0
Name: python-AWSIoTPythonSDK
2022-08-03 05:31:33 +08:00
Version: 1.5.2
Release: 1
Summary: SDK for connecting to AWS IoT using Python.
2022-05-11 09:24:56 +08:00
License: Apache-2.0
URL: https://github.com/aws/aws-iot-device-sdk-python.git
2022-08-03 05:31:33 +08:00
Source0: https://files.pythonhosted.org/packages/07/da/b352d91a409c3ec26faf3191e650c209666353af1b5a34ae4f446db087c8/AWSIoTPythonSDK-1.5.2.tar.gz
BuildArch: noarch
%global _description\
SDK for connecting to AWS IoT using Python.
%description %_description
%package -n python3-AWSIoTPythonSDK
Summary: SDK for connecting to AWS IoT using Python.
Provides: python-AWSIoTPythonSDK
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%description -n python3-AWSIoTPythonSDK %_description
%package help
Summary: Development documents and examples for AWSIoTPythonSDK
Provides: python3-AWSIoTPythonSDK-doc
%description help %_description
%prep
2022-08-03 05:31:33 +08:00
%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
2022-08-03 05:31:33 +08:00
* Tue Aug 02 2022 fushanqing <fushanqing@kylinos.cn> - 1.5.2-1
- update to 1.5.2
2022-05-11 09:24:56 +08:00
* Tue May 10 2022 wulei <wulei80@h-partners.com> - 1.4.8-2
- License compliance rectification
* Tue Jun 23 2020 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated