Compare commits

..

No commits in common. "8c2d65a79b06f59f3b9d802923f07edf3048e8b8" and "eefbf8c3d8f8a6ec9730477133db163fd0176253" have entirely different histories.

3 changed files with 13 additions and 32 deletions

View File

@ -3,15 +3,13 @@
%bcond_without tests
Name: python-reportlab
Version: 4.0.8
Release: 3
Version: 3.6.12
Release: 1
Summary: ReportLab library to create PDF documents and graphic
License: BSD
URL: https://www.reportlab.com/
Source0: https://files.pythonhosted.org/packages/source/r/reportlab/reportlab-%{version}.tar.gz
BuildRequires: freetype-devel
BuildRequires: python3-chardet
BuildArch: noarch
Source0: https://files.pythonhosted.org/packages/b8/ac/10d68a650b321bd8c4d8cbefd9994e7727d57b381c9bdb0a013273011e62/reportlab-3.6.12.tar.gz
BuildRequires: libart_lgpl-devel freetype-devel
%description
The ReportLab Toolkit. An Open Source Python library for generating PDFs and graphics.
@ -48,49 +46,32 @@ rm -rf src/reportlab.egg-info
rm -rf src/rl_addons/renderPM/libart_lgpl
%build
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"
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"
%install
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}
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}
%if %{with tests}
%check
# Tests need in-build compiled Python modules to be executed
# Tests pre-generate userguide PDF
cp -a build/lib/reportlab tests/
cp -a build/lib/reportlab docs/
cp -a build/lib/reportlab docs/userguide/
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/
%{__python3} setup.py tests
%endif
%files -n python3-reportlab
%doc README.txt CHANGES.md
%license LICENSE
%{python3_sitelib}/reportlab/
%{python3_sitelib}/reportlab-%{version}-py%{python3_version}.egg-info
%license LICENSE.txt
%{python3_sitearch}/{reportlab/,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

BIN
reportlab-3.6.12.tar.gz Normal file

Binary file not shown.

Binary file not shown.