%include /usr/lib/rpm/macros.python
-%define module HTMLgen
+%define module HTMLgen
-Summary: Class library to create HTML documents from within Python
-Summary(pl): Modu³ do tworzenia dokumentów w HTML przy u¿yciu Pythona
+Summary: Class library to create HTML documents from within Python
+Summary(pl): Modu³ do tworzenia dokumentów w HTML przy u¿yciu Pythona
Name: python-%{module}
Version: 2.2.2
-Release: 5
+Release: 6
License: distributable
Group: Development/Languages/Python
Source0: http://starship.python.net/crew/friedrich/%{module}.tgz
+# Source0-md5: cd20f8b63d3215e57289ddbf56c97f48
Patch0: %{name}-fixpaths.patch
URL: http://starship.python.net/crew/friedrich/HTMLgen/html/main.html
-BuildRequires: python-devel >= 2.2
-%requires_eq python
+BuildRequires: python-devel >= 2.2.1
+%pyrequires_eq python
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
1.4) If you are running 1.5 the new re and string module enhancements
are used for performance.
-%description -l pl
+%description -l pl
HTMLGen jest modu³em do tworzenia dokumentów w HTML-u za pomoc±
skryptów w Pythonie. Jest przydatny do generowania stron WWW
zawieraj±cych okresowo zmieniaj±ce sie informacje. Na przyk³ad stronê
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_libdir}/python1.5/site-packages/HTMLgen
+install -d $RPM_BUILD_ROOT%{py_sitescriptdir}/HTMLgen
-mv -f *.py $RPM_BUILD_ROOT%{_libdir}/python1.5/site-packages/HTMLgen
-echo %{module} > $RPM_BUILD_ROOT%{_libdir}/python1.5/site-packages/%{module}.pth
-
-gzip -9nf README ChangeLog
+mv -f *.py $RPM_BUILD_ROOT%{py_sitescriptdir}/HTMLgen
+echo %{module} > $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}.pth
%clean
rm -rf $RPM_BUILD_ROOT
-
+
%files
%defattr(644,root,root,755)
-%doc {README,ChangeLog}.gz data html image *.rc
-%{py_sitedir}/site-packages/HTMLgen
-%{py_sitedir}/site-packages/HTMLgen.pth
+%doc README ChangeLog data html image *.rc
+%{py_sitescriptdir}/HTMLgen
+%{py_sitescriptdir}/HTMLgen.pth