diff --git a/aws-sam-translator-1.6.0.tar.gz b/aws-sam-translator-1.6.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..2b255ac09892b5a0220f6cd678e02683adc0a8cd Binary files /dev/null and b/aws-sam-translator-1.6.0.tar.gz differ diff --git a/python-aws-sam-translator.spec b/python-aws-sam-translator.spec new file mode 100644 index 0000000000000000000000000000000000000000..64df45c2f2f52c1e0b2011afc9f56d2bbfb156f3 --- /dev/null +++ b/python-aws-sam-translator.spec @@ -0,0 +1,94 @@ +%global _empty_manifest_terminate_build 0 +Name: python-aws-sam-translator +Version: 1.6.0 +Release: 1 +Summary: AWS SAM Translator is a library that transform SAM templates into AWS CloudFormation templates +License: Apache-2.0 +URL: https://github.com/awslabs/serverless-application-model +Source0: https://files.pythonhosted.org/packages/f6/49/9055710c7c12bf2022661d7402b53047dcd8fe5e5c0b03ee3600993ca66d/aws-sam-translator-1.6.0.tar.gz +BuildArch: noarch +%description +[![Build Status]( [![PyPI version]( AWS Serverless Application Model (AWS SAM) +You can use SAM to define serverless applications in simple and clean +syntax.This GitHub project is the starting point for AWS SAM. It contains the +SAM specification, the code that translates SAM templates into AWS +CloudFormation stacks, general information about the model, and examples of +common applications. + +%package -n python3-aws-sam-translator +Summary: AWS SAM Translator is a library that transform SAM templates into AWS CloudFormation templates +Provides: python-aws-sam-translator +# Base build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +%description -n python3-aws-sam-translator +[![Build Status]( [![PyPI version]( AWS Serverless Application Model (AWS SAM) +You can use SAM to define serverless applications in simple and clean +syntax.This GitHub project is the starting point for AWS SAM. It contains the +SAM specification, the code that translates SAM templates into AWS +CloudFormation stacks, general information about the model, and examples of +common applications. + +%package help +Summary: AWS SAM Translator is a library that transform SAM templates into AWS CloudFormation templates +Provides: python3-aws-sam-translator-doc +%description help +[![Build Status]( [![PyPI version]( AWS Serverless Application Model (AWS SAM) +You can use SAM to define serverless applications in simple and clean +syntax.This GitHub project is the starting point for AWS SAM. It contains the +SAM specification, the code that translates SAM templates into AWS +CloudFormation stacks, general information about the model, and examples of +common applications. + +%prep +%autosetup -n aws-sam-translator-%{version} +sed -i 's/~/>/g' requirements/base.txt +sed -i 's/enum34>=1.1//g' requirements/base.txt + +%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 . + +%check + +%files -n python3-aws-sam-translator -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Aug 02 2022 OpenStack_SIG - 1.6.0-1 +- Init package python3-aws-sam-translator of version 1.6.0 +