From e0f7a33ed254933020f911e7eac043953bb2678f Mon Sep 17 00:00:00 2001
From: Kevin Deldycke <kevin@nexedi.com>
Date: Tue, 10 Jan 2006 13:14:56 +0000
Subject: [PATCH] Commit Nexedi 10.2 spec files (extracted from the Nexedi RPM
 repository)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5071 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/spec/CMFActivity.spec            | 10 +-
 product/ERP5/spec/CMFCategory.spec            | 12 +--
 product/ERP5/spec/CMFReportTool.spec          | 35 +++++--
 product/ERP5/spec/ERP5.spec                   | 86 ++++++++----------
 product/ERP5/spec/ERP5Catalog.spec            | 15 +--
 product/ERP5/spec/ERP5Form.spec               |  8 +-
 product/ERP5/spec/ERP5SyncML.spec             | 10 +-
 product/ERP5/spec/ERP5Type.spec               | 14 +--
 product/ERP5/spec/ZSQLCatalog.spec            |  2 +-
 product/ERP5/spec/ZopeTestCase.spec           | 49 ++++++++++
 product/ERP5/spec/erp5diff.spec               |  7 +-
 product/ERP5/spec/python-reportlab-accel.spec | 46 ++++++++++
 product/ERP5/spec/python-reportlab.spec       | 91 ++++++++++++-------
 13 files changed, 261 insertions(+), 124 deletions(-)
 create mode 100755 product/ERP5/spec/ZopeTestCase.spec
 create mode 100755 product/ERP5/spec/python-reportlab-accel.spec

diff --git a/product/ERP5/spec/CMFActivity.spec b/product/ERP5/spec/CMFActivity.spec
index bb53b1717d..847f2c48ea 100755
--- a/product/ERP5/spec/CMFActivity.spec
+++ b/product/ERP5/spec/CMFActivity.spec
@@ -1,6 +1,6 @@
 Name:               CMFActivity
 Summary:            Activity Tool for zope
-Version:            0.8
+Version:            0.9
 Release:            1mdk
 Group:              Development/Python
 Requires:           zope
