Compare commits
No commits in common. "8c2d65a79b06f59f3b9d802923f07edf3048e8b8" and "eefbf8c3d8f8a6ec9730477133db163fd0176253" have entirely different histories.
8c2d65a79b
...
eefbf8c3d8
@ -3,15 +3,13 @@
|
|||||||
%bcond_without tests
|
%bcond_without tests
|
||||||
|
|
||||||
Name: python-reportlab
|
Name: python-reportlab
|
||||||
Version: 4.0.8
|
Version: 3.6.12
|
||||||
Release: 3
|
Release: 1
|
||||||
Summary: ReportLab library to create PDF documents and graphic
|
Summary: ReportLab library to create PDF documents and graphic
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://www.reportlab.com/
|
URL: https://www.reportlab.com/
|
||||||
Source0: https://files.pythonhosted.org/packages/source/r/reportlab/reportlab-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/b8/ac/10d68a650b321bd8c4d8cbefd9994e7727d57b381c9bdb0a013273011e62/reportlab-3.6.12.tar.gz
|
||||||
BuildRequires: freetype-devel
|
BuildRequires: libart_lgpl-devel freetype-devel
|
||||||
BuildRequires: python3-chardet
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The ReportLab Toolkit. An Open Source Python library for generating PDFs and graphics.
|
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
|
rm -rf src/rl_addons/renderPM/libart_lgpl
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS} -Isrc/rl_addons/renderPM}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\
|
CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS} -Isrc/rl_addons/renderPM -I%{_includedir}/libart-2.0}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\
|
||||||
%{__python3} setup.py --no-download-t1-files build --executable="%{__python3} -s"
|
%{__python3} setup.py --use-system-libart --no-download-t1-files build --executable="%{__python3} -s"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS} -Isrc/rl_addons/renderPM}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\
|
CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS} -Isrc/rl_addons/renderPM -I%{_includedir}/libart-2.0}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\
|
||||||
%{__python3} setup.py --no-download-t1-files install -O1 --skip-build --root ${RPM_BUILD_ROOT}
|
%{__python3} setup.py --use-system-libart --no-download-t1-files install -O1 --skip-build --root ${RPM_BUILD_ROOT}
|
||||||
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
# Tests need in-build compiled Python modules to be executed
|
# Tests need in-build compiled Python modules to be executed
|
||||||
# Tests pre-generate userguide PDF
|
# Tests pre-generate userguide PDF
|
||||||
cp -a build/lib/reportlab tests/
|
cp -a build/lib.%{python3_platform}-%{python3_version}/reportlab tests/
|
||||||
cp -a build/lib/reportlab docs/
|
cp -a build/lib.%{python3_platform}-%{python3_version}/reportlab docs/
|
||||||
cp -a build/lib/reportlab docs/userguide/
|
cp -a build/lib.%{python3_platform}-%{python3_version}/reportlab docs/userguide/
|
||||||
|
|
||||||
%{__python3} setup.py tests
|
%{__python3} setup.py tests
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -n python3-reportlab
|
%files -n python3-reportlab
|
||||||
%doc README.txt CHANGES.md
|
%doc README.txt CHANGES.md
|
||||||
%license LICENSE
|
%license LICENSE.txt
|
||||||
%{python3_sitelib}/reportlab/
|
%{python3_sitearch}/{reportlab/,reportlab-%{version}-py%{python3_version}.egg-info}
|
||||||
%{python3_sitelib}/reportlab-%{version}-py%{python3_version}.egg-info
|
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%doc demos/ tools/
|
%doc demos/ tools/
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Dec 13 2022 wubijie <wubijie@kylinos.cn> - 3.6.12-1
|
||||||
- Update package to version 3.6.12
|
- Update package to version 3.6.12
|
||||||
|
|
||||||
|
|||||||
BIN
reportlab-3.6.12.tar.gz
Normal file
BIN
reportlab-3.6.12.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user