%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
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
+BuildRequires: python-devel >= 2.2.1
%pyrequires_eq python
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%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