Update to 2.9.4.
This commit is contained in:
parent
28bd2518ae
commit
8e45c9e7bb
2 changed files with 19 additions and 2 deletions
|
|
@ -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 <thomas.moschny@gmx.de> - 2.9.4-1
|
||||
- Update to 2.9.4.
|
||||
|
||||
* Sat Dec 31 2016 Thomas Moschny <thomas.moschny@gmx.de> - 2.8.1-1
|
||||
- Update to 2.8.1.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue