]>
Commit | Line | Data |
---|---|---|
d7e7debc | 1 | |
2 | %define module jinja | |
3 | Summary: Template engine | |
4 | Name: python-%{module} | |
5 | Version: 1.2 | |
366b6d33 | 6 | Release: 4 |
d7e7debc | 7 | License: BSD |
8 | Group: Development/Languages/Python | |
9 | Source0: http://pypi.python.org/packages/source/J/Jinja/Jinja-%{version}.tar.gz | |
10 | # Source0-md5: 1235a005ade00b213800ff1e798c0241 | |
11 | URL: http://jinja.pocoo.org/1/ | |
8276bc86 | 12 | BuildRequires: rpmbuild(macros) >= 1.710 |
d7e7debc | 13 | Requires: python-docutils >= 0.5 |
14 | BuildRequires: python-devel | |
15 | %pyrequires_eq python-modules | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | Jinja is a sandboxed template engine written in pure Python licensed | |
20 | under the BSD license. It provides a Django-like non-XML syntax and | |
21 | compiles templates into executable python code. It's basically a | |
22 | combination of Django templates and python code. | |
23 | ||
24 | %prep | |
25 | %setup -q -n Jinja-%{version} | |
26 | ||
27 | %build | |
dc088cd5 | 28 | %py_build |
d7e7debc | 29 | |
30 | %install | |
31 | rm -rf $RPM_BUILD_ROOT | |
32 | ||
dc088cd5 | 33 | %py_install |
d7e7debc | 34 | |
35 | %py_postclean | |
36 | ||
37 | %clean | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | ||
40 | %files | |
41 | %defattr(644,root,root,755) | |
42 | %doc PKG-INFO TODO AUTHORS | |
43 | %{py_sitedir}/%{module} | |
44 | %{py_sitedir}/*Jinja*.egg* |