Accepting request 821881 from devel:languages:python:aws

OBS-URL: https://build.opensuse.org/request/show/821881
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aws-sam-translator?expand=0&rev=8
This commit is contained in:
Dominique Leuenberger 2020-07-20 19:05:33 +00:00 committed by Git OBS Bridge
commit 3d0cfafded
2 changed files with 15 additions and 1 deletions

View File

@ -7,6 +7,11 @@ Wed Jul 1 12:55:50 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
* fix : missing UserPool properties
* fix: resource policy generation for {path+}
-------------------------------------------------------------------
Wed May 27 13:48:52 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Mon May 4 07:16:01 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -40,6 +40,8 @@ Requires: python-boto3 >= 1.5
Requires: python-docopt >= 0.6.2
Requires: python-jsonschema >= 3.0
Requires: python-six >= 1.11
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%if 0%{?suse_version} < 1500
BuildRequires: python
@ -83,6 +85,7 @@ sed -i -e 's:~=:>=:g' requirements/base.txt
mkdir -p %{buildroot}%{_bindir}
install -D -m 755 bin/sam-translate.py %{buildroot}%{_bindir}/sam-translate
%python_clone -a %{buildroot}%{_bindir}/sam-translate
%if %{with test}
%check
@ -90,10 +93,16 @@ export LANG=en_US.UTF8
%pytest
%endif
%post
%python_install_alternative sam-translate
%postun
%python_uninstall_alternative sam-translate
%files %{python_files}
%doc README.md
%license LICENSE
%python3_only %{_bindir}/sam-translate
%python_alternative %{_bindir}/sam-translate
%{python_sitelib}/*
%changelog