1
0

Accepting request 809594 from home:pgajdos:python

- %python3_only -> %python_alternative

OBS-URL: https://build.opensuse.org/request/show/809594
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-aws-sam-translator?expand=0&rev=16
This commit is contained in:
Robert Schweikert 2020-07-20 12:09:11 +00:00 committed by Git OBS Bridge
parent 1ec463430a
commit ee9642d3a0
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 : missing UserPool properties
* fix: resource policy generation for {path+} * 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> 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-docopt >= 0.6.2
Requires: python-jsonschema >= 3.0 Requires: python-jsonschema >= 3.0
Requires: python-six >= 1.11 Requires: python-six >= 1.11
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
%if 0%{?suse_version} < 1500 %if 0%{?suse_version} < 1500
BuildRequires: python BuildRequires: python
@ -83,6 +85,7 @@ sed -i -e 's:~=:>=:g' requirements/base.txt
mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_bindir}
install -D -m 755 bin/sam-translate.py %{buildroot}%{_bindir}/sam-translate install -D -m 755 bin/sam-translate.py %{buildroot}%{_bindir}/sam-translate
%python_clone -a %{buildroot}%{_bindir}/sam-translate
%if %{with test} %if %{with test}
%check %check
@ -90,10 +93,16 @@ export LANG=en_US.UTF8
%pytest %pytest
%endif %endif
%post
%python_install_alternative sam-translate
%postun
%python_uninstall_alternative sam-translate
%files %{python_files} %files %{python_files}
%doc README.md %doc README.md
%license LICENSE %license LICENSE
%python3_only %{_bindir}/sam-translate %python_alternative %{_bindir}/sam-translate
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog