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