Revert "- merged into python-jinja2.spec"
[packages/python3-jinja2.git] / python3-jinja2.spec
CommitLineData
e6068581
ER
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: 2
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
14BuildRequires: python3-distribute
15BuildRequires: python3-modules
16BuildRequires: rpm-pythonprov
17%if %{with doc}
18BuildRequires: sphinx-pdg
19%endif
20%pyrequires_eq python3-modules
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24A small but fast and easy to use stand-alone template engine written
25in pure python. Provides a Django inspired non-XML syntax but supports
26inline expressions and an optional sandboxed environment.
27
28
29%description -l pl.UTF-8
30Mały ale szybkie i łatwy w użyciu samodzielny silnik szablonów
31napisany w czystym Pythonie. Dostarcza podobne do Django, o odmiennej
32od XMLa składni i kompliowane do kodu Pythona szablony w opcjonalnie
33ograniczonym środowisku.
34
35%prep
36%setup -q -n Jinja2-%{version}
37
38%build
39%{__python3} setup.py build
40%if %{with doc}
41cd docs
42%{__make} html
43rm -rf _build/html/_sources
44%endif
45
46%install
47rm -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
56rm -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.0442 seconds and 4 git commands to generate.