diff --git a/python-Werkzeug.changes b/python-Werkzeug.changes index bb738d3..4006bcf 100644 --- a/python-Werkzeug.changes +++ b/python-Werkzeug.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu May 10 15:44:58 UTC 2018 - toddrme2178@gmail.com + +- Make sure ssl is available +- Avoid problem with bytecode being overwritten in tests + ------------------------------------------------------------------- Thu Mar 8 10:15:27 UTC 2018 - aplanas@suse.com diff --git a/python-Werkzeug.spec b/python-Werkzeug.spec index 013642e..273da9c 100644 --- a/python-Werkzeug.spec +++ b/python-Werkzeug.spec @@ -33,12 +33,14 @@ BuildRequires: %{python_module pytest} BuildRequires: %{python_module requests} BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros +BuildRequires: python2 BuildArch: noarch %if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24 Recommends: python-termcolor Recommends: python-watchdog %endif %ifpython2 +Requires: python2 Provides: %{oldpython}-werkzeug = %{version} Obsoletes: %{oldpython}-werkzeug < %{version} %endif @@ -72,9 +74,11 @@ sed -i "1d" examples/manage-{i18nurls,simplewiki,shorty,couchy,cupoftee,webpylik %python_install %check -%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}} -export LANG=en_US.UTF-8 -%python_exec -m pytest +%{python_expand export LANG=en_US.UTF-8 +export PYTHONDONTWRITEBYTECODE=1 +export PYTHONPATH=%{buildroot}%{$python_sitelib} +$python -m pytest +} %files %{python_files} %license LICENSE