17
0
Files
python-reportlab/python-reportlab.spec
Dominique Leuenberger 658f1fef70 Accepting request 381378 from devel:languages:python
- install LICENSE.txt

- Fixed source download link.

- Update to 3.2.0
  * Added proportional underlining specific to font sizes, set via
    the `underlineProportion` attribute of ParagraphStyles. 
  * TrueType fonts: added support for cmaps 10 & 13
  * DocTemplate class now supports a boolean `displayDocTitle` argument.
  * TableofContents now supports a formatter argument to allow
    formatting of the displayed page numbers (eg for appendices etc).
  * Table `repeatRows` can now be a tuple of row numbers to allow
    incomplete ranges of rows to be repeated. 
  * Tables now do pass instance.`spaceBefore` & `spaceAfter` to
    their split children when split 
  * Several strangenesses were fixed in the pdfbase.pdfform module;
    Multiple usage is now allowed.
  * Error message fixes
  * Various environment fixes for Google Application Environment
  * Resource fixes
  * PDFDoc can now set the `Lang` attribute
  * canvas.drawString and similar now allow the character spacing
    to be set 
  * Index of accented stuff has been improved
  * RTL code was improved
  * fix Propertyset.clone
  * `flowables.py`: fix ImageAndFlowables so it avoids testing
    negative availableWidth 

- Update to 3.1

OBS-URL: https://build.opensuse.org/request/show/381378
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-reportlab?expand=0&rev=15
2016-04-22 14:23:38 +00:00

73 lines
2.3 KiB
RPMSpec

#
# spec file for package python-reportlab
#
# Copyright (c) 2016 SUSE LINUX 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/
#
%define modname reportlab
Name: python-%{modname}
Version: 3.2.0
Release: 0
Url: http://www.reportlab.com/
Summary: The Reportlab Toolkit
License: BSD-3-Clause
Group: Development/Languages/Python
Source: https://pypi.python.org/packages/source/r/reportlab/reportlab-%{version}.tar.gz
Patch0: reportlab-missing-includes.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: freetype2-devel
BuildRequires: python-devel
BuildRequires: python-imaging
BuildRequires: python-xml
Requires: python-imaging
Provides: python-ReportLab = %{version}
Obsoletes: python-ReportLab < %{version}
%if 0%{?suse_version} <= 1110
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%else
%py_requires
%endif
%description
The ReportLab Toolkit. An Open Source Python library for generating PDFs and graphics.
%prep
%setup -q -n %{modname}-%{version}
%patch0
sed -i "1d" src/reportlab/lib/{formatters,fonts,corp,units,pagesizes,__init__,randomtext,logger,normalDate}.py
sed -i "1d" src/reportlab/graphics/{widgets/table,barcode/test,testdrawings,testshapes}.py # Fix non-executable bits
%build
CFLAGS="%{optflags}" python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
python setup.py tests
%files
%defattr(-,root,root,-)
%if 0%{?suse_version} > 1315
%license LICENSE.txt
%else
%doc LICENSE.txt
%endif
%doc CHANGES.md README.txt
%{python_sitearch}/%{modname}/
%{python_sitearch}/%{modname}-%{version}-py%{py_ver}.egg-info
%changelog