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