blob: d0cc660491b28dbb9dedbca8c29135f3de1d60c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
|
%global _name Jinja2
Name: python-jinja2
Version: 3.1.3
Release: 4
Summary: A full-featured template engine for Python
License: BSD-3-Clause
URL: http://jinja.pocoo.org/
Source0: https://files.pythonhosted.org/packages/source/J/Jinja2/Jinja2-%{version}.tar.gz
Patch1: backport-CVE-2024-34064.patch
Patch2: backport-CVE-2024-56326.patch
Patch3: backport-CVE-2024-56201.patch
BuildArch: noarch
%description
Jinja2 is one of the most used template engines for Python. It is inspired by Django's
templating system but extends it with an expressive language that gives template authors
a more powerful set of tools. On top of that it adds sandboxed execution and optional
automatic escaping for applications where security is important.
%package -n python3-jinja2
Summary: General purpose template engine for python3
BuildRequires: python3-markupsafe python3-babel
BuildRequires: python3-pytest python3-devel python3-setuptools
Requires: python3-babel python3-markupsafe python3-setuptools
%{?python_provide:%python_provide python3-jinja2}
%description -n python3-jinja2
This package is the python3 version of python-jinja2.
%package_help
%prep
%autosetup -c -n Jinja2-%{version} -p1
# fix EOL
sed -i 's|\r$||g' Jinja2-%{version}/LICENSE.rst
cp -a Jinja2-%{version} python3
%build
pushd python3
%py3_build
popd
%install
pushd python3
%py3_install
popd
%check
pushd python3
PYTHONPATH=$(pwd)/src python3 -m pytest tests
popd
%files -n python3-jinja2
%license Jinja2-%{version}/LICENSE.rst
%{python3_sitelib}/jinja2
%{python3_sitelib}/Jinja2*-info
%files help
%doc Jinja2-%{version}/CHANGES.rst Jinja2-%{version}/PKG-INFO
%doc Jinja2-%{version}/examples
%changelog
* Thu Dec 26 2024 weihaohao <weihaohao2@huawei.com> - 3.1.3-4
- Type:CVE
- CVE:CVE-2024-56201
- SUG:NA
- DESC:fix CVE-2024-56201
* Wed Dec 25 2024 changtao <changtao@kylinos.cn> - 3.1.3-3
- Type:CVE
- CVE:CVE-2024-56326
- SUG:NA
- DESC:fix CVE-2024-56326
* Fri May 10 2024 weihaohao <weihaohao2@huawei.com> - 3.1.3-2
- Type:CVE
- CVE:CVE-2024-34064
- SUG:NA
- DESC:fix CVE-2024-34064
* Thu Jan 25 2024 shixuantong <shixuantong1@huawei.com> - 3.1.3-1
- Upgrade package to 3.1.3
* Thu Jan 18 2024 weihaohao <weihaohao2@huawei.com> - 3.1.2-3
- Type:CVE
- CVE:CVE-2024-22195
- SUG:NA
- DESC:fix CVE-2024-22195
* Mon Jul 31 2023 zhuofeng <zhuofeng2@huawei.com> - 3.1.2-2
- fix test failed
* Tue Jan 31 2023 huangduirong <huangduirong@huawei.com> - 3.1.2-1
- Upgrade package to 3.1.2
* Fri Jun 17 2022 liukuo <liukuo@kylinos.cn> - 3.0.3-3
- License compliance rectification
* Wed Feb 16 2022 liudabo <liudabo1@huawei.com> - 3.0.3-2
- enable check
* Mon Jan 24 2022 tianwei <tianwei12@huawei.com> - 3.0.3-1
- Upgrade version to 3.0.3
* Mon Jul 12 2021 huangtianhua <huangtianhua@huawei.com> - 2.11.3
- Upgrade to 2.11.3 to support OpenStack-W
* Fri Apr 23 2021 shangyibin <shangyibin1@huawei.com> - 2.11.2-3
- Type:bugfix
- ID:CVE-2020-28493
- SUG:NA
- DESC:fix cve-2020-28493
* Thu Oct 29 2020 tianwei <tianwei12@huawei.com> - 2.11.2-2
- Type:NA
- ID:NA
- SUG:NA
- DESC:delete python2 require
* Thu Jul 23 2020 dingyue <dingyue5@huawei.com> - 2.11.2-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:revise description
* Sat Sep 21 2019 shenyangyang <shenyangyang4@huawei.com> - 2.10-10
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:revise description
* Mon Sep 15 2019 shenyangyang <shenyangyang4@huawei.com> - 2.10-9
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:strenthen spec
* Fri Aug 16 2019 Enbo Kang <kangenbo@huawei.com> - 2.10-8
- Type:security
- ID:CVE-2019-10906
- SUG:NA
- DESC:fix CVE-2019-10906 python-jinja2:str.format_map allows sandbox
* Mon Aug 12 2019 alex chen <alex.chen@huawei.com> - 2.10-7
- Enable python2 build by default
* Wed Jul 18 2018 openEuler Buildteam <buildteam@openeuler.org> - 2.10-6
- Package init
|