Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
python-reportlab
python-reportlab.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-reportlab.spec of Package python-reportlab
# # spec file # # 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/ # %define modname reportlab %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 %endif Name: python-%{modname} Version: 2.7 Release: 0 Summary: The Reportlab Toolkit License: BSD-2-Clause Group: Development/Languages/Python URL: https://www.reportlab.com/ Source: http://www.reportlab.com/ftp/%{modname}-%{version}.tar.gz Patch0: reportlab-missing-includes.patch # PATCH-FIX-OPENSUSE no_network_tests.patch mcepl@suse.com # switch off tests, which require access to the Internet Patch1: no_network_tests.patch # PATCH-FIX-UPSTREAM} CVE-2019-17626_make_toColor_safe.patch bsc#1154370 mcepl@suse.com # make toColor function safer, CVE-2019-17626 Patch2: CVE-2019-17626_make_toColor_safe.patch # PATCH-FIX-UPSTREAM} CVE-2020-28463_fix_ssrf.patch bsc#1182503 danilo.spinella@suse.com # fix SSRF in img tags, CVE-2020-28463 Patch3: CVE-2020-28463_fix_ssrf.patch # PATCH-FIX-UPSTREAM CVE-2023-33733-code-injection.patch bsc#1212065 mcepl@suse.com # avoid code injection via a crafted PDF file Patch4: CVE-2023-33733-code-injection.patch # PATCH-FIX-SLE fix_failing_tests.patch bsc#1212527 mcepl@suse.com # make the test suite less failing Patch5: fix_failing_tests.patch # PATCH-FIX-UPSTREAM CVE-2019-19450-code-inj-paraparser.patch bsc#1215560 mcepl@suse.com # Patch from https://hg.reportlab.com/hg-public/reportlab/rev/b117091a73c2 # avoid code injection in paraparser.py allowing code execution Patch6: CVE-2019-19450-code-inj-paraparser.patch BuildRequires: freetype2-devel BuildRequires: python-devel BuildRequires: python-imaging BuildRequires: python-xml Requires: python-imaging Provides: python-ReportLab = %{version} Obsoletes: python-ReportLab < %{version} %description The ReportLab Toolkit. An Open Source Python library for generating PDFs and graphics. %prep %setup -q -n %{modname}-%{version} %autopatch -p1 sed -i "1d" src/reportlab/lib/{formatters,fonts,set_ops,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 export PYTHONPATH=%{buildroot}%{python_sitearch} python tests/runAll.py %clean %files %doc CHANGES.txt README.txt %{python_sitearch}/_renderPM.so %{python_sitearch}/_rl_accel.so %{python_sitearch}/pyHnj.so %{python_sitearch}/sgmlop.so %{python_sitearch}/%{modname}/ %{python_sitearch}/%{modname}-%{version}-py%{py_ver}.egg-info %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor