1 | %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
---|
2 | |
---|
3 | Name: python-mako |
---|
4 | Version: 0.3.3 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | Summary: Mako template library for Python |
---|
7 | Summary(ja): Python の Mako テンプレートライブラリ |
---|
8 | |
---|
9 | Group: Development/Languages |
---|
10 | License: MIT |
---|
11 | URL: http://www.makotemplates.org/ |
---|
12 | Source0: http://www.makotemplates.org/downloads/Mako-%{version}.tar.gz |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
14 | BuildArch: noarch |
---|
15 | BuildRequires: python-setuptools |
---|
16 | Requires: python-beaker |
---|
17 | |
---|
18 | %description |
---|
19 | Mako is a template library written in Python. It provides a familiar, non-XML |
---|
20 | syntax which compiles into Python modules for maximum performance. Mako's |
---|
21 | syntax and API borrows from the best ideas of many others, including Django |
---|
22 | templates, Cheetah, Myghty, and Genshi. Conceptually, Mako is an embedded |
---|
23 | Python (i.e. Python Server Page) language, which refines the familiar ideas of |
---|
24 | componentized layout and inheritance to produce one of the most straightforward |
---|
25 | and flexible models available, while also maintaining close ties to Python |
---|
26 | calling and scoping semantics. |
---|
27 | |
---|
28 | |
---|
29 | %prep |
---|
30 | %setup -q -n Mako-%{version} |
---|
31 | |
---|
32 | |
---|
33 | %build |
---|
34 | %{__python} setup.py build |
---|
35 | |
---|
36 | |
---|
37 | %install |
---|
38 | rm -rf $RPM_BUILD_ROOT |
---|
39 | %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT |
---|
40 | |
---|
41 | |
---|
42 | %clean |
---|
43 | rm -rf $RPM_BUILD_ROOT |
---|
44 | |
---|
45 | |
---|
46 | %files |
---|
47 | %defattr(-,root,root,-) |
---|
48 | %doc CHANGES LICENSE README doc examples |
---|
49 | %{_bindir}/mako-render |
---|
50 | %{python_sitelib}/* |
---|
51 | |
---|
52 | |
---|
53 | %changelog |
---|
54 | * Sat Jun 5 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.3.3-1 |
---|
55 | - new upstream release |
---|
56 | |
---|
57 | * Thu Mar 18 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.3.2-1 |
---|
58 | - initial build for VineSeed |
---|
59 | |
---|
60 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-3 |
---|
61 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
62 | |
---|
63 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-2 |
---|
64 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
65 | |
---|
66 | * Tue Jan 06 2009 Luke Macken <lmacken@redhat.com> - 0.2.4-1 |
---|
67 | - Update to 0.2.4 |
---|
68 | |
---|
69 | * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.1.10-3 |
---|
70 | - Rebuild for Python 2.6 |
---|
71 | |
---|
72 | * Sun May 11 2008 Kyle VanderBeek <kylev@kylev.com> - 0.1.10-2 |
---|
73 | - Fix rpmlint warnings. |
---|
74 | - Add docs and examples. |
---|
75 | |
---|
76 | * Wed Apr 9 2008 Kyle VanderBeek <kylev@kylev.com> - 0.1.10-1 |
---|
77 | - Initial version. |
---|