CBL-Mariner/SPECS/python-jinja2/python-jinja2.spec

109 строки
3.5 KiB
Plaintext

Summary: A fast and easy to use template engine written in pure Python
Name: python-jinja2
Version: 3.0.3
Release: 3%{?dist}
License: BSD
Vendor: Microsoft Corporation
Distribution: Mariner
Group: Development/Languages/Python
URL: https://jinja.pocoo.org/
Source0: https://files.pythonhosted.org/packages/91/a5/429efc6246119e1e3fbf562c00187d04e83e54619249eb732bb423efa6c6/Jinja2-%{version}.tar.gz
Patch0: CVE-2024-22195.patch
BuildArch: noarch
%description
Jinja2 is a template engine written in pure Python.
%package -n python3-jinja2
Summary: A fast and easy to use template engine written in pure Python
BuildRequires: python3-devel
BuildRequires: python3-markupsafe >= 2.0
BuildRequires: python3-setuptools
BuildRequires: python3-xml
%if 0%{?with_check}
BuildRequires: python3-pip
%endif
Requires: python3
Requires: python3-markupsafe
Provides: python3dist(jinja2) = %{version}-%{release}
Provides: python3.7dist(jinja2) = %{version}-%{release}
%description -n python3-jinja2
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.
%prep
%autosetup -p1 -n Jinja2-%{version}
sed -i 's/\r$//' LICENSE.rst # Fix wrong EOL encoding
%build
%py3_build
%install
%py3_install
%check
pip3 install tox
tox -e py%{python3_version_nodots}
%files -n python3-jinja2
%defattr(-,root,root)
%license LICENSE.rst
%{python3_sitelib}/jinja2
%{python3_sitelib}/Jinja2-%{version}-py%{python3_version}.egg-info
%changelog
* Wed Jan 24 2024 Tobias Brick <tobiasb@microsoft.com> - 3.0.3-3
- Backport CVE-2024-22195 from upstream
* Tue Mar 15 2022 Muhammad Falak <mwani@microsoft.com> - 3.0.3-2
- Use `py%{python3_version_nodots}` instead of harcoding `py39`
* Thu Mar 03 2022 Nick Samson <nisamson@microsoft.com> - 3.0.3-1
- Updated to 3.0.3
- Updated source URL
- Updated check section to use tox for testing
- Specified update for MarkupSafe
* Sat Dec 04 2021 Henry Beberman <henry.beberman@microsoft.com> - 2.10.1-4
- Explicitly provide python3dist(jinja2) because built in toolchain.
* Wed Oct 20 2021 Thomas Crain <thcrain@microsoft.com> - 2.10.1-3
- Remove python2 package and re-enable fatal python byte compilation errors
- Fix build instruction ordering
- Lint spec
* Fri Feb 05 2021 Joe Schmitt <joschmit@microsoft.com> - 2.10.1-2
- Make python byte compilation errors non-fatal due to python2 errors.
* Wed Mar 18 2020 Henry Beberman <henry.beberman@microsoft.com> - 2.10.1-1
- Update to 2.10.1. License verified.
* Tue Sep 03 2019 Mateusz Malisz <mamalisz@microsoft.com> - 2.10-2
- Initial CBL-Mariner import from Photon (license: Apache2).
* Sun Sep 09 2018 Tapas Kundu <tkundu@vmware.com> - 2.10-1
- Update to version 2.10
* Tue Jun 20 2017 Xiaolin Li <xiaolinl@vmware.com> - 2.9.5-6
- Add python3-setuptools and python3-xml to python3 sub package Buildrequires.
* Thu Jun 15 2017 Dheeraj Shetty <dheerajs@vmware.com> - 2.9.5-5
- Change python to python2
* Mon Jun 12 2017 Kumar Kaushik <kaushikk@vmware.com> - 2.9.5-4
- Fixing import error in python3.
* Wed Apr 26 2017 Dheeraj Shetty <dheerajs@vmware.com> - 2.9.5-3
- BuildRequires python-markupsafe , creating subpackage python3-jinja2
* Tue Apr 25 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> - 2.9.5-2
- Fix arch
* Mon Mar 27 2017 Sarah Choi <sarahc@vmware.com> - 2.9.5-1
- Upgrade version to 2.9.5
* Tue Dec 13 2016 Dheeraj Shetty <dheerajs@vmware.com> - 2.8-1
- Initial packaging for Photon