Revert "- merged into python-jinja2.spec"
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 5 Oct 2021 13:28:09 +0000 (16:28 +0300)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 5 Oct 2021 13:28:09 +0000 (16:28 +0300)
This reverts commit b81f42a03f3cb200b94df923201e46d3c1b88caa.

python3-jinja2.spec [new file with mode: 0644]

diff --git a/python3-jinja2.spec b/python3-jinja2.spec
new file mode 100644 (file)
index 0000000..47cb74e
--- /dev/null
@@ -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*
This page took 0.07225 seconds and 4 git commands to generate.