# # spec file for package python-reportlab # # Copyright (c) 2020 SUSE LLC # # 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 https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python %define skip_python2 1 Name: python-reportlab Version: 3.5.34 Release: 1.4 Summary: The Reportlab Toolkit License: BSD-3-Clause URL: https://www.reportlab.com/ Source0: https://files.pythonhosted.org/packages/source/r/reportlab/reportlab-%{version}.tar.gz Source1: encryption.gif Patch0: reportlab-missing-includes.patch BuildRequires: %{python_module Pillow >= 4.0.0} BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module xml} BuildRequires: fdupes BuildRequires: freetype2-devel BuildRequires: python-rpm-macros Requires: python-Pillow >= 4.0.0 %ifpython2 Obsoletes: %{oldpython}-ReportLab < %{version} Provides: %{oldpython}-ReportLab = %{version} %endif %ifpython3 Provides: python3-ReportLab = %{version} Obsoletes: python3-ReportLab < %{version} %endif %python_subpackages %description The ReportLab Toolkit. An Open Source Python library for generating PDFs and graphics. %prep %setup -q -n reportlab-%{version} %autopatch -p1 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 export CFLAGS="%{optflags}" %python_build PYTHONPATH=$(readlink -f build/lib.linux-*/) \ python3 docs/genAll.py %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %check export CFLAGS="%{optflags}" export LANG=en_US.UTF-8 pushd tests # make online tests offline cp %{SOURCE1} . sed -i 's@http://www.reportlab.com/rsrc/@@' test_*.py ### %{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} $python runAll.py } %files %{python_files} %license LICENSE.txt %doc CHANGES.md README.txt docs/reportlab-userguide.pdf %{python_sitearch}/reportlab/ %{python_sitearch}/reportlab-%{version}-py*.egg-info %changelog * Sat Jan 18 2020 Matej Cepl - Update to 3.5.34: - change of the core repository (it is https://hg.reportlab.com/hg-public/reportlab, they stuck to Mercurial even when Bitbucket left it; issue reporting on the email list https://pairlist2.pair.net/mailman/listinfo/reportlab-users) - attempted restriction of the reportlab.lib.color.toColor function; fix of CVE-2019-17626 (bsc#1154370; bt#rptlab/reportlab#199) - fix bug in Pie3d reported by Eldon Ziegler - fix bug in background splitting in repeatRows cases - small improvements to CandleSticks - created NotSet validator (use in CandleStickProperties) - add documentation - remove python38_build.patch, because it has been included upstream * Tue Nov 19 2019 Todd R - version update to 3.5.32 * some chart efficiency changes * use clock in fontFinder contributed by Matěj Cepl @ bitbucket * improve recursive access and do some minor eval/exec fixes * improve use of eval/exec - version update to 3.5.31 * paraparser fix contributed by ravi prakash giri - version update to 3.5.30 * better support for candlestick charts using smartGetItem - version update to 3.5.29 * Support for candlestick charts and infilled pair plots - version update to 3.5.28 * improve support for AES encryption - version update to 3.5.27 * fix to justified para splits contributed by Niharika Singh * fix BalanceColumn width calculation * preliminary support for AES encryption (contributed by https://github.com/talebi1) - version update to 3.5.26 * micro changes to normalDate * fix warnings about is not (detected in python 3.8b4) * implement PR #59 bug fix contributed by Vytis Banaitis - version update to 3.5.25 * add recursive ttf searching * sync with rlextra * fix Barchart axis crossing issue reported by Martin Jones (Zeidler) - version update to 3.5.24 * prepare for python3.8, drop support for python3.4 - rebase python38_build.patch * Sat Oct 19 2019 Matej Cepl - Add python38_build.patch to work around depreceated (and now removed) function time.clock() * Tue Jul 23 2019 Todd R - version update to 3.5.23 * fix rendering to stdout doesn't work in python3 * fix relative links within pdf broken * fix paragraph justification broken in the presence of no-break spaces * add wordSpace keyword to Canvas draw methods * fix an extra blank page shows up between two KeepTogether() groups - version update to 3.5.22 * Allow kewords in PDFResourceDictionary * fix DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats * Allow AcroForm to have SigFlags * Bug Fixes and tests * Tue May 21 2019 pgajdos@suse.com - version update to 3.5.21 * fix bug in legends * add extra table info in spanning error case * Preliminary MultiCol implementation * fix missing xrange import * allow rgb to have fractions of 1 in css colors * fix bug with a tag href not having a scheme * all0w LineChart/LinePlot area fills to differe from the stroke colour * add canvas setProducer method * more FrameBG changes vs BalancedColumns * fix bb issues #176/#177 reported by graingert & droidzone * more FrameBG fixes; added canvas cross method, frame static drawBoundary * fix stroking for frame background in container * add stroking for frame background * added axes tickStrokeWidth etc etc * added rl_setting.reserveTTFNotdef inspired by e3office at bitbucket (pr #50) * Fri Jan 4 2019 Todd R - Update to RELEASE 3.5.12 * log axis handles rangeRound & avoidBoundspace * FrameBG can start with "frame" & frame-permanent" start options - Update to RELEASE 3.5.11 * Improve log axis ticks & grids * move some samples into tests - Update to RELEASE 3.5.10 * Bug fix for underline (contrib. Lennart Regebro @ bitbucket) * Paragraph indentation bug fix * Initial support for richtext graphics text labels * Initial support for log axes (ideas from hoel@germanlloyd.org) - Update to RELEASE 3.5.9 * add hyphenationMinWordLength to address PR #44 (contrib Michael V. Reztsov) - Update to RELEASE 3.5.8 * Allow structured barLabelFormat (suggestion from Ravinder Baid) - Update to RELEASE 3.5.7 * Fix tables.py splitting for line comands. - Update to RELEASE 3.5.6 * Restore DocTemplate seq attribute lost in rev c985bd7093ad (4405) version 3.4.41 bug report from Jim Parinisi jimandkimparinisi@yahoo.com - Update to RELEASE 3.5.5 * Bug fix underlined space in XPreformatted - Update to RELEASE 3.5.4 * Bug fix for Paragraph space bugs reported by Kayley Lane * Use local libart code by default (libart 2.3.21-3) - Update to RELEASE 3.5.3 * Bug fix release to make really simple paras work OK Reported by Kayley.Lane @ oracle.com * Use local libart by default * Use upgrade libart source to 2.3.21-3 https://salsa.debian.org/gnome-team/libart-lgpl@aa059539 - Update to RELEASE 3.5.2 * Bug fix release to make th sdist work properly - Update to RELEASE 3.5.1 * Bug fix for infinite looping in Paragraph (likely caused by small available Widths). Reported by Kayley.Lane @ oracle.com - Update to RELEASE 3.5 * BalancedColumns flowable added * primitive hyphenation functionality (with Pyphen installed) * simple paragraphs now allow space shrinkage * mixed parallel / stacked barcharts mechanism * makeStream compression fix for python 3.x * reproducibility fixes * Bugfix for KeepWithNext and None * Fix pie chart issue * allow canvas filename to be a wrapped OS level file * added DocTemplate._makeCanvas * _text2Path fix * AcroForm improvements * added anchorAtXY parameter for images * fix PDF syntax error with no Outlines * fix bullet code * qrencoder fix * table minRowHeights support * stopped abusing builtins to aid compatibility * fix embedded font & fontfinder bugs * fix zero width paragraph layout error * doughnut charts support innerRadiusFraction * more controllable under and strike lines - Remove upstream-included drop-requirements.patch * Tue Jul 25 2017 jmatejek@suse.com - drop-requirements.patch: do not list setuptools and pip in egg-info as requirements (fixes bsc#1049516, upstream issue https://bitbucket.org/rptlab/reportlab/issues/113 ) - set LANG variable correctly to help with test suite * note that test suite is broken, multiple tests fail and this does not stop build * causes of failure are spurious though * Sat May 6 2017 toddrme2178@gmail.com - Fix Provides/Obsoletes. * Wed Apr 19 2017 toddrme2178@gmail.com - Update to 3.4.0 * We now support SVG as a format for embedded vector graphics. * The and tags now support additional encodings. * We have considerably expanded our support for fillable forms within PDF files. The tag has many more attributes , , & which along with the new make possible PDF forms. * The
    &
      tags now support automatic style change for the start/type parameter, by using a space separated list fo start values - Implement single-spec version * Tue Mar 29 2016 dmueller@suse.com - install LICENSE.txt * Sat Nov 7 2015 freitag@opensuse.org - Fixed source download link. * Fri Jun 5 2015 kkaempf@suse.com - 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 * Fri Jun 5 2015 kkaempf@suse.com - Update to 3.1 * support for emoji * improved pip-based installers * Fri Jun 5 2015 kkaempf@suse.com - Update to 3.0 * ReportLab 3.0 now supports Python 2.7, 3.3 and higher. * There has been a substantial internal rewrite to ensure consistent use of unicode strings for natural-language text, and of bytes for all file format internals. * Python 3.x compatibility * New features - Add ability to output greyscale and 1-bit PIL images without conversion to RGB. (contributed by Matthew Duggan) - highlight annotation (contributed by Ben Echols) * Other - numerous very minor fixes, visible through BitBucket. * Sun Nov 24 2013 kkaempf@suse.com - Update to version 2.7 * Charts / graphics enhancements - Added SimpleTimeSeriesPlot - added _computeMaxSpace - added in lineStyle (for bars) - improved SVG rendering - Pie Chart now has an `innerRadiusFraction` to allow doughnut-like appearance for 2d charts * Charts/graphics bug fixes - piecharts.py: fix Pie3d __init__ to call its superclass - linecharts.py: fix swatch creation - fixed `y` axis in the simple time series plot * PDF - Fixes to testshapes & pdfform resetting - colors.py - various minor fixes * Platypus - Defined a small bullet rather than a big circle as the default for unordered lists - fixed attribute spelling bug - fixed CJK + endDots * Sun Nov 24 2013 p.drouand@gmail.com - Update to version 2.7 + No relative ChangeLog entry * Thu Jan 24 2013 p.drouand@gmail.com - Update to version 2.6: * General changes - Manuals have been reformatted with more pleasing code snippets and tables of contents, and reviewed and expanded * Flowing documents (Platypus): - Added support for HTML-style list objects - Added flexible mechanism for drawing bullets - Allowed XPreformatted objects to use Asian line wrapping - Added an 'autoNextPageTemplate' attribute to PageTemplates. For example you can now set up a 'chapter first page template' which will always be followed by a 'continuation template' on the next page break, saving the programmer from having to issue control flow commands in the story. - added a TopPadder flowable, which will 'wrap' another Flowable and move it to the bottom of the current page. - More helpful error messages when large tables cannot be rendered - Documentation for images within text (test_032_images) - Trailing dots for use on contents pages * Charts and graphics: - Support for UPCA bar codes - We now have a semi-intelligent system for labelling pie charts with callout lines. Thanks to James Martin-Collar, a maths student at Warwick University, who did this as his summer internship. - Axes - added startOffset and endOffset properties; allowed for axis background annotations. - Bar charts - allow more control of z Index (i.e. drawing order of axes and lines) - Pie charts - fixed bugs in 3d appearance - SVG output back end has seen some bugs fixed and now outputs resizeable SVG * Fri May 25 2012 toddrme2178@gmail.com - Clean up spec file * Thu Dec 8 2011 coolo@suse.com - fix license to be in spdx.org format * Tue Sep 20 2011 saschpe@suse.de - Fix non-executable bit rpmlint warning * Mon May 30 2011 alexandre@exatati.com.br - Add Provides and Obsoletes to python-ReportLab in spec file to better behaviour in 11.1. * Tue Apr 12 2011 alexandre@exatati.com.br - Update to 2.5: - Please readme CHANGES.txt. - Regenerate spec file with py2pack; - Add CHANGES.txt and README.txt files as documentation; - Bzip2 source code. * Thu Jan 21 2010 alexandre@exatati.com.br - Update to 2.4. * Mon Dec 28 2009 alexandre@exatati.com.br - New ReportLab package (2.3) for openSUSE, now in d:l:py.