diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 07:08:16 +0000 | 
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 07:08:16 +0000 | 
| commit | 4536cddee99cbe6a0a270615e13ec57a58062994 (patch) | |
| tree | 6642b31d34049f06e2fefeb79b9f6ae36775b022 /python-jinja2.spec | |
| parent | 4f8f7ccc52f81b25912de72ab4704748e06d8c11 (diff) | |
automatic import of python-jinja2
Diffstat (limited to 'python-jinja2.spec')
| -rw-r--r-- | python-jinja2.spec | 131 | 
1 files changed, 131 insertions, 0 deletions
| diff --git a/python-jinja2.spec b/python-jinja2.spec new file mode 100644 index 0000000..b621aac --- /dev/null +++ b/python-jinja2.spec @@ -0,0 +1,131 @@ +%global _empty_manifest_terminate_build 0 +Name:		python-Jinja2 +Version:	3.1.2 +Release:	1 +Summary:	A very fast and expressive template engine. +License:	BSD-3-Clause +URL:		https://palletsprojects.com/p/jinja/ +Source0:	https://mirrors.nju.edu.cn/pypi/web/packages/7a/ff/75c28576a1d900e87eb6335b063fab47a8ef3c8b4d88524c4bf78f670cce/Jinja2-3.1.2.tar.gz +BuildArch:	noarch + +Requires:	python3-MarkupSafe +Requires:	python3-Babel + +%description +Jinja is a fast, expressive, extensible templating engine. Special +placeholders in the template allow writing code similar to Python +syntax. Then the template is passed data to render the final document. +It includes: +-   Template inheritance and inclusion. +-   Define and import macros within templates. +-   HTML templates can use autoescaping to prevent XSS from untrusted +    user input. +-   A sandboxed environment can safely render untrusted templates. +-   AsyncIO support for generating templates and calling async +    functions. +-   I18N support with Babel. +-   Templates are compiled to optimized Python code just-in-time and +    cached, or can be compiled ahead-of-time. +-   Exceptions point to the correct line in templates to make debugging +    easier. +-   Extensible filters, tests, functions, and even syntax. +Jinja's philosophy is that while application logic belongs in Python if +possible, it shouldn't make the template designer's job difficult by +restricting functionality too much. + +%package -n python3-Jinja2 +Summary:	A very fast and expressive template engine. +Provides:	python-Jinja2 +BuildRequires:	python3-devel +BuildRequires:	python3-setuptools +BuildRequires:	python3-pip +%description -n python3-Jinja2 +Jinja is a fast, expressive, extensible templating engine. Special +placeholders in the template allow writing code similar to Python +syntax. Then the template is passed data to render the final document. +It includes: +-   Template inheritance and inclusion. +-   Define and import macros within templates. +-   HTML templates can use autoescaping to prevent XSS from untrusted +    user input. +-   A sandboxed environment can safely render untrusted templates. +-   AsyncIO support for generating templates and calling async +    functions. +-   I18N support with Babel. +-   Templates are compiled to optimized Python code just-in-time and +    cached, or can be compiled ahead-of-time. +-   Exceptions point to the correct line in templates to make debugging +    easier. +-   Extensible filters, tests, functions, and even syntax. +Jinja's philosophy is that while application logic belongs in Python if +possible, it shouldn't make the template designer's job difficult by +restricting functionality too much. + +%package help +Summary:	Development documents and examples for Jinja2 +Provides:	python3-Jinja2-doc +%description help +Jinja is a fast, expressive, extensible templating engine. Special +placeholders in the template allow writing code similar to Python +syntax. Then the template is passed data to render the final document. +It includes: +-   Template inheritance and inclusion. +-   Define and import macros within templates. +-   HTML templates can use autoescaping to prevent XSS from untrusted +    user input. +-   A sandboxed environment can safely render untrusted templates. +-   AsyncIO support for generating templates and calling async +    functions. +-   I18N support with Babel. +-   Templates are compiled to optimized Python code just-in-time and +    cached, or can be compiled ahead-of-time. +-   Exceptions point to the correct line in templates to make debugging +    easier. +-   Extensible filters, tests, functions, and even syntax. +Jinja's philosophy is that while application logic belongs in Python if +possible, it shouldn't make the template designer's job difficult by +restricting functionality too much. + +%prep +%autosetup -n Jinja2-3.1.2 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then +	find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then +	find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then +	find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then +	find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then +	find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-Jinja2 -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 3.1.2-1 +- Package Spec generated | 
