python-Jinja2/python-jinja2.spec

137 lines
4.6 KiB
RPMSpec

%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
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
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel
BuildRequires: python3.11dist(markupsafe)
## AUTOBUILDREQ-END
BuildRequires: libpython3-devel >= 3.11.5
%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 "%{?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}
%build
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
#%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
%files %{?pyappend}
%defattr(-,root,root)
%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
* Sun Sep 24 2023 Automatic Build System <autodist@mambasoft.it> 3.1.2-2mamba
- rebuilt with python3 = 3.11.5
* Sat Apr 30 2022 Automatic Build System <autodist@mambasoft.it> 3.1.2-1mamba
- automatic version update by autodist
* Fri Apr 08 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.1-2mamba
- rebuilt with python 3.10
* Sat Mar 26 2022 Automatic Build System <autodist@mambasoft.it> 3.1.1-1mamba
- automatic version update by autodist
* Thu Mar 24 2022 Automatic Build System <autodist@mambasoft.it> 3.1.0-1mamba
- automatic version update by autodist
* Thu Nov 11 2021 Automatic Build System <autodist@mambasoft.it> 3.0.3-1mamba
- automatic version update by autodist
* Tue Oct 05 2021 Automatic Build System <autodist@mambasoft.it> 3.0.2-1mamba
- automatic version update by autodist
* Sun May 30 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.1-1mamba
- update to 3.0.1
* Sat Apr 03 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.0a1-2mamba
- rebuilt with distdeps
* Mon Sep 14 2020 Automatic Build System <autodist@mambasoft.it> 3.0.0a1-1mamba
- automatic update by autodist
* Mon Dec 30 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.10.3-1mamba
- update to 2.10.3
* Sat Aug 10 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.10-2mamba
- added requirement for python-markupsafe
* Thu May 16 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.10-1mamba
- update to 2.10
* Thu Oct 26 2017 Automatic Build System <autodist@mambasoft.it> 2.9.6-1mamba
- automatic update by autodist
* Tue Aug 30 2016 Automatic Build System <autodist@mambasoft.it> 2.8-1mamba
- automatic update by autodist
* Sat May 16 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.3-2mamba
- python3 subpackage
* Mon Jul 07 2014 Automatic Build System <autodist@mambasoft.it> 2.7.3-1mamba
- automatic update by autodist
* Sun Feb 23 2014 Automatic Build System <autodist@mambasoft.it> 2.7.2-1mamba
- automatic update by autodist
* Sun Aug 11 2013 Automatic Build System <autodist@mambasoft.it> 2.7.1-1mamba
- automatic update by autodist
* Sun Jun 09 2013 Automatic Build System <autodist@mambasoft.it> 2.7-1mamba
- automatic version update by autodist
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6-2mamba
- python 2.7 mass rebuild
* Sat Jul 30 2011 Automatic Build System <autodist@mambasoft.it> 2.6-1mamba
- automatic update by autodist
* Tue Nov 09 2010 Automatic Build System <autodist@mambasoft.it> 2.5.5-1mamba
- automatic update by autodist
* Fri Aug 20 2010 Automatic Build System <autodist@mambasoft.it> 2.5.2-1mamba
- automatic update by autodist
* Thu Jun 24 2010 Automatic Build System <autodist@mambasoft.it> 2.5-1mamba
- automatic update by autodist
* Sat Jan 02 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.1-1mamba
- package created by autospec