- BR: distribute
[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
80e3596f 7Release: 2
6159bc3d
AF
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
80e3596f 14BuildRequires: python3-distribute
6159bc3d
AF
15%if %{with doc}
16BuildRequires: sphinx-pdg
17%endif
18%pyrequires_eq python3-modules
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22A small but fast and easy to use stand-alone template engine written
23in pure python. Provides a Django inspired non-XML syntax but supports
24inline expressions and an optional sandboxed environment.
25
26
27%description -l pl.UTF-8
28Mały ale szybkie i łatwy w użyciu samodzielny silnik szablonów
29napisany w czystym Pythonie. Dostarcza podobne do Django, o odmiennej
30od XMLa składni i kompliowane do kodu Pythona szablony w opcjonalnie
31ograniczonym środowisku.
32
33%prep
34%setup -q -n Jinja2-%{version}
35
36%build
37%{__python3} setup.py build
38%if %{with doc}
39cd docs
40make html
41rm -rf _build/html/_sources
42%endif
43
44%install
45rm -rf $RPM_BUILD_ROOT
46
47%{__python3} setup.py install \
48 --optimize=2 \
49 --root=$RPM_BUILD_ROOT
50
51%py3_postclean
52
53%clean
54rm -rf $RPM_BUILD_ROOT
55
56%files
57%defattr(644,root,root,755)
58%doc PKG-INFO AUTHORS CHANGES
59%if %{with doc}
60%doc docs/_build/html
61%endif
62%{py3_sitescriptdir}/%{module}
63%{py3_sitescriptdir}/*Jinja*.egg*
This page took 0.044212 seconds and 4 git commands to generate.