From de671aae302c5019d2ffc0645f78b598ea3541eb Mon Sep 17 00:00:00 2001 From: Antonio Trande Date: Jun 15 2023 16:26:19 +0000 Subject: Release 4.0.4 --- diff --git a/.gitignore b/.gitignore index 8ccc80a..0603199 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,4 @@ ReportLab_2_3.tar.gz /reportlab-3.6.11.tar.gz /reportlab-3.6.12.tar.gz /reportlab-3.6.13.tar.gz +/reportlab-4.0.4.tar.gz diff --git a/python-reportlab.spec b/python-reportlab.spec index 650e08e..602ccfb 100644 --- a/python-reportlab.spec +++ b/python-reportlab.spec @@ -1,21 +1,22 @@ %global cmapdir %(echo `rpm -qls ghostscript | grep CMap | awk '{print $2}'`) %global pypi_name reportlab +%global debug_package %{nil} + %bcond_without tests Name: python-%{pypi_name} -Version: 3.6.13 +Version: 4.0.4 Release: %autorelease Summary: Library for generating PDFs and graphics License: BSD and GPLv2+ URL: https://www.reportlab.com/opensource/ Source0: %pypi_source +BuildArch: noarch BuildRequires: gcc BuildRequires: freetype-devel BuildRequires: ghostscript -BuildRequires: libart_lgpl-devel - Buildrequires: fontpackages-devel %global fonts font(dejavusans) BuildRequires: %{fonts} @@ -56,52 +57,52 @@ rm -rf src/reportlab.egg-info rm -rf src/rl_addons/renderPM/libart_lgpl %build -CFLAGS="%{build_cflags} -Isrc/rl_addons/renderPM `pkg-config --cflags libart-2.0`" \ - %py3_build -- --use-system-libart --no-download-t1-files +CFLAGS="%{build_cflags} -Isrc/rl_addons/renderPM" \ + %py3_build -- --no-download-t1-files %install -CFLAGS="%{build_cflags} -Isrc/rl_addons/renderPM `pkg-config --cflags libart-2.0`" \ - %py3_install -- --use-system-libart --no-download-t1-files +CFLAGS="%{build_cflags} -Isrc/rl_addons/renderPM" \ + %py3_install -- --no-download-t1-files # Unbundled fonts -ln -sf $(fc-match -f "%{file}" "DejaVu Sans:style=Regular") %{buildroot}%{python3_sitearch}/reportlab/fonts/Vera.ttf -ln -sf $(fc-match -f "%{file}" "DejaVu Sans:style=Bold Oblique") %{buildroot}%{python3_sitearch}/reportlab/fonts/VeraBI.ttf -ln -sf $(fc-match -f "%{file}" "DejaVu Sans:style=Bold") %{buildroot}%{python3_sitearch}/reportlab/fonts/VeraBd.ttf -ln -sf $(fc-match -f "%{file}" "DejaVu Sans:style=Condensed Oblique") %{buildroot}%{python3_sitearch}/reportlab/fonts/VeraIt.ttf +ln -sf $(fc-match -f "%{file}" "DejaVu Sans:style=Regular") %{buildroot}%{python3_sitelib}/reportlab/fonts/Vera.ttf +ln -sf $(fc-match -f "%{file}" "DejaVu Sans:style=Bold Oblique") %{buildroot}%{python3_sitelib}/reportlab/fonts/VeraBI.ttf +ln -sf $(fc-match -f "%{file}" "DejaVu Sans:style=Bold") %{buildroot}%{python3_sitelib}/reportlab/fonts/VeraBd.ttf +ln -sf $(fc-match -f "%{file}" "DejaVu Sans:style=Condensed Oblique") %{buildroot}%{python3_sitelib}/reportlab/fonts/VeraIt.ttf -rm -f %{buildroot}%{python3_sitearch}/reportlab/fonts/bitstream-vera-license.txt +rm -f %{buildroot}%{python3_sitelib}/reportlab/fonts/bitstream-vera-license.txt -cp -a demos %{buildroot}%{python3_sitearch}/reportlab/ -cp -a tools %{buildroot}%{python3_sitearch}/reportlab/ +cp -a demos %{buildroot}%{python3_sitelib}/reportlab/ +cp -a tools %{buildroot}%{python3_sitelib}/reportlab/ # Fix shebang in individual files -%{__python3} %{_rpmconfigdir}/redhat/pathfix.py -pn -i "%{__python3}" %{buildroot}%{python3_sitearch}/reportlab/demos/tests/testdemos.py -%{__python3} %{_rpmconfigdir}/redhat/pathfix.py -pn -i "%{__python3}" %{buildroot}%{python3_sitearch}/reportlab/tools/docco/docpy.py -%{__python3} %{_rpmconfigdir}/redhat/pathfix.py -pn -i "%{__python3}" %{buildroot}%{python3_sitearch}/reportlab/tools/docco/graphdocpy.py -%{__python3} %{_rpmconfigdir}/redhat/pathfix.py -pn -i "%{__python3}" %{buildroot}%{python3_sitearch}/reportlab/tools/docco/rl_doc_utils.py -%{__python3} %{_rpmconfigdir}/redhat/pathfix.py -pn -i "%{__python3}" %{buildroot}%{python3_sitearch}/reportlab/tools/pythonpoint/pythonpoint.py - -chmod 0755 %{buildroot}%{python3_sitearch}/reportlab/demos/tests/testdemos.py -chmod 0755 %{buildroot}%{python3_sitearch}/reportlab/tools/docco/docpy.py -chmod 0755 %{buildroot}%{python3_sitearch}/reportlab/tools/docco/graphdocpy.py -chmod 0755 %{buildroot}%{python3_sitearch}/reportlab/tools/docco/rl_doc_utils.py -chmod 0755 %{buildroot}%{python3_sitearch}/reportlab/tools/pythonpoint/pythonpoint.py +%py3_shebang_fix %{buildroot}%{python3_sitelib}/reportlab/demos/tests/testdemos.py +%py3_shebang_fix %{buildroot}%{python3_sitelib}/reportlab/tools/docco/docpy.py +%py3_shebang_fix %{buildroot}%{python3_sitelib}/reportlab/tools/docco/graphdocpy.py +%py3_shebang_fix %{buildroot}%{python3_sitelib}/reportlab/tools/docco/rl_doc_utils.py +%py3_shebang_fix %{buildroot}%{python3_sitelib}/reportlab/tools/pythonpoint/pythonpoint.py + +chmod 0755 %{buildroot}%{python3_sitelib}/reportlab/demos/tests/testdemos.py +chmod 0755 %{buildroot}%{python3_sitelib}/reportlab/tools/docco/docpy.py +chmod 0755 %{buildroot}%{python3_sitelib}/reportlab/tools/docco/graphdocpy.py +chmod 0755 %{buildroot}%{python3_sitelib}/reportlab/tools/docco/rl_doc_utils.py +chmod 0755 %{buildroot}%{python3_sitelib}/reportlab/tools/pythonpoint/pythonpoint.py %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}-cpython-%{python3_version_nodots}/reportlab tests/ -cp -a build/lib.%{python3_platform}-cpython-%{python3_version_nodots}/reportlab docs/ -cp -a build/lib.%{python3_platform}-cpython-%{python3_version_nodots}/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-%{pypi_name} %doc README.txt CHANGES.md docs/reportlab-userguide.pdf -%license LICENSE.txt -%{python3_sitearch}/reportlab/ -%{python3_sitearch}/reportlab-%{version}-py%{python3_version}.egg-info +%license LICENSE +%{python3_sitelib}/reportlab/ +%{python3_sitelib}/reportlab-%{version}-py%{python3_version}.egg-info %changelog %autochangelog diff --git a/sources b/sources index f979b50..53cd113 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (reportlab-3.6.13.tar.gz) = 059c3acf2c995ebdd3ffe005bd98640bc9c063c2fb9b3115351b9c1a4f7cfdabf4ffe61123342de2e84773005d46cf6d44410042206222df0700259e31ec7aae +SHA512 (reportlab-4.0.4.tar.gz) = 7d79f6258672523bee50256b5b15e336801fc42f290fa2ed5ed0ab355c9f2903c9210bb935c9c00fa74174072232402247c923268ede5d61ca62493d0faa2844