]> git.pld-linux.org Git - packages/python-HTMLgen.git/blobdiff - python-HTMLgen.spec
- Release: 6
[packages/python-HTMLgen.git] / python-HTMLgen.spec
index 05daaf9b8b57ca318de0393ff788e326525b9699..078836a20170476c814e109009a2ca5473f3bf81 100644 (file)
@@ -1,19 +1,20 @@
 %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)
 
@@ -35,7 +36,7 @@ platforms running Python 1.3 or greater. (HTMLcalendar.py requires
 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ê
@@ -57,18 +58,16 @@ tej bilioteki.
 
 %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
This page took 0.070071 seconds and 4 git commands to generate.