[Erp5-report] r7888 - /spec/mandriva/2006.0/python-reportlab/
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jun 19 17:27:15 CEST 2006
Author: kevin
Date: Mon Jun 19 17:27:14 2006
New Revision: 7888
URL: http://svn.erp5.org?rev=7888&view=rev
Log:
Commit python-reportlab-1.20-2mdk spec files and patches
Added:
spec/mandriva/2006.0/python-reportlab/
spec/mandriva/2006.0/python-reportlab/python-reportlab-filename.patch
spec/mandriva/2006.0/python-reportlab/python-reportlab-image.patch
spec/mandriva/2006.0/python-reportlab/python-reportlab-table.patch
spec/mandriva/2006.0/python-reportlab/python-reportlab.spec (with props)
Added: spec/mandriva/2006.0/python-reportlab/python-reportlab-filename.patch
URL: http://svn.erp5.org/spec/mandriva/2006.0/python-reportlab/python-reportlab-filename.patch?rev=7888&view=auto
==============================================================================
--- spec/mandriva/2006.0/python-reportlab/python-reportlab-filename.patch (added)
+++ spec/mandriva/2006.0/python-reportlab/python-reportlab-filename.patch Mon Jun 19 17:27:14 2006
@@ -1,0 +1,15 @@
+--- python-reportlab-1.20.orig/platypus/flowables.py 2004-11-25 16:12:20.000000000 +0100
++++ python-reportlab-1.20/platypus/flowables.py 2005-04-24 19:51:34.647626293 +0200
+@@ -300,11 +300,7 @@
+ # if it is a JPEG, will be inlined within the file -
+ # but we still need to know its size now
+ fp = hasattr(filename,'read')
+- if fp:
+- self._file = filename
+- self.filename = `filename`
+- else:
+- self._file = self.filename = filename
++ self.filename = filename
+ if not fp and os.path.splitext(filename)[1] in ['.jpg', '.JPG', '.jpeg', '.JPEG']:
+ from reportlab.lib.utils import open_for_read
+ f = open_for_read(filename, 'b')
Added: spec/mandriva/2006.0/python-reportlab/python-reportlab-image.patch
URL: http://svn.erp5.org/spec/mandriva/2006.0/python-reportlab/python-reportlab-image.patch?rev=7888&view=auto
==============================================================================
--- spec/mandriva/2006.0/python-reportlab/python-reportlab-image.patch (added)
+++ spec/mandriva/2006.0/python-reportlab/python-reportlab-image.patch Mon Jun 19 17:27:14 2006
@@ -1,0 +1,11 @@
+--- python-reportlab-1.19.orig/lib/utils.py 2004-01-21 09:33:04.000000000 +0100
++++ python-reportlab-1.19/lib/utils.py 2004-04-21 17:29:47.000000000 +0200
+@@ -195,7 +195,7 @@
+ except ImportError:
+ Image = None
+ haveImages = Image is not None
+- if haveImages: del Image
++ if Image is None: del Image
+
+
+ __StringIO=None
Added: spec/mandriva/2006.0/python-reportlab/python-reportlab-table.patch
URL: http://svn.erp5.org/spec/mandriva/2006.0/python-reportlab/python-reportlab-table.patch?rev=7888&view=auto
==============================================================================
--- spec/mandriva/2006.0/python-reportlab/python-reportlab-table.patch (added)
+++ spec/mandriva/2006.0/python-reportlab/python-reportlab-table.patch Mon Jun 19 17:27:14 2006
@@ -1,0 +1,11 @@
+--- python-reportlab-1.20.orig/platypus/tables.py 2004-11-25 16:12:20.000000000 +0100
++++ python-reportlab-1.20/platypus/tables.py 2005-04-24 19:31:34.712018599 +0200
+@@ -648,6 +648,8 @@
+ self._bkgrndcmds.append(cmd)
+ elif cmd[0] == 'SPAN':
+ self._spanCmds.append(cmd)
++ elif cmd[0] == 'HALIGN':
++ self.hAlign = cmd[1]
+ elif _isLineCommand(cmd):
+ # we expect op, start, stop, weight, colour, cap, dashes, join
+ cmd = tuple(cmd)
Added: spec/mandriva/2006.0/python-reportlab/python-reportlab.spec
URL: http://svn.erp5.org/spec/mandriva/2006.0/python-reportlab/python-reportlab.spec?rev=7888&view=auto
==============================================================================
--- spec/mandriva/2006.0/python-reportlab/python-reportlab.spec (added)
+++ spec/mandriva/2006.0/python-reportlab/python-reportlab.spec Mon Jun 19 17:27:14 2006
@@ -1,0 +1,101 @@
+%define product reportlab
+%define version 1.20
+%define release 2
+
+%define zope_home %{_prefix}/lib/zope
+%define software_home %{zope_home}/lib/python
+
+
+Summary: ReportLab library to create PDF documents using Python
+Name: python-%{product}
+Version: %{version}
+Release: %mkrel %{release}
+License: BSD
+Group: Publishing
+URL: http://www.reportlab.org/
+Source: %{name}-%{version}.tar.bz2
+Patch0: python-reportlab-table.patch.bz2
+Patch1: python-reportlab-image.patch.bz2
+Patch2: python-reportlab-filename.patch.bz2
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-rootdir
+BuildRequires: python
+Requires: python >= 2.3
+
+#----------------------------------------------------------------------
+%description
+ReportLab is a library that lets you directly create documents in
+Adobe's Portable Document Format (PDF) using the Python programming
+language.
+
+ReportLab library creates PDF based on graphics commands without
+intervening steps. It's therefore extremely fast, and flexible (since
+you're using a full-blown programming language).
+
+Sample use cases are:
+
+ * Dynamic PDF generation on the web
+ * High-volume corporate reporting and database publishing
+ * As embeddable print engine for other applications, including a
+ 'report language' so that users can customize their own reports.
+ * As 'build system' for complex documents with charts, tables and text
+ such as management accounts, statistical reports and scientific papers
+ * from XML to PDF in one step
+
+#----------------------------------------------------------------------
+%prep
+%setup -n %{name}-%{version}
+
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+
+%build
+python setup.py build
+
+%install
+python setup.py install --root=%{buildroot} --record=INSTALLED_FILES
+
+%clean
+%{__rm} -rf %{buildroot}
+
+%files
+%defattr(644,root,root,755)
+%{_libdir}/python%pyver/site-packages/%{product}/
+
+
+
+%changelog
+* Wed Jan 5 2006 Kevin Deldycke <kevin at nexedi.com> 1.20-2mdk
+- Merge nexedi 10.2 spec file with Mandriva 2006 spec file
+
+* Sun Apr 24 2005 Yoshinori Okuji <yo at nexedi.com> 1.20-1mdk
+- Bump to 1.20.
+
+* Mon Aug 16 2004 Yoshinori Okuji <yo at nexedi.com> 1.19-5mdk
+- Import sys in pdfgen/pdfimages.py; it was just missing.
+
+* Tue Jun 1 2004 Yoshinori Okuji <yo at 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 at nexedi.com> 1.19-3mdk
+- Fix the install section of this spec.
+
+* Wed Apr 21 2004 Yoshinori Okuji <yo at 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 at nexedi.com> 1.19-1mdk
+- New upstream version
+
+* Thu Nov 20 2003 Sebastien Robin <seb at nexedi.com> 1.17-4mdk
+- Added a new patch
+
+* Wed Sep 12 2003 Sebastien Robin <seb at nexedi.com> 1.17-3mdk
+- Make now signed rpm
+
+* Thu Sep 04 2003 Sébastien Robin <seb at nexedi.com> 1.17-2mdk
+- Update spec in order to follows Mandrake Rules
+
+* Wed May 02 2003 Sebastien Robin <seb at nexedi.com> 1.17-1nxd
+- Initial release
Propchange: spec/mandriva/2006.0/python-reportlab/python-reportlab.spec
------------------------------------------------------------------------------
svn:executable = *
More information about the Erp5-report
mailing list