]>
Commit | Line | Data |
---|---|---|
bd14d20f | 1 | |
9c8ac0f6 | 2 | %define module HTMLTemplate |
bd14d20f MG |
3 | |
4 | Summary: Another (X)HTML template Python module | |
1c1fe3b5 | 5 | Summary(pl.UTF-8): Kolejny moduł Pythona do przetwarzania szablonów (X)HTML |
bd14d20f | 6 | Name: python-%{module} |
a47a4759 | 7 | Version: 1.4.1 |
67712a8e | 8 | Release: 2 |
bd14d20f MG |
9 | License: LGPL |
10 | Group: Libraries/Python | |
11 | Source0: http://freespace.virgin.net/hamish.sanderson/%{module}-%{version}.tar.gz | |
a47a4759 | 12 | # Source0-md5: 74bbaee9b851b17b5c5cd1658ea42897 |
bd14d20f | 13 | URL: http://freespace.virgin.net/hamish.sanderson/htmltemplate.html |
5100e07b | 14 | BuildRequires: python-devel >= 1:2.3 |
243bedc8 | 15 | %pyrequires_eq python-libs |
bd14d20f MG |
16 | BuildArch: noarch |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | HTMLTemplate converts (X)HTML templates into a simple Python object | |
21 | model that can be manipulated by ordinary Python scripts. Fast, | |
22 | powerful and easy to use. | |
23 | ||
bb4c0610 JR |
24 | %description -l pl.UTF-8 |
25 | HTMLTemplate przekształca szablony (X)HTML w proste drzewo obiektów w | |
26 | Pythonie, które może być przetwarzane przy pomocy skryptów pisanych w | |
27 | tym języku. Moduł HTMLTemplte jest szybki, efektywny i łatwy w użyciu. | |
bd14d20f MG |
28 | |
29 | %package doc | |
30 | Summary: Documentation for HTMLTemplate module | |
1c1fe3b5 | 31 | Summary(pl.UTF-8): Dokumentacja do modułu HTMLTemplate |
bd14d20f MG |
32 | Group: Libraries/Python |
33 | Requires: %{name} = %{version}-%{release} | |
34 | ||
35 | %description doc | |
36 | This package contains documentation files for HTMLTemplate Python | |
37 | module. | |
38 | ||
bb4c0610 JR |
39 | %description doc -l pl.UTF-8 |
40 | Pakiet zawierający dokumentację dla modułu Pythona HTMLTemplate. | |
bd14d20f MG |
41 | |
42 | %package examples | |
43 | Summary: Examples for HTMLTemplate module | |
1c1fe3b5 | 44 | Summary(pl.UTF-8): Przykłady do modułu HTMLTemplate |
bd14d20f MG |
45 | Group: Libraries/Python |
46 | Requires: %{name} = %{version}-%{release} | |
47 | ||
48 | %description examples | |
49 | This package contains example files for HTMLTemplate Python module. | |
50 | ||
bb4c0610 JR |
51 | %description examples -l pl.UTF-8 |
52 | Pakiet zawierający przykładowe skrypty dla modułu Pythona HTMLTemplate. | |
bd14d20f MG |
53 | |
54 | %prep | |
55 | %setup -q -n %{module}-%{version} | |
56 | ||
57 | %build | |
58 | python setup.py build_ext | |
59 | ||
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | install -d $RPM_BUILD_ROOT{%{py_sitescriptdir},%{_examplesdir}/%{name}-%{version}} | |
63 | ||
64 | python setup.py install \ | |
65 | --root=$RPM_BUILD_ROOT \ | |
66 | --install-lib=%{py_sitescriptdir} \ | |
67 | --optimize=2 | |
68 | ||
69 | find $RPM_BUILD_ROOT%{py_sitescriptdir} -name \*.py -exec rm {} \; | |
70 | ||
71 | cp -a Examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
72 | ||
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %files | |
77 | %defattr(644,root,root,755) | |
a47a4759 | 78 | %doc README.txt |
bd14d20f MG |
79 | %{py_sitescriptdir}/HTMLTemplate.py[oc] |
80 | ||
81 | %files doc | |
82 | %defattr(644,root,root,755) | |
a47a4759 | 83 | %doc Documentation/{Manual.txt,Tutorial_1.txt,Tutorial_2.txt,FAQ.txt} |
bd14d20f MG |
84 | |
85 | %files examples | |
86 | %defattr(644,root,root,755) | |
87 | %{_examplesdir}/%{name}-%{version} |