diff --git a/python-jinja2.spec b/python-jinja2.spec index 922415ee7e47db1cb46fa71f2c0179c66b4b2921..493858554731a84a58d257bf2f91eac67bf7b235 100644 --- a/python-jinja2.spec +++ b/python-jinja2.spec @@ -2,7 +2,7 @@ Name: python-jinja2 Version: 2.11.2 -Release: 2 +Release: 3 Summary: A full-featured template engine for Python License: BSD URL: http://jinja.pocoo.org/ @@ -17,19 +17,6 @@ templating system but extends it with an expressive language that gives template a more powerful set of tools. On top of that it adds sandboxed execution and optional automatic escaping for applications where security is important. -%if %{with python2} -%package -n python2-jinja2 -Summary: General purpose template engine for python2 - -BuildRequires: python2-markupsafe python2-babel -BuildRequires: python2-pytest python2-devel python2-setuptools -Requires: python2-babel python2-markupsafe python2-setuptools -%{?python_provide:%python_provide python2-jinja2} - -%description -n python2-jinja2 -This package is the python2 version of python-jinja2. -%endif - %package -n python3-jinja2 Summary: General purpose template engine for python3 @@ -52,39 +39,15 @@ sed -i 's|\r$||g' Jinja2-%{version}/LICENSE.rst cp -a Jinja2-%{version} python3 %build -%if %{with python2} -pushd Jinja2-%{version} -%py2_build -popd -%endif - pushd python3 %py3_build popd %install -%if %{with python2} -pushd Jinja2-%{version} -%py2_install - -#valid on python above 3.6, if not removed, installation will fail -rm %{buildroot}%{python2_sitelib}/jinja2/asyncsupport.py -rm %{buildroot}%{python2_sitelib}/jinja2/asyncfilters.py - -popd -%endif - pushd python3 %py3_install popd -%if %{with python2} -%files -n python2-jinja2 -%license Jinja2-%{version}/LICENSE.rst -%{python2_sitelib}/jinja2 -%{python2_sitelib}/Jinja2*-info -%endif - %files -n python3-jinja2 %license Jinja2-%{version}/LICENSE.rst %{python3_sitelib}/jinja2 @@ -95,6 +58,9 @@ popd %doc Jinja2-%{version}/ext Jinja2-%{version}/examples %changelog +* Tue Jan 28 2022 zhaojunfeng - 2.11.2-3 +- remove python2 + * Fri Apr 23 2021 shangyibin - 2.11.2-2 - Type:NA - ID:CVE-2020-28493