diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 15:20:05 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 15:20:05 +0000 |
| commit | f1d3f86ce5229f3428bb7e3e9ccc2c6d024e481f (patch) | |
| tree | eee0ff3a1df2d69635c72a779b6949f857836780 /python-iam-floyd.spec | |
| parent | 249567e43559c8a894f284d6b051dc2c22e0aa52 (diff) | |
automatic import of python-iam-floyd
Diffstat (limited to 'python-iam-floyd.spec')
| -rw-r--r-- | python-iam-floyd.spec | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/python-iam-floyd.spec b/python-iam-floyd.spec new file mode 100644 index 0000000..e92dd8e --- /dev/null +++ b/python-iam-floyd.spec @@ -0,0 +1,87 @@ +%global _empty_manifest_terminate_build 0 +Name: python-iam-floyd +Version: 0.506.0 +Release: 1 +Summary: AWS IAM policy statement generator with fluent interface +License: Apache-2.0 +URL: https://github.com/udondan/iam-floyd +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f5/bc/35a3aea7f232664db14e13d18ebe325e0cb167380cf2c1159ab765dfb633/iam-floyd-0.506.0.tar.gz +BuildArch: noarch + +Requires: python3-jsii +Requires: python3-publication +Requires: python3-typeguard + +%description +## Legal +The code contained in the [lib/generated](https://github.com/udondan/iam-floyd/tree/main/lib/generated) folder is generated from the [AWS documentation](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_actions-resources-contextkeys.html). The class- and function-names and their description therefore are property of AWS. +AWS and their services are trademarks, registered trademarks or trade dress of AWS in the U.S. and/or other countries. +This project is not affiliated, funded, or in any way associated with AWS. +IAM Floyd is licensed under [Apache License 2.0](https://github.com/udondan/iam-floyd/blob/main/LICENSE). Dependencies might be released under different licenses. Especially the bundled packages [regex-parser](https://www.npmjs.com/package/regex-parser) and [common-substrings](https://www.npmjs.com/package/common-substrings) are released under the MIT License. + +%package -n python3-iam-floyd +Summary: AWS IAM policy statement generator with fluent interface +Provides: python-iam-floyd +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-iam-floyd +## Legal +The code contained in the [lib/generated](https://github.com/udondan/iam-floyd/tree/main/lib/generated) folder is generated from the [AWS documentation](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_actions-resources-contextkeys.html). The class- and function-names and their description therefore are property of AWS. +AWS and their services are trademarks, registered trademarks or trade dress of AWS in the U.S. and/or other countries. +This project is not affiliated, funded, or in any way associated with AWS. +IAM Floyd is licensed under [Apache License 2.0](https://github.com/udondan/iam-floyd/blob/main/LICENSE). Dependencies might be released under different licenses. Especially the bundled packages [regex-parser](https://www.npmjs.com/package/regex-parser) and [common-substrings](https://www.npmjs.com/package/common-substrings) are released under the MIT License. + +%package help +Summary: Development documents and examples for iam-floyd +Provides: python3-iam-floyd-doc +%description help +## Legal +The code contained in the [lib/generated](https://github.com/udondan/iam-floyd/tree/main/lib/generated) folder is generated from the [AWS documentation](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_actions-resources-contextkeys.html). The class- and function-names and their description therefore are property of AWS. +AWS and their services are trademarks, registered trademarks or trade dress of AWS in the U.S. and/or other countries. +This project is not affiliated, funded, or in any way associated with AWS. +IAM Floyd is licensed under [Apache License 2.0](https://github.com/udondan/iam-floyd/blob/main/LICENSE). Dependencies might be released under different licenses. Especially the bundled packages [regex-parser](https://www.npmjs.com/package/regex-parser) and [common-substrings](https://www.npmjs.com/package/common-substrings) are released under the MIT License. + +%prep +%autosetup -n iam-floyd-0.506.0 + +%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-iam-floyd -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.506.0-1 +- Package Spec generated |
