Hello community, here is the log from the commit of package python-Flask for openSUSE:Factory checked in at 2020-06-05 19:59:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Flask (Old) and /work/SRC/openSUSE:Factory/.python-Flask.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Flask" Fri Jun 5 19:59:16 2020 rev:25 rq:809661 version:1.1.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Flask/python-Flask.changes 2020-04-09 23:14:09.298199416 +0200 +++ /work/SRC/openSUSE:Factory/.python-Flask.new.3606/python-Flask.changes 2020-06-05 19:59:18.839751852 +0200 @@ -1,0 +2,5 @@ +Tue May 26 06:34:15 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Flask.spec ++++++ --- /var/tmp/diff_new_pack.R6o1c6/_old 2020-06-05 19:59:19.471754038 +0200 +++ /var/tmp/diff_new_pack.R6o1c6/_new 2020-06-05 19:59:19.475754052 +0200 @@ -24,7 +24,7 @@ Summary: A microframework based on Werkzeug, Jinja2 and good intentions License: BSD-3-Clause Group: Development/Languages/Python -URL: http://github.com/mitsuhiko/flask/ +URL: https://github.com/mitsuhiko/flask/ Source: https://files.pythonhosted.org/packages/source/F/Flask/Flask-%{version}.tar.gz BuildRequires: %{python_module Jinja2 >= 2.4} BuildRequires: %{python_module Werkzeug >= 0.15} @@ -33,15 +33,17 @@ BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes -%if %{?suse_version} < 1500 -BuildRequires: python -%endif BuildRequires: python-rpm-macros Requires: python-Jinja2 >= 2.10 Requires: python-Werkzeug >= 0.15 Requires: python-click >= 5.1 Requires: python-itsdangerous >= 0.24 +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch +%if %{?suse_version} < 1500 +BuildRequires: python +%endif %ifpython2 Provides: %{oldpython}-flask = %{version} Obsoletes: %{oldpython}-flask < %{version} @@ -70,7 +72,7 @@ %install %python_install -%python_clone %{buildroot}%{_bindir}/flask +%python_clone -a %{buildroot}%{_bindir}/flask %fdupes %{buildroot}%{python_sitelib} @@ -78,10 +80,16 @@ export LANG=en_US.UTF-8 %pytest +%post +%python_install_alternative flask + +%postun +%python_uninstall_alternative flask + %files %{python_files} %license LICENSE.rst %doc CHANGES.rst README.rst -%python3_only %{_bindir}/flask +%python_alternative %{_bindir}/flask %{_bindir}/flask-%{python_bin_suffix} %dir %{python_sitelib}/flask %{python_sitelib}/flask/*
