- Python 3.x version
[packages/python3-jinja2.git] / python3-jinja2.spec
CommitLineData
6159bc3d
AF
1%bcond_without doc
2%define module jinja2
3Summary: Template engine
4Summary(pl.UTF-8): Silnik szablonów
5Name: python3-%{module}
6Version: 2.3.1
7Release: 1
8License: BSD
9Group: Development/Languages/Python
10Source0: http://pypi.python.org/packages/source/J/Jinja2/Jinja2-%{version}.tar.gz
11# Source0-md5: 391c7dd06c62dfe7e30ebaad7af0a401
12URL: http://pypi.python.org/pypi/Jinja2
13BuildRequires: python3-devel
14%if %{with doc}
15BuildRequires: sphinx-pdg
16%endif
17%pyrequires_eq python3-modules
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21A small but fast and easy to use stand-alone template engine written
22in pure python. Provides a Django inspired non-XML syntax but supports
23inline expressions and an optional sandboxed environment.
24
25
26%description -l pl.UTF-8
27Mały ale szybkie i łatwy w użyciu samodzielny silnik szablonów
28napisany w czystym Pythonie. Dostarcza podobne do Django, o odmiennej
29od XMLa składni i kompliowane do kodu Pythona szablony w opcjonalnie
30ograniczonym środowisku.
31
32%prep
33%setup -q -n Jinja2-%{version}
34
35%build
36%{__python3} setup.py build
37%if %{with doc}
38cd docs
39make html
40rm -rf _build/html/_sources
41%endif
42
43%install
44rm -rf $RPM_BUILD_ROOT
45
46%{__python3} setup.py install \
47 --optimize=2 \
48 --root=$RPM_BUILD_ROOT
49
50%py3_postclean
51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%files
56%defattr(644,root,root,755)
57%doc PKG-INFO AUTHORS CHANGES
58%if %{with doc}
59%doc docs/_build/html
60%endif
61%{py3_sitescriptdir}/%{module}
62%{py3_sitescriptdir}/*Jinja*.egg*
This page took 0.055596 seconds and 4 git commands to generate.