diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 06:23:25 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 06:23:25 +0000 |
commit | 9c78a2af3be60f1770a855675817efcb899a1001 (patch) | |
tree | 0e3d88996998a62911561bb35f0ca28cb63c0792 | |
parent | 85ee3694ae2304f71035740c0609600139a0d315 (diff) |
automatic import of python-aws-list-allopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-aws-list-all.spec | 80 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 82 insertions, 0 deletions
@@ -0,0 +1 @@ +/aws_list_all-0.9.2.tar.gz diff --git a/python-aws-list-all.spec b/python-aws-list-all.spec new file mode 100644 index 0000000..d3e293e --- /dev/null +++ b/python-aws-list-all.spec @@ -0,0 +1,80 @@ +%global _empty_manifest_terminate_build 0 +Name: python-aws-list-all +Version: 0.9.2 +Release: 1 +Summary: List all your AWS resources, all regions, all services. +License: MIT License +URL: https://github.com/JohannesEbke/aws_list_all +Source0: https://mirrors.aliyun.com/pypi/web/packages/ce/9a/269c97a844a07981aebcbaf81aa2fa947bf60e57ca05ea379b0265240c03/aws_list_all-0.9.2.tar.gz +BuildArch: noarch + +Requires: python3-app-json-file-cache +Requires: python3-boto3 + +%description +List all resources in an AWS account, all regions, all services(*). Writes JSON files for further processing. +(*) No guarantees for completeness. Use billing alerts if you are worried about costs. +(Note that the build will break on some boto3 updates) + +%package -n python3-aws-list-all +Summary: List all your AWS resources, all regions, all services. +Provides: python-aws-list-all +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-aws-list-all +List all resources in an AWS account, all regions, all services(*). Writes JSON files for further processing. +(*) No guarantees for completeness. Use billing alerts if you are worried about costs. +(Note that the build will break on some boto3 updates) + +%package help +Summary: Development documents and examples for aws-list-all +Provides: python3-aws-list-all-doc +%description help +List all resources in an AWS account, all regions, all services(*). Writes JSON files for further processing. +(*) No guarantees for completeness. Use billing alerts if you are worried about costs. +(Note that the build will break on some boto3 updates) + +%prep +%autosetup -n aws_list_all-0.9.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-aws-list-all -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.9.2-1 +- Package Spec generated @@ -0,0 +1 @@ +897e01707ba72b6846b3daa2189edf9e aws_list_all-0.9.2.tar.gz |