import UBI python-jinja2-3.1.6-1.el10_0
This commit is contained in:
parent
b530fcfc02
commit
9000c3a872
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
SOURCES/Jinja2-2.11.3.tar.gz
|
jinja2-3.1.6.tar.gz
|
||||||
|
@ -1 +0,0 @@
|
|||||||
034173d87c9c5d1c2000f337be45b582dc0eb172 SOURCES/Jinja2-2.11.3.tar.gz
|
|
@ -1,46 +1,27 @@
|
|||||||
%global srcname Jinja2
|
%global srcname jinja2
|
||||||
|
|
||||||
Name: python-jinja2
|
Name: python-jinja2
|
||||||
Version: 2.11.3
|
Version: 3.1.6
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: General purpose template engine
|
Summary: General purpose template engine
|
||||||
License: BSD
|
License: BSD-3-Clause
|
||||||
URL: https://palletsprojects.com/p/jinja/
|
URL: https://palletsprojects.com/p/jinja/
|
||||||
Source0: %{pypi_source}
|
Source0: %{pypi_source %srcname}
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
||||||
# Enable python3 build by default
|
|
||||||
%bcond_without python3
|
|
||||||
%else
|
|
||||||
%bcond_with python3
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?rhel} > 7
|
|
||||||
# Disable python2 build by default
|
|
||||||
%bcond_with python2
|
|
||||||
%else
|
|
||||||
%bcond_without python2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# Enable building without docs to avoid a circular dependency between this
|
# Enable building without docs to avoid a circular dependency between this
|
||||||
# and python-sphinx:
|
# and python-sphinx:
|
||||||
|
%if 0%{?rhel} || 0%{?flatpak}
|
||||||
%bcond_with docs
|
%bcond_with docs
|
||||||
|
|
||||||
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
||||||
%bcond_without async
|
|
||||||
%else
|
%else
|
||||||
%bcond_with async
|
%bcond_without docs
|
||||||
%endif
|
%endif
|
||||||
|
# The dependency on trio is undesired on RHEL
|
||||||
|
%bcond asyncio_tests %{undefined rhel}
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# Exclude i686 arch. Due to a modularity issue it's being added to the
|
|
||||||
# x86_64 compose of CRB, but we don't want to ship it at all.
|
|
||||||
# See: https://projects.engineering.redhat.com/browse/RCM-72605
|
|
||||||
ExcludeArch: i686
|
|
||||||
|
|
||||||
%description
|
%global _description %{expand:
|
||||||
Jinja2 is a template engine written in pure Python. It provides a
|
Jinja2 is a template engine written in pure Python. It provides a
|
||||||
Django inspired non-XML syntax but supports inline expressions and an
|
Django inspired non-XML syntax but supports inline expressions and an
|
||||||
optional sandboxed environment.
|
optional sandboxed environment.
|
||||||
|
|
||||||
@ -48,159 +29,198 @@ If you have any exposure to other text-based template languages, such
|
|||||||
as Smarty or Django, you should feel right at home with Jinja2. It's
|
as Smarty or Django, you should feel right at home with Jinja2. It's
|
||||||
both designer and developer friendly by sticking to Python's
|
both designer and developer friendly by sticking to Python's
|
||||||
principles and adding functionality useful for templating
|
principles and adding functionality useful for templating
|
||||||
environments.
|
environments.}
|
||||||
|
|
||||||
|
%description %_description
|
||||||
|
|
||||||
%if %{with python2}
|
%package -n python3-jinja2
|
||||||
%package -n python2-jinja2
|
Summary: %{summary}
|
||||||
Summary: General purpose template engine for python2
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python3-pytest
|
||||||
BuildRequires: python2-setuptools
|
%if %{with asyncio_tests}
|
||||||
BuildRequires: python2-babel >= 0.8
|
BuildRequires: python3-trio
|
||||||
BuildRequires: python2-markupsafe >= 0.23
|
%endif
|
||||||
Requires: python2-babel >= 0.8
|
%if %{with docs}
|
||||||
Requires: python2-markupsafe >= 0.23
|
BuildRequires: %{_bindir}/sphinx-build-3
|
||||||
Requires: python2-setuptools
|
BuildRequires: make
|
||||||
%{?python_provide:%python_provide python2-jinja2}
|
BuildRequires: python3-Pallets-Sphinx-Themes >= 2
|
||||||
|
BuildRequires: python3-sphinxcontrib-log-cabinet
|
||||||
%description -n python2-jinja2
|
BuildRequires: python3-sphinx-issues
|
||||||
Jinja2 is a template engine written in pure Python. It provides a
|
|
||||||
Django inspired non-XML syntax but supports inline expressions and an
|
|
||||||
optional sandboxed environment.
|
|
||||||
|
|
||||||
If you have any exposure to other text-based template languages, such
|
|
||||||
as Smarty or Django, you should feel right at home with Jinja2. It's
|
|
||||||
both designer and developer friendly by sticking to Python's
|
|
||||||
principles and adding functionality useful for templating
|
|
||||||
environments.
|
|
||||||
%endif # with python2
|
|
||||||
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
%package -n python%{python3_pkgversion}-jinja2
|
|
||||||
Summary: General purpose template engine for python3
|
|
||||||
BuildRequires: python%{python3_pkgversion}-devel
|
|
||||||
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
||||||
BuildRequires: python%{python3_pkgversion}-babel >= 0.8
|
|
||||||
BuildRequires: python%{python3_pkgversion}-markupsafe >= 0.23
|
|
||||||
BuildRequires: python%{python3_pkgversion}-pytest
|
|
||||||
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
|
||||||
%if %{with docs}
|
|
||||||
BuildRequires: %{_bindir}/sphinx-build-3.8
|
|
||||||
BuildRequires: make
|
|
||||||
BuildRequires: python%{python3_pkgversion}-Pallets-Sphinx-Themes
|
|
||||||
BuildRequires: python%{python3_pkgversion}-sphinxcontrib-log-cabinet
|
|
||||||
BuildRequires: python%{python3_pkgversion}-sphinx-issues
|
|
||||||
%endif
|
%endif
|
||||||
Requires: python%{python3_pkgversion}-babel >= 0.8
|
|
||||||
Requires: python%{python3_pkgversion}-markupsafe >= 0.23
|
|
||||||
Requires: python%{python3_pkgversion}-setuptools
|
|
||||||
%{?python_provide:%python_provide python%{python3_pkgversion}-jinja2}
|
|
||||||
|
|
||||||
%description -n python%{python3_pkgversion}-jinja2
|
%description -n python3-jinja2 %_description
|
||||||
Jinja2 is a template engine written in pure Python. It provides a
|
|
||||||
Django inspired non-XML syntax but supports inline expressions and an
|
|
||||||
optional sandboxed environment.
|
|
||||||
|
|
||||||
If you have any exposure to other text-based template languages, such
|
%pyproject_extras_subpkg -n python3-jinja2 i18n
|
||||||
as Smarty or Django, you should feel right at home with Jinja2. It's
|
|
||||||
both designer and developer friendly by sticking to Python's
|
|
||||||
principles and adding functionality useful for templating
|
|
||||||
environments.
|
|
||||||
%endif # with python3
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n %{srcname}-%{version}
|
%autosetup -p1 -n %{srcname}-%{version}
|
||||||
|
|
||||||
# cleanup
|
|
||||||
find . -name '*.pyo' -o -name '*.pyc' -delete
|
%generate_buildrequires
|
||||||
|
%pyproject_buildrequires -x i18n
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if %{with python2}
|
%pyproject_wheel
|
||||||
%py2_build
|
|
||||||
%endif # with python2
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
%py3_build
|
|
||||||
%if %{with docs}
|
%if %{with docs}
|
||||||
make -C docs html PYTHONPATH=$(pwd) SPHINXBUILD=sphinx-build-3
|
make -C docs html PYTHONPATH=$(pwd)/src SPHINXBUILD=sphinx-build-3
|
||||||
# remove hidden file
|
# remove hidden file
|
||||||
rm -rf docs/_build/html/.buildinfo
|
rm -rvf docs/_build/html/.buildinfo
|
||||||
%endif # with docs
|
%endif
|
||||||
%endif # with python3
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if %{with python2}
|
%pyproject_install
|
||||||
%py2_install
|
%pyproject_save_files jinja2
|
||||||
|
|
||||||
# these files are valid only on Python 3.6+
|
|
||||||
rm %{buildroot}%{python2_sitelib}/jinja2/asyncsupport.py
|
|
||||||
rm %{buildroot}%{python2_sitelib}/jinja2/asyncfilters.py
|
|
||||||
%endif # with python2
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
%py3_install
|
|
||||||
|
|
||||||
%if ! %{with async}
|
|
||||||
# these files are valid only on Python 3.6+
|
|
||||||
rm %{buildroot}%{python3_sitelib}/jinja2/asyncsupport.py
|
|
||||||
rm %{buildroot}%{python3_sitelib}/jinja2/asyncfilters.py
|
|
||||||
%endif # ! with async
|
|
||||||
%endif # with python3
|
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with python3}
|
# test_elif_deep is flaky for an unknown reason
|
||||||
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest tests
|
# https://github.com/pallets/jinja/issues/2079
|
||||||
%endif # with python3
|
%pytest tests -k "not test_elif_deep" %{!?with_asyncio_tests:--ignore tests/test_async.py --ignore tests/test_async_filters.py}
|
||||||
|
|
||||||
|
|
||||||
%if %{with python2}
|
%files -n python3-jinja2 -f %{pyproject_files}
|
||||||
%files -n python2-jinja2
|
%doc README.md
|
||||||
%doc CHANGES.rst
|
%doc docs/examples
|
||||||
%doc ext
|
%license LICENSE.txt
|
||||||
%doc examples
|
|
||||||
%license LICENSE.rst
|
|
||||||
%if %{with docs}
|
%if %{with docs}
|
||||||
%doc docs/_build/html
|
%doc docs/_build/html
|
||||||
%endif
|
%endif
|
||||||
%{python2_sitelib}/jinja2
|
|
||||||
%{python2_sitelib}/Jinja2-%{version}-py?.?.egg-info
|
|
||||||
%endif # with python2
|
|
||||||
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
%files -n python%{python3_pkgversion}-jinja2
|
|
||||||
%doc CHANGES.rst
|
|
||||||
%doc ext
|
|
||||||
%doc examples
|
|
||||||
%license LICENSE.rst
|
|
||||||
%if %{with docs}
|
|
||||||
%doc docs/_build/html
|
|
||||||
%endif
|
|
||||||
%{python3_sitelib}/jinja2
|
|
||||||
%{python3_sitelib}/Jinja2-%{version}-py?.?.egg-info
|
|
||||||
%endif # with python3
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri May 20 2022 Maxwell G <gotmax@e.email> - 2.11.3-1
|
* Wed Mar 26 2025 Lumír Balhar <lbalhar@redhat.com> - 3.1.6-1
|
||||||
|
- Update to 3.1.6
|
||||||
|
- Security fix for CVE-2025-27516
|
||||||
|
Resolves: RHEL-85058
|
||||||
|
|
||||||
|
* Wed Jan 08 2025 Miro Hrončok <mhroncok@redhat.com> - 3.1.5-1
|
||||||
|
- Update to 3.1.5
|
||||||
|
- Security fix for CVE-2024-56201
|
||||||
|
- Security fix for CVE-2024-56326
|
||||||
|
Resolves: RHEL-73095
|
||||||
|
|
||||||
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 3.1.4-3
|
||||||
|
- Bump release for October 2024 mass rebuild:
|
||||||
|
Resolves: RHEL-64018
|
||||||
|
|
||||||
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 3.1.4-2
|
||||||
|
- Bump release for June 2024 mass rebuild
|
||||||
|
|
||||||
|
* Tue May 07 2024 Lumír Balhar <lbalhar@redhat.com> - 3.1.4-1
|
||||||
|
- Update to 3.1.4
|
||||||
|
Resolves: RHEL-36213
|
||||||
|
|
||||||
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.3-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.3-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 11 2024 Michel Lind <salimma@fedoraproject.org> - 3.1.3-1
|
||||||
|
- Update to 3.1.3 to fix CVE-2024-22195
|
||||||
|
|
||||||
|
* Tue Aug 08 2023 Karolina Surma <ksurma@redhat.com> - 3.1.2-6
|
||||||
|
- Declare the license as an SPDX expression
|
||||||
|
|
||||||
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.2-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jun 16 2023 Python Maint <python-maint@redhat.com> - 3.1.2-4
|
||||||
|
- Rebuilt for Python 3.12
|
||||||
|
|
||||||
|
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 3.1.2-3
|
||||||
|
- Bootstrap for Python 3.12
|
||||||
|
|
||||||
|
* Fri May 19 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 3.1.2-2
|
||||||
|
- Disable docs by default in RHEL builds
|
||||||
|
|
||||||
|
* Mon May 01 2023 Sandro Mani <manisandro@gmail.com> - 3.1.2-1
|
||||||
|
- Update to 3.1.2
|
||||||
|
|
||||||
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.3-7
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Nov 14 2022 Lumír Balhar <lbalhar@redhat.com> - 3.0.3-6
|
||||||
|
- Fix compatibility with pytest 7.2
|
||||||
|
|
||||||
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.3-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 3.0.3-4
|
||||||
|
- Rebuilt for Python 3.11
|
||||||
|
|
||||||
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 3.0.3-3
|
||||||
|
- Bootstrap for Python 3.11
|
||||||
|
|
||||||
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.3-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Nov 15 2021 Thomas Moschny <thomas.moschny@gmx.de> - 3.0.3-1
|
||||||
|
- Update to 3.0.3.
|
||||||
|
|
||||||
|
* Mon Nov 15 2021 Thomas Moschny <thomas.moschny@gmx.de> - 3.0.1-4
|
||||||
|
- Use new Python packaging guidelines.
|
||||||
|
- Jinja2 version 3 does not support Python 2 anymore.
|
||||||
|
|
||||||
|
* Wed Nov 10 2021 Karolina Surma <ksurma@redhat.com> - 3.0.1-3
|
||||||
|
- Don't explicitly declare runtime dependencies when building for Python 3
|
||||||
|
- Declare jinja2+i18n extra to map the upstream package structure
|
||||||
|
|
||||||
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jun 22 2021 Lumír Balhar <lbalhar@redhat.com> - 3.0.1-1
|
||||||
|
- Update to 3.0.1
|
||||||
|
- Resolves: rhbz#1961862
|
||||||
|
|
||||||
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.11.3-3
|
||||||
|
- Rebuilt for Python 3.10
|
||||||
|
|
||||||
|
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 2.11.3-2
|
||||||
|
- Bootstrap for Python 3.10
|
||||||
|
|
||||||
|
* Sat Feb 6 2021 Thomas Moschny <thomas.moschny@gmx.de> - 2.11.3-1
|
||||||
- Update to 2.11.3.
|
- Update to 2.11.3.
|
||||||
- Fix URL.
|
- Add patches to build with Python 3.10 (#1907442).
|
||||||
- Remove patch that is included in this release.
|
|
||||||
Resolves: rhbz#2086141.
|
|
||||||
|
|
||||||
* Fri Mar 12 2021 Lumír Balhar <lbalhar@redhat.com> - 2.10.3-5
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.2-8
|
||||||
- Fix CVE-2020-28493: ReDOS vulnerability due to the sub-pattern
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
Resolves: rhbz#1928707
|
|
||||||
|
|
||||||
* Fri Dec 13 2019 Tomas Orsava <torsava@redhat.com> - 2.10.3-4
|
* Mon Dec 21 2020 Miro Hrončok <mhroncok@redhat.com> - 2.11.2-7
|
||||||
- Exclude unsupported i686 arch
|
- Drop python2-jinja2 on Fedora 34+
|
||||||
|
|
||||||
* Wed Nov 20 2019 Lumír Balhar <lbalhar@redhat.com> - 2.10.3-3
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.2-6
|
||||||
- Adjusted for Python 3.8 module in RHEL 8
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 2.11.2-5
|
||||||
|
- Rebuilt for Python 3.9
|
||||||
|
|
||||||
|
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 2.11.2-4
|
||||||
|
- Bootstrap for Python 3.9
|
||||||
|
|
||||||
|
* Fri May 22 2020 Thomas Moschny <thomas.moschny@gmx.de> - 2.11.2-3
|
||||||
|
- Re-add python2 subpackage (#1832057).
|
||||||
|
|
||||||
|
* Wed May 6 2020 Thomas Moschny <thomas.moschny@gmx.de> - 2.11.2-2
|
||||||
|
- Drop python2 subpackage from F33 on (#1832057).
|
||||||
|
|
||||||
|
* Wed Apr 15 2020 Thomas Moschny <thomas.moschny@gmx.de> - 2.11.2-1
|
||||||
|
- Re-add dependency on python-setuptools.
|
||||||
|
|
||||||
|
* Wed Apr 15 2020 Dan Horák <dan[at]danny.cz> - 2.11.2-1
|
||||||
|
- Update to 2.11.2
|
||||||
|
|
||||||
|
* Mon Apr 06 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 2.11.1-2
|
||||||
|
- Drop unneeded R: pythonX-setuptools
|
||||||
|
|
||||||
|
* Sat Feb 8 2020 Thomas Moschny <thomas.moschny@gmx.de> - 2.11.1-1
|
||||||
|
- Update to 2.11.1.
|
||||||
|
|
||||||
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.3-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
* Wed Nov 20 2019 Thomas Moschny <thomas.moschny@gmx.de> - 2.10.3-2
|
* Wed Nov 20 2019 Thomas Moschny <thomas.moschny@gmx.de> - 2.10.3-2
|
||||||
- Add missing BR on make.
|
- Add missing BR on make.
|
Loading…
Reference in New Issue
Block a user