]>
Commit | Line | Data |
---|---|---|
c77ad18e | 1 | |
ee1f188a | 2 | %define module HTMLgen |
4310363e | 3 | |
c4a72be4 | 4 | Summary: Class library to create HTML documents from within Python |
29c3f470 | 5 | Summary(pl.UTF-8): Moduł do tworzenia dokumentów w HTML przy użyciu Pythona |
4310363e | 6 | Name: python-%{module} |
7 | Version: 2.2.2 | |
933e18c1 | 8 | Release: 10 |
e078686d | 9 | License: distributable |
55fc8e7c | 10 | Group: Development/Languages/Python |
f9d5d606 | 11 | Source0: http://starship.python.net/crew/friedrich/%{module}.tgz |
6130815d | 12 | # Source0-md5: cd20f8b63d3215e57289ddbf56c97f48 |
f9d5d606 JB |
13 | Patch0: %{name}-fixpaths.patch |
14 | URL: http://starship.python.net/crew/friedrich/HTMLgen/html/main.html | |
2da21fea | 15 | BuildRequires: python-devel >= 2.2.1 |
646aae69 | 16 | BuildRequires: rpm-pythonprov |
f5fefd81 | 17 | %pyrequires_eq python |
55fc8e7c | 18 | BuildArch: noarch |
943f6019 | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
94c879db | 20 | |
21 | %description | |
f9d5d606 JB |
22 | HTMLgen is a class library for the generation of HTML documents with |
23 | Python scripts. It's used when you want to create HTML pages | |
24 | containing information which changes from time to time. For example | |
25 | you might want to have a page which provides an overall system summary | |
26 | of data collected nightly. Or maybe you have a catalog of data and | |
27 | images that you would like formed into a spiffy set of web pages for | |
28 | the world to browse. Python is a great scripting language for these | |
29 | tasks and with HTMLgen it's very straightforward to construct objects | |
30 | which are rendered out into consistently structured web pages. Of | |
31 | course, CGI scripts written in Python can take advantage of these | |
32 | classes as well. | |
94c879db | 33 | |
f9d5d606 JB |
34 | This software should work on both Unix and Macintosh and Win32 |
35 | platforms running Python 1.3 or greater. (HTMLcalendar.py requires | |
36 | 1.4) If you are running 1.5 the new re and string module enhancements | |
37 | are used for performance. | |
94c879db | 38 | |
b007f95b JR |
39 | %description -l pl.UTF-8 |
40 | HTMLGen jest modułem do tworzenia dokumentów w HTML-u za pomocą | |
41 | skryptów w Pythonie. Jest przydatny do generowania stron WWW | |
42 | zawierających okresowo zmieniające sie informacje. Na przykład stronę | |
43 | zawierającą dzienne podsumowania statystyki wykorzystania serwera. | |
44 | Innym typowym zastosowaniem jest przygotowywanie strony zawierającej | |
45 | opis i odnośniki do rysunków znajdujących sie w określonym katalogu, | |
46 | tak aby można je było łatwo oglądać przez WWW. Python jest dobrym | |
47 | językiem do programowania takich zadań, a wykorzystanie biblioteki | |
48 | HTMLgen znacznie ułatwia konstruowanie obiektów, które po | |
49 | przetworzeniu przez tę bibliotekę utworzą spójną stronę WWW. | |
50 | Oczywiście skrypty CGI pisane w Pythonie również mogą robić użytek z | |
5daf837e | 51 | tej biblioteki. |
ab4b9bd6 | 52 | |
94c879db | 53 | %prep |
55fc8e7c | 54 | %setup -q -n HTMLgen |
bd06ce2d | 55 | %patch0 -p0 |
94c879db | 56 | |
57 | %build | |
58 | ||
59 | %install | |
55fc8e7c | 60 | rm -rf $RPM_BUILD_ROOT |
bf8d638e | 61 | install -d $RPM_BUILD_ROOT%{py_sitescriptdir}/HTMLgen |
55fc8e7c | 62 | |
bf8d638e JK |
63 | mv -f *.py $RPM_BUILD_ROOT%{py_sitescriptdir}/HTMLgen |
64 | echo %{module} > $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}.pth | |
4310363e | 65 | |
94c879db | 66 | %clean |
94c879db | 67 | rm -rf $RPM_BUILD_ROOT |
c4a72be4 | 68 | |
94c879db | 69 | %files |
55fc8e7c | 70 | %defattr(644,root,root,755) |
69bc8084 | 71 | %doc README ChangeLog data html image *.rc |
bf8d638e JK |
72 | %{py_sitescriptdir}/HTMLgen |
73 | %{py_sitescriptdir}/HTMLgen.pth |