[packages/ghostpdl] - updated to 10.02.0, default to system tesseract
qboosh
qboosh at pld-linux.org
Sun Oct 29 10:27:21 CET 2023
commit 3b35fe8ddd2b0099119a845097262298aff85a9b
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Oct 29 09:20:27 2023 +0100
- updated to 10.02.0, default to system tesseract
ghostpdl.spec | 61 +++++++++++++++++++++++++++++++----------------------------
1 file changed, 32 insertions(+), 29 deletions(-)
---
diff --git a/ghostpdl.spec b/ghostpdl.spec
index 4567078..db3a2ee 100644
--- a/ghostpdl.spec
+++ b/ghostpdl.spec
@@ -7,40 +7,42 @@
%bcond_with system_libjpeg # system libjpeg (incompatible with D_MAX_BLOCKS_IN_MCU=64 variant)
%bcond_with system_libtiff # system libtiff (incompatible with modified libjpeg)
%bcond_without system_openjp2 # system openjpeg2
+%bcond_without system_tesseract # system tesseract+leptonlib
#
Summary: PostScript, PDF and XPS interpreter and renderer
Summary(pl.UTF-8): Interpreter i renderer PostScriptu, PDF oraz XPS
Name: ghostpdl
-Version: 9.56.1
+Version: 10.02.0
Release: 1
License: AGPL v3+
Group: Applications/Graphics
#Source0Download: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases
-Source0: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9561/%{name}-%{version}.tar.xz
-# Source0-md5: 03535e1052d853165a550c4d4da182d7
+Source0: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10020/%{name}-%{version}.tar.xz
+# Source0-md5: 536189cdacb3f0db3f55c4075255ce3a
Patch0: %{name}-fonts_locations.patch
Patch1: %{name}-make.patch
Patch2: %{name}-system-libs.patch
URL: https://ghostscript.com/
BuildRequires: autoconf >= 2.63
BuildRequires: cups-devel >= 1.5
-%{?with_system_expat:BuildRequires: expat-devel >= 1:2.2.9}
+%{?with_system_expat:BuildRequires: expat-devel >= 1:2.5.0}
BuildRequires: fontconfig-devel
BuildRequires: libidn-devel
-%{?with_system_freetype:BuildRequires: freetype-devel >= 1:2.10.4}
-%{?with_system_jbig2dec:BuildRequires: jbig2dec-devel >= 0.19}
+%{?with_system_freetype:BuildRequires: freetype-devel >= 1:2.13.0}
+%{?with_system_jbig2dec:BuildRequires: jbig2dec-devel >= 0.20}
%{?with_system_lcms2:BuildRequires: lcms2-devel >= 2.10}
-%{?with_system_libjpeg:BuildRequires: libjpeg-devel >= 9c}
+%{?with_system_libjpeg:BuildRequires: libjpeg-devel >= 9e}
BuildRequires: libpaper-devel
-BuildRequires: libpng-devel >= 2:1.6.37
+BuildRequires: libpng-devel >= 2:1.6.39
%{?with_system_libtiff:BuildRequires: libtiff-devel >= 4.2.0}
%{?with_system_openjp2:BuildRequires: openjpeg2-devel >= 2.4.0}
BuildRequires: tar >= 1:1.22
+%{?with_system_tesseract:BuildRequires: tesseract-devel >= 4.1.0}
BuildRequires: xorg-lib-libX11-devel
BuildRequires: xorg-lib-libXext-devel
BuildRequires: xorg-lib-libXt-devel
BuildRequires: xz
-BuildRequires: zlib-devel >= 1.2.11
+BuildRequires: zlib-devel >= 1.2.13
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -59,15 +61,15 @@ Summary(pl.UTF-8): Implementacja PCL-5 oraz PCL-XL
Group: Applications/Graphics
URL: http://ghostscript.com/GhostPCL.html
Requires: cups-lib >= 1.5
-%{?with_system_expat:Requires: expat >= 1:2.2.9}
-%{?with_system_freetype:Requires: freetype >= 1:2.10.4}
+%{?with_system_expat:Requires: expat >= 1:2.5.0}
+%{?with_system_freetype:Requires: freetype >= 1:2.13.0}
Requires: ghostscript = %{version}
-%{?with_system_jbig2dec:Requires: jbig2dec >= 0.19}
-%{?with_system_libjpeg:Requires: libjpeg >= 9c}
-Requires: libpng >= 2:1.6.37
+%{?with_system_jbig2dec:Requires: jbig2dec >= 0.20}
+%{?with_system_libjpeg:Requires: libjpeg >= 9e}
+Requires: libpng >= 2:1.6.39
%{?with_system_libtiff:Requires: libtiff >= 4.2.0}
%{?with_system_openjp2:Requires: openjpeg2 >= 2.4.0}
-Requires: zlib >= 1.2.11
+Requires: zlib >= 1.2.13
Suggests: fonts-TTF-urw
Conflicts: ghostpcl < 9
@@ -85,15 +87,15 @@ Summary(pl.UTF-8): Implementacja formatu dokumentów XPS oparta na Ghostscripcie
Group: Applications/Graphics
URL: http://ghostscript.com/GhostXPS.html
Requires: cups-lib >= 1.5
-%{?with_system_expat:Requires: expat >= 1:2.2.9}
-%{?with_system_freetype:Requires: freetype >= 1:2.10.4}
+%{?with_system_expat:Requires: expat >= 1:2.5.0}
+%{?with_system_freetype:Requires: freetype >= 1:2.13.0}
Requires: ghostscript = %{version}
-%{?with_system_jbig2dec:Requires: jbig2dec >= 0.19}
-%{?with_system_libjpeg:Requires: libjpeg >= 9c}
-Requires: libpng >= 2:1.6.37
+%{?with_system_jbig2dec:Requires: jbig2dec >= 0.20}
+%{?with_system_libjpeg:Requires: libjpeg >= 9e}
+Requires: libpng >= 2:1.6.39
%{?with_system_libtiff:Requires: libtiff >= 4.2.0}
%{?with_system_openjp2:Requires: openjpeg2 >= 2.4.0}
-Requires: zlib >= 1.2.11
+Requires: zlib >= 1.2.13
%description -n ghostxps
GhostXPS is an implementation of the Microsoft XPS document format
@@ -111,22 +113,24 @@ oparciu o Ghostscript.
%build
# use system libs:
-# expat 2.2.9
+# expat 2.5.0
%{?with_system_expat:%{__rm} -r expat}
-# freetype 2.10.4
+# freetype 2.13.0
%{?with_system_freetype:%{__rm} -r freetype}
-# jbig2dec 0.19
+# jbig2dec 0.20
%{?with_system_jbig2dec:%{__rm} -r jbig2dec}
-# (unmodified) libpng 1.6.37 and zlib 1.2.11
+# (unmodified) libpng 1.6.39 and zlib 1.2.13
%{__rm} -r libpng zlib
-# libjpeg 9d (with additional CLAMP_DC) is built with different configuration (D_MAX_BLOCKS_IN_MCU=64)
+# libjpeg 9e (with additional CLAMP_DC) is built with different configuration (D_MAX_BLOCKS_IN_MCU=64)
%{?with_system_libjpeg:%{__rm} -r jpeg}
# lcms2mt is thread safe version of lcms2 2.10
%{?with_system_lcms:%{__rm} -r lcms2mt}
-# leptonica 1.81.0-git (for tesseract), no switch to use system
# openjpeg 2.4.0
%{?with_system_openjp2:%{__rm} -r openjpeg}
-# tesseract 5.0.0-alpha, no switch to use system
+# tesseract 5.0.0-alpha-20201231, leptonica 1.81.0-git
+%{?with_system_tesseract:%{__rm} -r tesseract leptonica}
+# libtiff 4.5.0rc2
+%{?with_system_libtiff:%{__rm} -r tiff}
%{__autoconf}
%configure \
@@ -146,7 +150,6 @@ ln -sf gpcl6 $RPM_BUILD_ROOT%{_bindir}/pcl6
# packaged in ghostscript.spec
%{__rm} $RPM_BUILD_ROOT%{_bindir}/{dvipdf,eps2eps,gs*,lprsetup.sh,pdf2*,pf2afm,pfbtopfa,pphs,printafm,ps2*,unix-lpr.sh}
%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{dvipdf,eps2eps,gs*,pdf2*,pf2afm,pfbtopfa,printafm,ps2*}.1
-%{__rm} $RPM_BUILD_ROOT%{_mandir}/de/man1/{dvipdf,eps2eps,gsnd,pdf2*,printafm,ps2*}.1
%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/ghostscript
%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/ghostscript
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ghostpdl.git/commitdiff/3b35fe8ddd2b0099119a845097262298aff85a9b
More information about the pld-cvs-commit
mailing list