diff --git a/python-jinja2.spec b/python-jinja2.spec index ee51979..8dc12ab 100644 --- a/python-jinja2.spec +++ b/python-jinja2.spec @@ -6,8 +6,12 @@ # and python-sphinx: %global with_docs 1 +%if 0%{?fedora} > 25 +%global with_async 1 +%endif + Name: python-jinja2 -Version: 2.8.1 +Version: 2.9.4 Release: 1%{?dist} Summary: General purpose template engine Group: Development/Languages @@ -93,6 +97,7 @@ find . -name '*.pyo' -o -name '*.pyc' -delete # fix EOL sed -i 's|\r$||g' LICENSE + %build %py2_build @@ -113,8 +118,17 @@ make -C docs html PYTHONPATH=$(pwd) # remove hidden file rm -rf docs/_build/html/.buildinfo +# these files are valid only on Python 3.6+ +rm %{buildroot}%{python2_sitelib}/jinja2/asyncsupport.py +rm %{buildroot}%{python2_sitelib}/jinja2/asyncfilters.py + %if 0%{?with_python3} %py3_install + +%if ! 0%{?with_async} +rm %{buildroot}%{python3_sitelib}/jinja2/asyncsupport.py +rm %{buildroot}%{python3_sitelib}/jinja2/asyncfilters.py +%endif %endif # with_python3 @@ -160,6 +174,9 @@ rm -rf docs/_build/html/.buildinfo %changelog +* Fri Jan 13 2017 Thomas Moschny - 2.9.4-1 +- Update to 2.9.4. + * Sat Dec 31 2016 Thomas Moschny - 2.8.1-1 - Update to 2.8.1. diff --git a/sources b/sources index bbfe628..1f70de5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (Jinja2-2.8.1.tar.gz) = 0a2e2aa94f5c2f04f79d59d34d5324d2a440385b71192e85e960c761b4a073400e4ab0458e57305650f696a474593d6fbf398fb1d9518be261bb2a5cb866e163 +SHA512 (Jinja2-2.9.4.tar.gz) = a44ea6876837238e5c744988b94f551fa20f3d4565c1f97afec89bb89da3da5507cdbc554a95ac49b80613cf4086a2465b90aa7c64578e1f952321a27c962c8b