!4 Remove python2-reportlab
From: @wang_yue111 Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
81e0d95be4
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: python-reportlab
|
Name: python-reportlab
|
||||||
Version: 3.4.0
|
Version: 3.4.0
|
||||||
Release: 10
|
Release: 11
|
||||||
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/
|
||||||
@ -12,15 +12,6 @@ Patch0001: 0fbf25e4857423f6a38ca7f5aeee1c84acaa3fc1.patch
|
|||||||
%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.
|
||||||
|
|
||||||
%package -n python2-reportlab
|
|
||||||
Summary: ReportLab library to create PDF documents and graphic
|
|
||||||
BuildRequires: gcc freetype-devel ghostscript python2-devel python2-pillow libart_lgpl-devel
|
|
||||||
Requires: dejavu-sans-fonts python2-pillow
|
|
||||||
%{?python_provide:%python_provide python2-reportlab}
|
|
||||||
|
|
||||||
%description -n python2-reportlab
|
|
||||||
The ReportLab Toolkit. An Open Source Python library for generating PDFs and graphics.
|
|
||||||
|
|
||||||
%package -n python3-reportlab
|
%package -n python3-reportlab
|
||||||
Summary: ReportLab library to create PDF documents and graphic
|
Summary: ReportLab library to create PDF documents and graphic
|
||||||
BuildRequires: python3-devel python3-pillow
|
BuildRequires: python3-devel python3-pillow
|
||||||
@ -48,33 +39,16 @@ find src -name '*.py' | xargs sed -i -e '/^#!\//d'
|
|||||||
sed -i '/\~\/\.local\/share\/fonts\/CMap/i''\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ '\'"%{cmapdir}"\''\,' \
|
sed -i '/\~\/\.local\/share\/fonts\/CMap/i''\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ '\'"%{cmapdir}"\''\,' \
|
||||||
src/reportlab/rl_settings.py
|
src/reportlab/rl_settings.py
|
||||||
|
|
||||||
rm -rf %{py3dir}
|
|
||||||
cp -a . %{py3dir}
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="%{optflags}" %py2_build
|
|
||||||
pushd %{py3dir}
|
|
||||||
CFLAGS="%{optflags}" %py3_build
|
CFLAGS="%{optflags}" %py3_build
|
||||||
popd
|
|
||||||
|
|
||||||
PYTHONPATH="`pwd`/`ls -d build/lib*`" %{__python2} docs/genAll.py
|
PYTHONPATH="`pwd`/`ls -d build/lib*`" %{__python3} docs/genAll.py
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
pushd %{py3dir}
|
|
||||||
%py3_install
|
%py3_install
|
||||||
popd
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python2} setup.py tests
|
|
||||||
pushd %{py3dir}
|
|
||||||
%{__python3} setup.py tests
|
%{__python3} setup.py tests
|
||||||
popd
|
|
||||||
|
|
||||||
%files -n python2-reportlab
|
|
||||||
%doc README.txt CHANGES.md
|
|
||||||
%license LICENSE.txt
|
|
||||||
%{python2_sitearch}/{reportlab/,reportlab-%{version}-py%{python2_version}.egg-info}
|
|
||||||
%exclude %{python2_sitearch}/reportlab/fonts
|
|
||||||
|
|
||||||
%files -n python3-reportlab
|
%files -n python3-reportlab
|
||||||
%doc README.txt CHANGES.md
|
%doc README.txt CHANGES.md
|
||||||
@ -85,5 +59,8 @@ popd
|
|||||||
%doc demos/ tools/
|
%doc demos/ tools/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri 11 Sep 2020 wangyue<wangyue92@huawei.com> - 3.4.0-11
|
||||||
|
- Remove python2-reportlab
|
||||||
|
|
||||||
* Mon Mar 02 2020 Jiangping Hu <hujp1985@foxmail.com> - 3.4.0-10
|
* Mon Mar 02 2020 Jiangping Hu <hujp1985@foxmail.com> - 3.4.0-10
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user