- BR: distribute
[packages/python3-jinja2.git] / python3-jinja2.spec
1 %bcond_without  doc
2 %define module jinja2
3 Summary:        Template engine
4 Summary(pl.UTF-8):      Silnik szablonów
5 Name:           python3-%{module}
6 Version:        2.3.1
7 Release:        2
8 License:        BSD
9 Group:          Development/Languages/Python
10 Source0:        http://pypi.python.org/packages/source/J/Jinja2/Jinja2-%{version}.tar.gz
11 # Source0-md5:  391c7dd06c62dfe7e30ebaad7af0a401
12 URL:            http://pypi.python.org/pypi/Jinja2
13 BuildRequires:  python3-devel
14 BuildRequires:  python3-distribute
15 %if %{with doc}
16 BuildRequires:  sphinx-pdg
17 %endif
18 %pyrequires_eq  python3-modules
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 A small but fast and easy to use stand-alone template engine written
23 in pure python. Provides a Django inspired non-XML syntax but supports
24 inline expressions and an optional sandboxed environment.
25
26
27 %description -l pl.UTF-8
28 Mały ale szybkie i łatwy w użyciu samodzielny silnik szablonów
29 napisany w czystym Pythonie. Dostarcza podobne do Django, o odmiennej
30 od XMLa składni i kompliowane do kodu Pythona szablony w opcjonalnie
31 ograniczonym środowisku.
32
33 %prep
34 %setup -q -n Jinja2-%{version}
35
36 %build
37 %{__python3} setup.py build
38 %if %{with doc}
39 cd docs
40 make html
41 rm -rf _build/html/_sources
42 %endif
43
44 %install
45 rm -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
54 rm -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.074675 seconds and 4 git commands to generate.