Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
8c2d65a79b
!50 修复%check报错
From: @qilinyangxiaodong 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
2024-06-07 01:53:26 +00:00
yangxiaodong
470236b7e9 add buildrequires python3-chardet to fix check test failure 2024-06-06 15:09:31 +08:00
openeuler-ci-bot
dcf9ba4fb1
!48 Fix check test failure
From: @yanjianqing_kylin 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
2024-04-17 14:03:56 +00:00
yanjianqing
4d768f50e5 Fix check test failure 2024-04-17 10:08:29 +08:00
openeuler-ci-bot
f5476caf1f
!46 Upgrede version to 4.0.8
From: @cherry530 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2024-01-16 06:45:31 +00:00
cherry530
361aa03ce3 Upgrade version 4.0.8
Signed-off-by: cherry530 <707078654@qq.com>
2024-01-16 11:37:19 +08:00
openeuler-ci-bot
0933f21d47
!37 Fix CVE-2023-33733
From: @starlet-dx 
Reviewed-by: @cherry530 
Signed-off-by: @cherry530
2023-07-26 06:29:39 +00:00
starlet-dx
795fd52632 Fix CVE-2023-33733 2023-07-26 10:28:59 +08:00
openeuler-ci-bot
47318684cb
!29 Fix compilation failure caused by setuptool upgrade
From: @lyn1001 
Reviewed-by: @cherry530 
Signed-off-by: @cherry530
2023-05-08 01:05:41 +00:00
lyn1001
1c6aacf98e Fix compilation failure caused by setuptool upgrade 2023-05-06 17:34:35 +08:00
3 changed files with 32 additions and 13 deletions

View File

@ -3,13 +3,15 @@
%bcond_without tests
Name: python-reportlab
Version: 3.6.12
Release: 1
Version: 4.0.8
Release: 3
Summary: ReportLab library to create PDF documents and graphic
License: BSD
URL: https://www.reportlab.com/
Source0: https://files.pythonhosted.org/packages/b8/ac/10d68a650b321bd8c4d8cbefd9994e7727d57b381c9bdb0a013273011e62/reportlab-3.6.12.tar.gz
BuildRequires: libart_lgpl-devel freetype-devel
Source0: https://files.pythonhosted.org/packages/source/r/reportlab/reportlab-%{version}.tar.gz
BuildRequires: freetype-devel
BuildRequires: python3-chardet
BuildArch: noarch
%description
The ReportLab Toolkit. An Open Source Python library for generating PDFs and graphics.
@ -46,32 +48,49 @@ rm -rf src/reportlab.egg-info
rm -rf src/rl_addons/renderPM/libart_lgpl
%build
CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS} -Isrc/rl_addons/renderPM -I%{_includedir}/libart-2.0}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\
%{__python3} setup.py --use-system-libart --no-download-t1-files build --executable="%{__python3} -s"
CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS} -Isrc/rl_addons/renderPM}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\
%{__python3} setup.py --no-download-t1-files build --executable="%{__python3} -s"
%install
CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS} -Isrc/rl_addons/renderPM -I%{_includedir}/libart-2.0}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\
%{__python3} setup.py --use-system-libart --no-download-t1-files install -O1 --skip-build --root ${RPM_BUILD_ROOT}
CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS} -Isrc/rl_addons/renderPM}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\
%{__python3} setup.py --no-download-t1-files install -O1 --skip-build --root ${RPM_BUILD_ROOT}
%if %{with tests}
%check
# Tests need in-build compiled Python modules to be executed
# Tests pre-generate userguide PDF
cp -a build/lib.%{python3_platform}-%{python3_version}/reportlab tests/
cp -a build/lib.%{python3_platform}-%{python3_version}/reportlab docs/
cp -a build/lib.%{python3_platform}-%{python3_version}/reportlab docs/userguide/
cp -a build/lib/reportlab tests/
cp -a build/lib/reportlab docs/
cp -a build/lib/reportlab docs/userguide/
%{__python3} setup.py tests
%endif
%files -n python3-reportlab
%doc README.txt CHANGES.md
%license LICENSE.txt
%{python3_sitearch}/{reportlab/,reportlab-%{version}-py%{python3_version}.egg-info}
%license LICENSE
%{python3_sitelib}/reportlab/
%{python3_sitelib}/reportlab-%{version}-py%{python3_version}.egg-info
%files help
%doc demos/ tools/
%changelog
* Thu Jun 6 2024 yangxiaodong <yangxiaodong@kylinos.cn> - 4.0.8-3
- add buildrequires python3-chardet to fix check test failure
* Wed Apr 17 2024 yanjianqing <yanjianqing@kylinos.cn> - 4.0.8-2
- Fix check test failure
* Tue Jan 16 2024 xu_ping <707078654@qq.com> - 4.0.8-1
- Upgrade version to 4.0.8
* Wed Jul 26 2023 yaoxin <yao_xin001@hoperun.com> - 3.6.12-3
- Fix CVE-2023-33733
* Sat May 6 2023 liyanan <thistleslyn@163.com> - 3.6.12-2
- Fix compilation failure caused by setuptool upgrade
* Tue Dec 13 2022 wubijie <wubijie@kylinos.cn> - 3.6.12-1
- Update package to version 3.6.12

Binary file not shown.

BIN
reportlab-4.0.8.tar.gz Normal file

Binary file not shown.