File python-ReportLab.spec of Package python-ReportLab
#
# spec file for package python-ReportLab (Version 2.1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: python-ReportLab
Summary: Open Source PDF library for Python
Version: 2.1
Release: 1
# Source0...Source9 is for sources from reportlab.org:
# URL for Source0: http://www.reportlab.org/ftp/ReportLab_2_1.tgz
Source0: ReportLab_2_1.tar.bz2
License: Other uncritical OpenSource License
Group: Development/Libraries/Python
Url: http://www.reportlab.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Prefix: %{_prefix}
BuildRequires: python-devel
# python-ReportLab is needed by HPLIP for fax coverpages
# but faxing in HPLIP works also without coverpages:
Supplements: hplip
%description
See http://www.reportlab.org/rl_toolkit.html
The ReportLab Open Source PDF library is a proven industry-strength PDF
generating solution, that you can use for meeting your requirements and
deadlines in enterprise reporting systems.
Our free Open Source PDF library is suitable for web publishers,
developers or creative design professionals who need to quickly and
easily create or automate complex (even data-driven) documents. It lets
you create professional documents programmatically without being locked
into one special technology and/or platform. It has grown over years in
response to the real-world requirements of large financial
institutions' reporting needs, making it the trusted proven foundation
of existing enterprise solutions rather than a just a fancy gimmick or
interesting library.
This library implements a flexible layout engine named Platypus that
builds documents from components like headlines, paragraphs, fonts,
tables, bitmap images, vector graphics, etc. These flowable elements
are placed in a document "story" following a set of templates for
frames, pages and the entire document itself. In addition to the
standard 14 PostScript fonts there is full support for custom embedded
Type-1 as well as for Asian fonts. The included graphics subpackage
provides a set of primitive shapes as well as reusable widgets building
on them. Among the sample collections is a very useful set of business
chart diagrams, including bar charts, line charts and pie charts.
Different renderers can be used to create vector graphics (in fact,
even full document pages) as individual components not only in PDF, but
also in EPS and in a variety of bitmap formats including JPEG, PNG,
GIF, BMP and PICT.
Authors:
--------
ReportLab Inc. <http://www.reportlab.com>
%prep
%setup -q -n reportlab_2_1/reportlab
%build
python setup.py build
%install
%__python ./setup.py install -O1 --skip-build --prefix="%{_prefix}" --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
find %{buildroot} -name "*pyc" -exec rm {} \;
sed -i '/pyc$/d' INSTALLED_FILES
install -d $RPM_BUILD_ROOT/usr/bin
chmod 0755 $RPM_BUILD_ROOT%{py_sitedir}/reportlab/tools/pythonpoint/pythonpoint.py
ln -sf ../..%{py_sitedir}/reportlab/tools/pythonpoint/pythonpoint.py $RPM_BUILD_ROOT/usr/bin/pythonpoint
chmod 0755 $RPM_BUILD_ROOT%{py_sitedir}/reportlab/tools/py2pdf/py2pdf.py
ln -sf ../..%{py_sitedir}/reportlab/tools/py2pdf/py2pdf.py $RPM_BUILD_ROOT/usr/bin/py2pdf
%files -f INSTALLED_FILES
%defattr(-,root,root)
/usr/bin/pythonpoint
/usr/bin/py2pdf
%{py_sitedir}/reportlab
%changelog
* Thu Sep 11 2008 jsmeix@suse.de
- initial version (2.1).