update to 3.1.4 [release 3.1.4-1mamba;Thu May 09 2024]

This commit is contained in:
Silvan Calarco 2024-07-28 14:59:16 +02:00
parent 827a40a7e8
commit 172f267dd3
2 changed files with 25 additions and 18 deletions

View File

@ -1,4 +1,4 @@
# python-Jinja2
# python-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.

View File

@ -1,5 +1,6 @@
Name: python-Jinja2
Version: 3.1.3
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-jinja2
Version: 3.1.4
Release: 1mamba
Summary: A small but fast and easy to use stand-alone template engine written in pure python.
Group: System/Libraries/Python
@ -7,7 +8,7 @@ Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://palletsprojects.com/p/jinja/
Source: http://pypi.debian.net/Jinja2/Jinja2-%{version}.tar.gz
Source: http://pypi.debian.net/Jinja2/jinja2-%{version}.tar.gz
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel
@ -19,34 +20,40 @@ BuildRequires: libpython3-devel >= 3.11.5
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 "%{?with_pyver}"
%define py_requires_append \
Provides: python-Jinja2-%{?pyappend} \
Obsoletes: python-Jinja2-%{?pyappend} < 3.1.4
%pyver_package
%endif
%prep
%setup -q -n Jinja2-%{version}
%setup -q -n jinja2-%{version}
%build
CFLAGS="%{optflags}" %{__python} setup.py build
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch} \
--record=%{name}.filelist
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
#%if "%{?with_pyver}" != "3"
## Rename any conflicting file outside of python site packages tree
#for f in %{_bindir}/pdm; do
# mv %{buildroot}${f}{,-%{?pyappend}}
#done
#%endif
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %{?pyappend} -f %{name}.filelist
%files %{?pyappend}
%defattr(-,root,root)
%dir %{python_sitearch}/Jinja2-%{version}-py*.egg-info
%{python_sitearch}/Jinja2-%{version}-py*.egg-info/*
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
%dir %{python_sitelib}/%{pkgname}
%{python_sitelib}/%{pkgname}/*
%changelog
* Thu May 09 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.4-1mamba
- update to 3.1.4
* Thu Jan 11 2024 Automatic Build System <autodist@openmamba.org> 3.1.3-1mamba
- automatic version update by autodist