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