Compare commits
10 Commits
eefbf8c3d8
...
8c2d65a79b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8c2d65a79b | ||
|
|
470236b7e9 | ||
|
|
dcf9ba4fb1 | ||
|
|
4d768f50e5 | ||
|
|
f5476caf1f | ||
|
|
361aa03ce3 | ||
|
|
0933f21d47 | ||
|
|
795fd52632 | ||
|
|
47318684cb | ||
|
|
1c6aacf98e |
@ -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
BIN
reportlab-4.0.8.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user