diff --git a/python-reportlab.spec b/python-reportlab.spec index 896464d..bc53229 100644 --- a/python-reportlab.spec +++ b/python-reportlab.spec @@ -1,29 +1,24 @@ Name: python-reportlab -Version: 3.5.67 +Version: 3.5.68 Release: 1mamba Summary: An Open Source Python library for generating PDFs and graphics Group: System/Libraries/Python Vendor: openmamba Distribution: openmamba -Packager: Ercole 'ercolinux' Carpanetto -URL: https://www.reportlab.org/ +Packager: Silvan Calarco +URL: https://pypi.org/project/reportlab/ Source: https://pypi.debian.net/reportlab/reportlab-%{version}.tar.gz Source1: http://www.reportlab.com/ftp/pfbfer-20070710.zip License: BSD ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel -BuildRequires: libart_lgpl-devel BuildRequires: libfreetype-devel -BuildRequires: libpython-devel +BuildRequires: libpython3-devel +BuildRequires: python3.7dist(pillow) ## AUTOBUILDREQ-END BuildRequires: libpython3-devel >= 3.7.4 BuildRequires: python-Pillow-py3 #BuildRequires: python-xml-py3 -Requires: python >= %python_version -Requires: python-pip -Requires: python-Pillow -Provides: ReportLab -Obsoletes: ReportLab %description An Open Source Python library for generating PDFs and graphics. @@ -31,33 +26,15 @@ An Open Source Python library for generating PDFs and graphics. %package doc Group: Documentation Summary: Documentation package for %{name} -Requires: %{name} = %{?epoch:epoch:}%{version}-%{release} %description doc An Open Source Python library for generating PDFs and graphics. This package contains the documentation files. -%if "%?with_pyver" -%define pyver %{with_pyver} -%define pyappend py%{with_pyver} -%define __python %(rpm --eval %{__python%{with_pyver}}) -%define python_sitearch %(rpm --eval %{python%{with_pyver}_sitearch}) -%define python_sitelib %(rpm --eval %{python%{with_pyver}_sitelib}) -%define python_inc %(rpm --eval %{python%{with_pyver}_inc}) -%define python_version %(rpm --eval %{python%{with_pyver}_version}) -%define python_provides %(rpm --eval %{python%{with_pyver}_provides}) -%define python_requires %(rpm --eval %{python%{with_pyver}_requires}) -%define py_requires %(rpm --eval %{py%{with_pyver}_requires}) - -%package py%{pyver} -Group: System/Libraries/Python -Summary: %{summary}. -Requires: python-pip-%{?pyappend} -Requires: python-Pillow-%{?pyappend} -%py_requires - -%description py%{pyver} -%{summary}. +%if "%{?with_pyver}" +%pyver_package +%define py_requires_append \ +Obsoletes: ReportLab < 3.5.68 %endif %prep @@ -68,7 +45,7 @@ find src -name '*.py' -exec sed -i -e '\,^#!/,d' '{}' ';' %build CFLAGS="%{optflags}" %{__python} setup.py build -%if "%{?with_pyver}" == "" +%if "%{?with_pyver}" == "3" # make documentation PYTHONPATH="$(pwd)/$(ls -d build/lib*)" %{__python} docs/genAll.py %endif @@ -82,7 +59,7 @@ PYTHONPATH="$(pwd)/$(ls -d build/lib*)" %{__python} docs/genAll.py --install-lib=%{python_sitearch} \ --record=%{name}.filelist -#sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist # remove useless testdemos rm -rf demos/tests @@ -92,9 +69,11 @@ rm -rf demos/tests %files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) +%dir %{python_sitearch}/reportlab-%{version}-py*.egg-info +%{python_sitearch}/reportlab-%{version}-py*.egg-info/* %doc LICENSE.txt -%if "%{?with_pyver}" == "" +%if "%{?with_pyver}" == "3" %files doc %defattr(-,root,root) %doc docs/*.pdf @@ -103,6 +82,9 @@ rm -rf demos/tests %endif %changelog +* Sat Jul 10 2021 Silvan Calarco 3.5.68-1mamba +- update to 3.5.68 + * Wed Apr 14 2021 Automatic Build System 3.5.67-1mamba - automatic version update by autodist