17
0
Files
python-reportlab/python-reportlab.spec
Dirk Mueller 2225b34376 - update to 4.0.7:
* allow testutils.makeSuiteForClasses to specify a prefix for
    test method names
  * SpiderChart can have direct draw flowable labels
  * fix and improve tests for python -mreportlab.lib.rl_accel
  * fix barchart 3D stacked case & fix barchart valueAxis
    reverseDirection behaviour.
  * fix importlib usage in reportlab init, reported by Frank
    Epperlein and others
  * add value axes extraMinMaxValues as aid to parallel axes
  * add styles str2alignment maps
    left/right/center/centre/justify etc
  * fix validators.isSubclassOf
  * test ddfStyle as instance first in textlabels.py
  * allow Pie Doughnut classes to control label class
- drop importlib.patch (upstream)
- pick the primary interpreter for doc generation even if it is not "python3"
  * minor cosmetics in renderPM C extension and add fontSize setattr
  * refactor transformation math and text2Path functionality
  * allow Drawing.outDir to be a callable
  * fix relative links within pdf broken
    * Bug fix release to make really simple paras work OK
    within PDF files. The <textField> tag has many more attributes
    the `underlineProportion` attribute of ParagraphStyles.
    incomplete ranges of rows to be repeated.
    their split children when split
    to be set
    negative availableWidth
  * ReportLab 3.0 now supports Python 2.7, 3.3 and higher.
    - Manuals have been reformatted with more pleasing code snippets and tables of

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-reportlab?expand=0&rev=42
2023-11-27 18:39:04 +00:00

82 lines
2.6 KiB
RPMSpec

#
# spec file for package python-reportlab
#
# 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
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
BuildRequires: %{python_module Pillow >= 9.0.0}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: freetype2-devel
BuildRequires: python-rpm-macros
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
%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