From e6068581de993003dfd4bcf0ee72c23e4334d0df Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 5 Oct 2021 16:28:09 +0300 Subject: [PATCH] Revert "- merged into python-jinja2.spec" This reverts commit b81f42a03f3cb200b94df923201e46d3c1b88caa. --- python3-jinja2.spec | 65 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 python3-jinja2.spec diff --git a/python3-jinja2.spec b/python3-jinja2.spec new file mode 100644 index 0000000..47cb74e --- /dev/null +++ b/python3-jinja2.spec @@ -0,0 +1,65 @@ +%bcond_without doc +%define module jinja2 +Summary: Template engine +Summary(pl.UTF-8): Silnik szablonów +Name: python3-%{module} +Version: 2.3.1 +Release: 2 +License: BSD +Group: Development/Languages/Python +Source0: http://pypi.python.org/packages/source/J/Jinja2/Jinja2-%{version}.tar.gz +# Source0-md5: 391c7dd06c62dfe7e30ebaad7af0a401 +URL: http://pypi.python.org/pypi/Jinja2 +BuildRequires: python3-devel +BuildRequires: python3-distribute +BuildRequires: python3-modules +BuildRequires: rpm-pythonprov +%if %{with doc} +BuildRequires: sphinx-pdg +%endif +%pyrequires_eq python3-modules +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +A small but fast and easy to use stand-alone template engine written +in pure python. Provides a Django inspired non-XML syntax but supports +inline expressions and an optional sandboxed environment. + + +%description -l pl.UTF-8 +Mały ale szybkie i łatwy w użyciu samodzielny silnik szablonów +napisany w czystym Pythonie. Dostarcza podobne do Django, o odmiennej +od XMLa składni i kompliowane do kodu Pythona szablony w opcjonalnie +ograniczonym środowisku. + +%prep +%setup -q -n Jinja2-%{version} + +%build +%{__python3} setup.py build +%if %{with doc} +cd docs +%{__make} html +rm -rf _build/html/_sources +%endif + +%install +rm -rf $RPM_BUILD_ROOT + +%{__python3} setup.py install \ + --optimize=2 \ + --root=$RPM_BUILD_ROOT + +%py3_postclean + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc PKG-INFO AUTHORS CHANGES +%if %{with doc} +%doc docs/_build/html +%endif +%{py3_sitescriptdir}/%{module} +%{py3_sitescriptdir}/*Jinja*.egg* -- 2.43.0