17
0
Files
python-reportlab/python-reportlab.spec

82 lines
2.6 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package python-reportlab
#
- Update to 3.6.12: * fix dpi handling in renderPM.py; bug found by Terry Zhao Terry dot Zhao at fil dot com * attempt fix in rparsexml.py * add rl_settings.xmlParser with default 'lxml' * nano RHEL related fix to setup.py contributed by James Brown jbrown at easypost dot com * minor speedup in reportlab.graphics.transform functions * allow usage of freetype testpaths via rl_config/rl_settings textPaths * _renderPM.c remove parse_utf8, make pict_putrow same as for rlPyCairo - CHANGES 3.6.11 24/06/2022 * support HORIZONTAL2 & VERTICAL2 table cell backgrounds; as suggested by Sina Khelil < sina at khelil dot com > * support general LINEAR & RADIAL gradient table cell backgrounds * support ShowBoundaryValue in canv.drawImage - CHANGES 3.6.10 31/05/2022 * fix symlink looping in setup.py reported by Michał Górny &lt; mgorny at gentoo dot org &gt; * allow bearerBox attribute for some barcodes * require pillow>=9.0.0 patch contributed by Claude Paroz claude at 2xlibre.net * Apply Claude Paroz < claude at 2xlibre dot net > patch to assume hashlib md5 exists * ImageReader updated to allow deepcopy; similarly for doctemplate.onDrawStr * fix 3.11.0b2 regression in rl_safe_eval. * apply massive contribution for Table inRowSplit from Lennart Regebro < lregebro at shoobx dot com > - CHANGES 3.6.9 22/03/2022 * fix up _rl_accel.c 0.81 to allow better error messages and support python OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-reportlab?expand=0&rev=32
2023-01-10 08:36:10 +00:00
# Copyright (c) 2023 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/
#
%{?sle15_python_module_pythons}
Name: python-reportlab
2023-11-27 18:39:04 +00:00
Version: 4.0.7
Release: 0
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
- Update to 3.6.12: * fix dpi handling in renderPM.py; bug found by Terry Zhao Terry dot Zhao at fil dot com * attempt fix in rparsexml.py * add rl_settings.xmlParser with default 'lxml' * nano RHEL related fix to setup.py contributed by James Brown jbrown at easypost dot com * minor speedup in reportlab.graphics.transform functions * allow usage of freetype testpaths via rl_config/rl_settings textPaths * _renderPM.c remove parse_utf8, make pict_putrow same as for rlPyCairo - CHANGES 3.6.11 24/06/2022 * support HORIZONTAL2 & VERTICAL2 table cell backgrounds; as suggested by Sina Khelil < sina at khelil dot com > * support general LINEAR & RADIAL gradient table cell backgrounds * support ShowBoundaryValue in canv.drawImage - CHANGES 3.6.10 31/05/2022 * fix symlink looping in setup.py reported by Michał Górny &lt; mgorny at gentoo dot org &gt; * allow bearerBox attribute for some barcodes * require pillow>=9.0.0 patch contributed by Claude Paroz claude at 2xlibre.net * Apply Claude Paroz < claude at 2xlibre dot net > patch to assume hashlib md5 exists * ImageReader updated to allow deepcopy; similarly for doctemplate.onDrawStr * fix 3.11.0b2 regression in rl_safe_eval. * apply massive contribution for Table inRowSplit from Lennart Regebro < lregebro at shoobx dot com > - CHANGES 3.6.9 22/03/2022 * fix up _rl_accel.c 0.81 to allow better error messages and support python OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-reportlab?expand=0&rev=32
2023-01-10 08:36:10 +00:00
BuildRequires: %{python_module Pillow >= 9.0.0}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: freetype2-devel
BuildRequires: python-rpm-macros
- Update to 3.6.12: * fix dpi handling in renderPM.py; bug found by Terry Zhao Terry dot Zhao at fil dot com * attempt fix in rparsexml.py * add rl_settings.xmlParser with default 'lxml' * nano RHEL related fix to setup.py contributed by James Brown jbrown at easypost dot com * minor speedup in reportlab.graphics.transform functions * allow usage of freetype testpaths via rl_config/rl_settings textPaths * _renderPM.c remove parse_utf8, make pict_putrow same as for rlPyCairo - CHANGES 3.6.11 24/06/2022 * support HORIZONTAL2 & VERTICAL2 table cell backgrounds; as suggested by Sina Khelil < sina at khelil dot com > * support general LINEAR & RADIAL gradient table cell backgrounds * support ShowBoundaryValue in canv.drawImage - CHANGES 3.6.10 31/05/2022 * fix symlink looping in setup.py reported by Michał Górny &lt; mgorny at gentoo dot org &gt; * allow bearerBox attribute for some barcodes * require pillow>=9.0.0 patch contributed by Claude Paroz claude at 2xlibre.net * Apply Claude Paroz < claude at 2xlibre dot net > patch to assume hashlib md5 exists * ImageReader updated to allow deepcopy; similarly for doctemplate.onDrawStr * fix 3.11.0b2 regression in rl_safe_eval. * apply massive contribution for Table inRowSplit from Lennart Regebro < lregebro at shoobx dot com > - CHANGES 3.6.9 22/03/2022 * fix up _rl_accel.c 0.81 to allow better error messages and support python OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-reportlab?expand=0&rev=32
2023-01-10 08:36:10 +00:00
Requires: python-Pillow >= 9.0.0
Provides: python-ReportLab = %{version}
Obsoletes: python-ReportLab < %{version}
%ifpython2
Obsoletes: %{oldpython}-ReportLab < %{version}
Provides: %{oldpython}-ReportLab = %{version}
%endif
BuildArch: noarch
%python_subpackages
%description
The ReportLab Toolkit. An Open Source Python library for generating PDFs and graphics.
%prep
- Update to 3.6.12: * fix dpi handling in renderPM.py; bug found by Terry Zhao Terry dot Zhao at fil dot com * attempt fix in rparsexml.py * add rl_settings.xmlParser with default 'lxml' * nano RHEL related fix to setup.py contributed by James Brown jbrown at easypost dot com * minor speedup in reportlab.graphics.transform functions * allow usage of freetype testpaths via rl_config/rl_settings textPaths * _renderPM.c remove parse_utf8, make pict_putrow same as for rlPyCairo - CHANGES 3.6.11 24/06/2022 * support HORIZONTAL2 & VERTICAL2 table cell backgrounds; as suggested by Sina Khelil < sina at khelil dot com > * support general LINEAR & RADIAL gradient table cell backgrounds * support ShowBoundaryValue in canv.drawImage - CHANGES 3.6.10 31/05/2022 * fix symlink looping in setup.py reported by Michał Górny &lt; mgorny at gentoo dot org &gt; * allow bearerBox attribute for some barcodes * require pillow>=9.0.0 patch contributed by Claude Paroz claude at 2xlibre.net * Apply Claude Paroz < claude at 2xlibre dot net > patch to assume hashlib md5 exists * ImageReader updated to allow deepcopy; similarly for doctemplate.onDrawStr * fix 3.11.0b2 regression in rl_safe_eval. * apply massive contribution for Table inRowSplit from Lennart Regebro < lregebro at shoobx dot com > - CHANGES 3.6.9 22/03/2022 * fix up _rl_accel.c 0.81 to allow better error messages and support python OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-reportlab?expand=0&rev=32
2023-01-10 08:36:10 +00:00
%autosetup -p1 -n reportlab-%{version}
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 --no-download-t1-files
mypython=%{expand:%%__%(pythons="%{pythons}"; echo ${pythons##python* })}
PYTHONPATH=$(readlink -f build/lib/) \
$mypython docs/genAll.py
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%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_sitelib}
$python runAll.py --verbosity=2
}
%files %{python_files}
%license LICENSE
%doc CHANGES.md README.txt docs/reportlab-userguide.pdf
%{python_sitelib}/reportlab/
%{python_sitelib}/reportlab-%{version}-py*.egg-info
%changelog