@@ -39,14 +39,14 @@ install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Constraint
 install %{name}-%{version}/Constraint/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Constraint
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Document
 install %{name}-%{version}/Document/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Document
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
-install %{name}-%{version}/dtml/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
-install %{name}-%{version}/help/*.stx $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Interface
 install %{name}-%{version}/Interface/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Interface
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/PropertySheet
 install %{name}-%{version}/PropertySheet/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/PropertySheet
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
+install %{name}-%{version}/dtml/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
+install %{name}-%{version}/help/*.stx $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/activity
 install %{name}-%{version}/skins/activity/*.zsql $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/activity
diff --git a/product/ERP5/spec/CMFCategory.spec b/product/ERP5/spec/CMFCategory.spec
index fac866c39b..2673dfaebd 100755
--- a/product/ERP5/spec/CMFCategory.spec
+++ b/product/ERP5/spec/CMFCategory.spec
@@ -1,6 +1,6 @@
 Name:               CMFCategory
 Summary:            All algorithms related to categories and relations in CMF
-Version:            0.8
+Version:            0.9
 Release:            1mdk
 Group:              Development/Python
 Requires:           zope
@@ -41,17 +41,17 @@ install %{name}-%{version}/*.txt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Produ
 install %{name}-%{version}/*.png $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Constraint
 install %{name}-%{version}/Constraint/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Constraint
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/doc
-install %{name}-%{version}/doc/*.txt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/doc
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Document
 install %{name}-%{version}/Document/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Document
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
-install %{name}-%{version}/dtml/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Interface
 install %{name}-%{version}/Interface/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Interface
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/PropertySheet
 install %{name}-%{version}/PropertySheet/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/PropertySheet
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/doc
+install %{name}-%{version}/doc/*.txt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/doc
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
+install %{name}-%{version}/dtml/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/tests
 install %{name}-%{version}/tests/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/tests
diff --git a/product/ERP5/spec/CMFReportTool.spec b/product/ERP5/spec/CMFReportTool.spec
index 1adeb07a20..8dd08d1f25 100755
--- a/product/ERP5/spec/CMFReportTool.spec
+++ b/product/ERP5/spec/CMFReportTool.spec
@@ -1,17 +1,16 @@
 Name:               CMFReportTool
 Summary:            A Zope product to generate PDF reports
-Version:            0.1.1
-Release:            6mdk
+Version:            0.1.1.20050422
+Release:            1mdk
 Group:              Development/Python
 Requires:           zope CMF python-reportlab
 License:            GPL
 URL:                http://www.zope.org/Members/jack-e/CMFReportTool/
-Packager:           Sebastien Robin <seb@nexedi.com>
+Packager:           Yoshinori Okuji <yo@nexedi.com>
 BuildRoot:          %{_tmppath}/%{name}-%{version}-rootdir
 Buildarch:          noarch
 
 Source: %{name}-%{version}.tar.bz2
-Patch1: CMFReportTool_parse.patch
 
 #----------------------------------------------------------------------
 %description
@@ -25,7 +24,6 @@ the python reportlab library.
 
 rm -rf $RPM_BUILD_ROOT
 %setup -q
-%patch1 -p1
 
 #----------------------------------------------------------------------
 %build
@@ -35,13 +33,18 @@ rm -rf $RPM_BUILD_ROOT
 
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}
 install *.* $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}
+install oo2pt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}
 
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/doc
 install doc/*.* $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/doc
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/doc/examples
 install doc/examples/*.* $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/doc/examples
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/doc/htmldoc
-install doc/htmldoc/*.* $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/doc/htmldoc
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/doc/diagram
+install doc/diagram/*.* $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/doc/diagram
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/doc/pdf
+install doc/pdf/*.* $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/doc/pdf
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/doc/pml
+install doc/pml/*.* $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/doc/pml
 
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
 install dtml/*.* $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
@@ -72,10 +75,24 @@ rm -rf $RPM_BUILD_ROOT
 
 #----------------------------------------------------------------------
 %changelog
-* Thu Nov 20 2003 Sebastien Robin <seb@nexedi.com> 0.1.1-6md
+* Thu Apr  4 2005 Yoshinori Okuji <yo@nexedi.com> 0.1.1.20050422-1mdk
+- Grab a new upstream version.
+
+* Wed May 19 2004 Yoshinori Okuji <yo@nexedi.com> 0.1.1-7.20040421.3mdk
+- Correct the return value of wrap in case where the paragraph cannot
+  be split.
+
+* Wed Apr 28 2004 Yoshinori Okuji <yo@nexedi.com> 0.1.1-7.20040421.2mdk
+- Compress the patch with bzip2
+- Add one more patch to fix a unicode problem in td.
+
+* Wed Apr 21 2004 Yoshinori Okuji <yo@nexedi.com> 0.1.1-7.20040421.1mdk
+- Upgrade to the current CVS version
+
+* Thu Nov 20 2003 Sebastien Robin <seb@nexedi.com> 0.1.1-6mdk
 - Added new patch
 
-* Wed Sep 12 2003 Sebastien Robin <seb@nexedi.com> 0.1.1-5md
+* Wed Sep 12 2003 Sebastien Robin <seb@nexedi.com> 0.1.1-5mdk
 - Make now signed rpm
 
 * Wed Sep 05 2003 Sebastien Robin <seb@nexedi.com> 0.1.1-4mdk
diff --git a/product/ERP5/spec/ERP5.spec b/product/ERP5/spec/ERP5.spec
index 720eb62d50..4f1cd2fe8d 100755
--- a/product/ERP5/spec/ERP5.spec
+++ b/product/ERP5/spec/ERP5.spec
@@ -1,6 +1,6 @@
 Name:               ERP5
 Summary:            A Zope framework to implement ERP software
-Version:            0.8
+Version:            0.9
 Release:            1mdk
 Group:              Development/Python
 Requires:           zope, ExtFile, ZSQLCatalog, Photo, CMFPhoto, BTreeFolder2, Formulator, Localizer, CMFReportTool, CMFMailIn, ZMySQLDA, PyXML, python-reportlab, ERP5Catalog, ERP5Form, ERP5SyncML, CMFCategory, ERP5Type, python-imaging, TranslationService, python-numeric, python-psyco, python-glpk, CMFActivity
@@ -47,7 +47,6 @@ install %{name}-%{version}/*.txt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Produ
 install %{name}-%{version}/*.png $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/
 install %{name}-%{version}/*.stx $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/
 install %{name}-%{version}/*.gif $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/bootstrap
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Capacity
 install %{name}-%{version}/Capacity/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Capacity
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Constraint
@@ -59,36 +58,48 @@ install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/DeliverySo
 install %{name}-%{version}/DeliverySolver/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/DeliverySolver
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Document
 install %{name}-%{version}/Document/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Document
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
-install %{name}-%{version}/dtml/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Extensions
 install %{name}-%{version}/Extensions/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Extensions
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/functest
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/functest/anonymous
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/functest/member
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
-install %{name}-%{version}/help/*.stx $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/import
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Interface
 install %{name}-%{version}/Interface/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Interface
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/patch
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/PropertySheet
 install %{name}-%{version}/PropertySheet/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/PropertySheet
 install %{name}-%{version}/PropertySheet/*.stx $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/PropertySheet
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Simulation
 install %{name}-%{version}/Simulation/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Simulation
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/TargetSolver
+install %{name}-%{version}/TargetSolver/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/TargetSolver
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Tool
+install %{name}-%{version}/Tool/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Tool
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Tool/dtml
+install %{name}-%{version}/Tool/dtml/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Tool/dtml
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/bootstrap
+install %{name}-%{version}/bootstrap/*.xml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/bootstrap
+install %{name}-%{version}/bootstrap/*.bt5 $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/bootstrap
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
+install %{name}-%{version}/dtml/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/functest
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/functest/anonymous
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/functest/member
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
+install %{name}-%{version}/help/*.stx $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/import
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/patch
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5
-install %{name}-%{version}/skins/erp5/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5
-install %{name}-%{version}/skins/erp5/*.png $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5
-install %{name}-%{version}/skins/erp5/*.pt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5
-install %{name}-%{version}/skins/erp5/*.form $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5
-install %{name}-%{version}/skins/erp5/*.zsql $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_accounting
-install %{name}-%{version}/skins/erp5_accounting/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_accounting
-install %{name}-%{version}/skins/erp5_accounting/*.pt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_accounting
-install %{name}-%{version}/skins/erp5_accounting/*.form $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_accounting
-install %{name}-%{version}/skins/erp5_accounting/*.zsql $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_accounting
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_test
+install %{name}-%{version}/skins/erp5_test/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_test
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_html_style
+install %{name}-%{version}/skins/erp5_html_style/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_html_style
+install %{name}-%{version}/skins/erp5_html_style/*.pt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_html_style
+install %{name}-%{version}/skins/erp5_html_style/*.jpg $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_html_style
+install %{name}-%{version}/skins/erp5_html_style/*.props $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_html_style
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_html_style/images
+install %{name}-%{version}/skins/erp5_html_style/images/*.png $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_html_style/images
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_trade
+install %{name}-%{version}/skins/erp5_trade/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_trade
+install %{name}-%{version}/skins/erp5_trade/*.pt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_trade
+install %{name}-%{version}/skins/erp5_trade/*.form $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_trade
+install %{name}-%{version}/skins/erp5_trade/*.zsql $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_trade
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_crm
 install %{name}-%{version}/skins/erp5_crm/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_crm
 install %{name}-%{version}/skins/erp5_crm/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_crm
@@ -102,35 +113,14 @@ install %{name}-%{version}/skins/erp5_core/*.py $RPM_BUILD_ROOT%{_libdir}/zope/l
 install %{name}-%{version}/skins/erp5_core/*.pt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_core
 install %{name}-%{version}/skins/erp5_core/*.form $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_core
 install %{name}-%{version}/skins/erp5_core/*.zsql $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_core
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_test
-install %{name}-%{version}/skins/erp5_test/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_test
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_trade
-install %{name}-%{version}/skins/erp5_trade/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_trade
-install %{name}-%{version}/skins/erp5_trade/*.pt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_trade
-install %{name}-%{version}/skins/erp5_trade/*.form $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_trade
-install %{name}-%{version}/skins/erp5_trade/*.zsql $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_trade
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/pro
-install %{name}-%{version}/skins/pro/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/pro
-install %{name}-%{version}/skins/pro/*.pt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/pro
-install %{name}-%{version}/skins/pro/*.props $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/pro
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/pro/images
-install %{name}-%{version}/skins/pro/images/*.png $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/pro/images
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_html_style
-install %{name}-%{version}/skins/erp5_html_style/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_html_style
-install %{name}-%{version}/skins/erp5_html_style/*.pt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_html_style
-install %{name}-%{version}/skins/erp5_html_style/*.jpg $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_html_style
-install %{name}-%{version}/skins/erp5_html_style/*.props $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_html_style
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_html_style/images
-install %{name}-%{version}/skins/erp5_html_style/images/*.png $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_html_style/images
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_accounting
+install %{name}-%{version}/skins/erp5_accounting/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_accounting
+install %{name}-%{version}/skins/erp5_accounting/*.pt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_accounting
+install %{name}-%{version}/skins/erp5_accounting/*.form $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_accounting
+install %{name}-%{version}/skins/erp5_accounting/*.zsql $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/erp5_accounting
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/spec
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/TargetSolver
-install %{name}-%{version}/TargetSolver/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/TargetSolver
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/tests
 install %{name}-%{version}/tests/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/tests
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Tool
-install %{name}-%{version}/Tool/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Tool
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Tool/dtml
-install %{name}-%{version}/Tool/dtml/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Tool/dtml
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/www
 install %{name}-%{version}/www/*.png $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/www
 %clean
diff --git a/product/ERP5/spec/ERP5Catalog.spec b/product/ERP5/spec/ERP5Catalog.spec
index 57fdc396b1..5f9eaf3361 100755
--- a/product/ERP5/spec/ERP5Catalog.spec
+++ b/product/ERP5/spec/ERP5Catalog.spec
@@ -1,6 +1,6 @@
 Name:               ERP5Catalog
 Summary:            Catalog that filter queries
-Version:            0.8
+Version:            0.9
 Release:            1mdk
 Group:              Development/Python
 Requires:           zope ZSQLCatalog ERP5Type
@@ -38,22 +38,23 @@ install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Constraint
 install %{name}-%{version}/Constraint/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Constraint
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Document
 install %{name}-%{version}/Document/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Document
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
-install %{name}-%{version}/dtml/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
-install %{name}-%{version}/help/*.stx $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Interface
 install %{name}-%{version}/Interface/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Interface
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/PropertySheet
 install %{name}-%{version}/PropertySheet/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/PropertySheet
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
+install %{name}-%{version}/dtml/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
+install %{name}-%{version}/help/*.stx $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/sql
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/sql/erp5_mysql
+install %{name}-%{version}/sql/erp5_mysql/*.zsql $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/sql/erp5_mysql
+install %{name}-%{version}/sql/erp5_mysql/*.xml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/sql/erp5_mysql
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/sql/common_mysql
 install %{name}-%{version}/sql/common_mysql/*.zsql $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/sql/common_mysql
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/sql/cps3_mysql
 install %{name}-%{version}/sql/cps3_mysql/*.zsql $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/sql/cps3_mysql
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/sql/erp5_mysql
-install %{name}-%{version}/sql/erp5_mysql/*.zsql $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/sql/erp5_mysql
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/tests
 install %{name}-%{version}/tests/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/tests
 %clean
diff --git a/product/ERP5/spec/ERP5Form.spec b/product/ERP5/spec/ERP5Form.spec
index ba3817e14d..f907c9dde7 100755
--- a/product/ERP5/spec/ERP5Form.spec
+++ b/product/ERP5/spec/ERP5Form.spec
@@ -1,6 +1,6 @@
 Name:               ERP5Form
 Summary:            Form specific to ERP5
-Version:            0.8
+Version:            0.9
 Release:            1mdk
 Group:              Development/Python
 Requires:           zope
@@ -42,13 +42,13 @@ install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Constraint
 install %{name}-%{version}/Constraint/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Constraint
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Document
 install %{name}-%{version}/Document/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Document
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
-install %{name}-%{version}/dtml/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Interface
 install %{name}-%{version}/Interface/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Interface
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/PropertySheet
 install %{name}-%{version}/PropertySheet/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/PropertySheet
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
+install %{name}-%{version}/dtml/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/www
 install %{name}-%{version}/www/*.png $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/www
diff --git a/product/ERP5/spec/ERP5SyncML.spec b/product/ERP5/spec/ERP5SyncML.spec
index 39a9f64197..09a1288425 100755
--- a/product/ERP5/spec/ERP5SyncML.spec
+++ b/product/ERP5/spec/ERP5SyncML.spec
@@ -1,6 +1,6 @@
 Name:               ERP5SyncML
 Summary:            SyncML for ERP5
-Version:            0.8
+Version:            0.9
 Release:            1mdk
 Group:              Development/Python
 Requires:           zope, ERP5Type, erp5diff
@@ -39,14 +39,14 @@ install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Constraint
 install %{name}-%{version}/Constraint/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Constraint
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Document
 install %{name}-%{version}/Document/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Document
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
-install %{name}-%{version}/dtml/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
-install %{name}-%{version}/help/*.stx $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Interface
 install %{name}-%{version}/Interface/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Interface
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/PropertySheet
 install %{name}-%{version}/PropertySheet/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/PropertySheet
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
+install %{name}-%{version}/dtml/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
+install %{name}-%{version}/help/*.stx $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins
 install %{name}-%{version}/skins/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/redd
diff --git a/product/ERP5/spec/ERP5Type.spec b/product/ERP5/spec/ERP5Type.spec
index 584d1f3769..394f2a2ab5 100755
--- a/product/ERP5/spec/ERP5Type.spec
+++ b/product/ERP5/spec/ERP5Type.spec
@@ -1,6 +1,6 @@
 Name:               ERP5Type
 Summary:            Base objects for ERP5
-Version:            0.8
+Version:            0.9
 Release:            1mdk
 Group:              Development/Python
 Requires:           zope
@@ -45,19 +45,19 @@ install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Constraint
 install %{name}-%{version}/Constraint/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Constraint
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Document
 install %{name}-%{version}/Document/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Document
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
-install %{name}-%{version}/dtml/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
-install %{name}-%{version}/help/*.stx $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Interface
 install %{name}-%{version}/Interface/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Interface
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/PropertySheet
 install %{name}-%{version}/PropertySheet/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/PropertySheet
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Tool
+install %{name}-%{version}/Tool/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Tool
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
+install %{name}-%{version}/dtml/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
+install %{name}-%{version}/help/*.stx $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins
 install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/tests
 install %{name}-%{version}/tests/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/tests
-install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Tool
-install %{name}-%{version}/Tool/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Tool
 %clean
 rm -rf $RPM_BUILD_ROOT
 
diff --git a/product/ERP5/spec/ZSQLCatalog.spec b/product/ERP5/spec/ZSQLCatalog.spec
index 5bc0cfd865..c9849189c8 100755
--- a/product/ERP5/spec/ZSQLCatalog.spec
+++ b/product/ERP5/spec/ZSQLCatalog.spec
@@ -1,6 +1,6 @@
 Name:               ZSQLCatalog
 Summary:            A Zope product to search the Zope database with SQL requests
-Version:            0.8
+Version:            0.9
 Release:            1mdk
 Group:              Development/Python
 Requires:           zope
diff --git a/product/ERP5/spec/ZopeTestCase.spec b/product/ERP5/spec/ZopeTestCase.spec
new file mode 100755
index 0000000000..47d91f6f8b
--- /dev/null
+++ b/product/ERP5/spec/ZopeTestCase.spec
@@ -0,0 +1,49 @@
+Name:               ZopeTestCase
+Summary:            Unit test with Zope
+Version:            0.9.0
+Release:            1mdk
+Group:              Development/Python
+Requires:           zope
+License:            ZPL
+URL:                http://zope.org/Members/shh/ZopeTestCase
+Packager:           Sebastien Robin <seb@nexedi.com>
+BuildRoot:          %{_tmppath}/%{name}-%{version}-rootdir
+Buildarch:          noarch
+
+Source: %{name}-%{version}.tar.bz2
+
+#----------------------------------------------------------------------
+%description
+This products allows to implement unit test with Zope. This also
+support functionnal testing.
+
+http://zope.org/Members/shh/ZopeTestCase
+
+#----------------------------------------------------------------------
+%prep
+
+rm -rf $RPM_BUILD_ROOT
+%setup -a 0
+
+#----------------------------------------------------------------------
+%build
+
+#----------------------------------------------------------------------
+%install
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Testing/%{name}/
+install %{name}-%{version}/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Testing/%{name}/
+install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Testing/%{name}/doc
+install %{name}-%{version}/doc/*.stx $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Testing/%{name}/doc
+install %{name}-%{version}/doc/*.txt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Testing/%{name}/doc
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+#----------------------------------------------------------------------
+%files
+%defattr(-,zope,zope,0755)
+%doc doc/VERSION.txt
+%{_libdir}/zope/lib/python/Testing/%{name}/
+#----------------------------------------------------------------------
+%changelog
+* Wed Aug 18 2004 Sebastien Robin <seb@nexedi.com> 0.9.0-1mdk
+- Create the spec file
diff --git a/product/ERP5/spec/erp5diff.spec b/product/ERP5/spec/erp5diff.spec
index 2a50f7b15b..357b99c53a 100755
--- a/product/ERP5/spec/erp5diff.spec
+++ b/product/ERP5/spec/erp5diff.spec
@@ -1,6 +1,6 @@
 %define name erp5diff
 %define version 0.1
-%define release 2nxd
+%define release 3nxd
 
 Summary: XUpdate Generator for ERP5
 Name: %{name}
@@ -10,6 +10,7 @@ Source0: %{name}-%{version}.tar.bz2
 License: GPL
 Group: Development/Python
 BuildRoot: %{_tmppath}/%{name}-buildroot
+Buildarch: noarch
 Url: http://erp5.org
 
 %description
@@ -42,6 +43,10 @@ rm -rf %{buildroot}
 %attr(0755,root,root) %{_bindir}/%{name}
 
 %changelog
+* Fri Aug  6 2005 Yoshinori Okuji <yo@nexedi.com> 0.1-3nxd
+- rebuilt for python 2.4
+- set Buildarch to noarch
+
 * Wed Feb  4 2004 Sebastien Robin <seb@nexedi.com> 0.1-2nxd
 - just added a return between each line
 
diff --git a/product/ERP5/spec/python-reportlab-accel.spec b/product/ERP5/spec/python-reportlab-accel.spec
new file mode 100755
index 0000000000..909bef48a2
--- /dev/null
+++ b/product/ERP5/spec/python-reportlab-accel.spec
@@ -0,0 +1,46 @@
+Name:               python-reportlab-accel
+Summary:            Accelerator for the ReportLab Toolkit
+Version:            0.52.20050424
+Release:            1mdk
+Group:              Development/Python
+Requires:           python
+BuildRequires:      python-devel
+License:            GPL
+URL:                http://www.reportlab.com
+Packager:           Yoshinori Okuji <yo@nexedi.com>
+BuildRoot:          %{_tmppath}/%{name}-%{version}-rootdir
+
+Source: %{name}-%{version}.tar.bz2
+
+#----------------------------------------------------------------------
+%description
+A C coded extension accelerator for the ReportLab Toolkit.
+
+#----------------------------------------------------------------------
+%prep
+
+rm -rf $RPM_BUILD_ROOT
+%setup -q 0
+
+#----------------------------------------------------------------------
+%build
+python setup.py build
+
+#----------------------------------------------------------------------
+%install
+python setup.py install --root=%{buildroot}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+#----------------------------------------------------------------------
+%files
+%defattr(-,root,root,0755)
+%doc README.extensions
+
+%{_libdir}/python*.*/site-packages/*.so
+
+#----------------------------------------------------------------------
+%changelog
+* Sun Apr 24 2005 Yoshinori Okuji <yo@nexedi.com> 0.52.20050424-1mdk
+- Initial release
diff --git a/product/ERP5/spec/python-reportlab.spec b/product/ERP5/spec/python-reportlab.spec
index 6e66cc4965..f4d202d961 100755
--- a/product/ERP5/spec/python-reportlab.spec
+++ b/product/ERP5/spec/python-reportlab.spec
@@ -3,17 +3,20 @@
 
 Name:               python-reportlab
 Summary:            Libraries to generate PDF for python
-Version:            1.17
-Release:            3mdk
+Version:            1.20
+Release:            1mdk
 Group:              Development/Python
 Requires:           python
-License:            GPL
+License:            BSD
 URL:                http://www.reportlab.com
-Packager:           Sebastien Robin <seb@nexedi.com>
+Packager:           Yoshinori Okuji <yo@nexedi.com>
 BuildRoot:          %{_tmppath}/%{name}-%{version}-rootdir
 Buildarch:          noarch
 
 Source: %{name}-%{version}.tar.bz2
+Patch1: python-reportlab-table.patch.bz2
+Patch2: python-reportlab-image.patch.bz2
+Patch3: python-reportlab-filename.patch.bz2
 
 #----------------------------------------------------------------------
 %description
@@ -25,7 +28,10 @@ deadlines in enterprise reporting systems.
 %prep
 
 rm -rf $RPM_BUILD_ROOT
-%setup -a 0
+%setup -q 0
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
 
 #----------------------------------------------------------------------
 %build
@@ -34,69 +40,69 @@ rm -rf $RPM_BUILD_ROOT
 %install
 
 install -d $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}
-install %{name}-%{version}/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}
+install *.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}
 
 install -d $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/demos
 install -d $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/demos/colors
-install %{name}-%{version}/demos/colors/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/demos/colors
+install demos/colors/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/demos/colors
 install -d $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/demos/gadflypaper
-install %{name}-%{version}/demos/gadflypaper/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/demos/gadflypaper
+install demos/gadflypaper/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/demos/gadflypaper
 install -d $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/demos/odyssey
-install %{name}-%{version}/demos/odyssey/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/demos/odyssey
+install demos/odyssey/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/demos/odyssey
 install -d $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/demos/rlzope
-install %{name}-%{version}/demos/rlzope/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/demos/rlzope
+install demos/rlzope/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/demos/rlzope
 install -d $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/demos/stdfonts
-install %{name}-%{version}/demos/stdfonts/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/demos/stdfonts
+install demos/stdfonts/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/demos/stdfonts
 install -d $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/demos/tests
-install %{name}-%{version}/demos/tests/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/demos/tests
+install demos/tests/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/demos/tests
 
 install -d $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/docs
-install %{name}-%{version}/docs/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/docs
+install docs/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/docs
 install -d $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/docs/graphguide
-install %{name}-%{version}/docs/graphguide/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/docs/graphguide
+install docs/graphguide/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/docs/graphguide
 install -d $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/docs/images
-install %{name}-%{version}/docs/images/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/docs/images
+install docs/images/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/docs/images
 install -d $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/docs/reference
-install %{name}-%{version}/docs/reference/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/docs/reference
+install docs/reference/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/docs/reference
 install -d $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/docs/userguide
-install %{name}-%{version}/docs/userguide/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/docs/userguide
+install docs/userguide/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/docs/userguide
 
 install -d $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/extensions
-install %{name}-%{version}/extensions/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/extensions
+install extensions/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/extensions
 
 install -d $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/fonts
-install %{name}-%{version}/fonts/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/fonts
+install fonts/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/fonts
 
 install -d $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/graphics
-install %{name}-%{version}/graphics/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/graphics
+install graphics/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/graphics
 install -d $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/graphics/charts
-install %{name}-%{version}/graphics/charts/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/graphics/charts
+install graphics/charts/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/graphics/charts
 install -d $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/graphics/widgets
-install %{name}-%{version}/graphics/widgets/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/graphics/widgets
+install graphics/widgets/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/graphics/widgets
 
 install -d $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/lib
-install %{name}-%{version}/lib/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/lib
+install lib/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/lib
 
 install -d $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/pdfbase
-install %{name}-%{version}/pdfbase/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/pdfbase
+install pdfbase/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/pdfbase
 
 install -d $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/pdfgen
-install %{name}-%{version}/pdfgen/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/pdfgen
+install pdfgen/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/pdfgen
 
 install -d $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/platypus
-install %{name}-%{version}/platypus/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/platypus
+install platypus/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/platypus
 
 install -d $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/test
-install %{name}-%{version}/test/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/test
+install test/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/test
 
 install -d $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/tools
-install %{name}-%{version}/tools/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/tools
+install tools/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/tools
 install -d $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/tools/docco
-install %{name}-%{version}/tools/docco/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/tools/docco
+install tools/docco/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/tools/docco
 install -d $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/tools/py2pdf
-install %{name}-%{version}/tools/py2pdf/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/tools/py2pdf
+install tools/py2pdf/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/tools/py2pdf
 install -d $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/tools/pythonpoint
-install %{name}-%{version}/tools/pythonpoint/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/tools/pythonpoint
+install tools/pythonpoint/*.* $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/%{pyname}/tools/pythonpoint
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -109,6 +115,29 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/python%{pyver}/%{pyname}/
 #----------------------------------------------------------------------
 %changelog
+* Sun Apr 24 2005 Yoshinori Okuji <yo@nexedi.com> 1.20-1mdk
+- Bump to 1.20.
+
+* Mon Aug 16 2004 Yoshinori Okuji <yo@nexedi.com> 1.19-5mdk
+- Import sys in pdfgen/pdfimages.py; it was just missing.
+
+* Tue Jun  1 2004 Yoshinori Okuji <yo@nexedi.com> 1.19-4mdk
+- Compress all patches.
+- Fix the class Image so that it works with StringIO objects.
+
+* Wed Apr 21 2004 Yoshinori Okuji <yo@nexedi.com> 1.19-3mdk
+- Fix the install section of this spec.
+
+* Wed Apr 21 2004 Yoshinori Okuji <yo@nexedi.com> 1.19-2mdk
+- Fix a mysterios code in lib/utils.py, which deleted Image
+  after importing it.
+
+* Wed Apr 21 2004 Yoshinori Okuji <yo@nexedi.com> 1.19-1mdk
+- New upstream version
+
+* Thu Nov 20 2003 Sebastien Robin <seb@nexedi.com> 1.17-4mdk
+- Added a new patch
+
 * Wed Sep 12 2003 Sebastien Robin <seb@nexedi.com> 1.17-3mdk
 - Make now signed rpm
 
-- 
2.30.9