[packages/ghostscript] Up to 10.02.0

arekm arekm at pld-linux.org
Thu Oct 5 14:24:38 CEST 2023


commit c4bf0d5d215f673d11962c47d02894109af212d2
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Oct 5 13:33:38 2023 +0200

    Up to 10.02.0

 ghostscript-gdevcd8-fixes.patch       | 20 ++++++++++----------
 ghostscript-iccprofiles-initdir.patch |  2 +-
 ghostscript-zlib.patch                | 20 --------------------
 ghostscript.spec                      | 22 ++++++----------------
 4 files changed, 17 insertions(+), 47 deletions(-)
---
diff --git a/ghostscript.spec b/ghostscript.spec
index a08578f..f9e6beb 100644
--- a/ghostscript.spec
+++ b/ghostscript.spec
@@ -20,13 +20,13 @@ Summary(ja.UTF-8):	PostScript インタープリタ・レンダラー
 Summary(pl.UTF-8):	Bezpłatny interpreter i renderer PostScriptu i PDF
 Summary(tr.UTF-8):	PostScript & PDF yorumlayıcı ve gösterici
 Name:		ghostscript
-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:	46dabbb1554391a3d0d95ce8304363f0
+Source0:	https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10020/%{name}-%{version}.tar.xz
+# Source0-md5:	80c1cdfada72f2eb5987dc0d590ea5b2
 Source1:	http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
 # Source1-md5:	9b5953aa0cc155f4364f20036b848585
 Patch0:		%{name}-missquotes.patch
@@ -34,7 +34,6 @@ Patch1:		%{name}-a4.patch
 Patch2:		ijs-pkgconfig.patch
 
 Patch6:		%{name}-gdevcd8-fixes.patch
-Patch8:		%{name}-zlib.patch
 
 # fedora
 Patch20:	%{name}-scripts.patch
@@ -219,7 +218,6 @@ Statyczna wersja biblioteki IJS.
 %patch2 -p1
 
 %patch6 -p1
-%patch8 -p1
 
 %patch20 -p1
 
@@ -247,7 +245,7 @@ Statyczna wersja biblioteki IJS.
 %configure \
 	%{!?with_cairo:--disable-cairo} \
 	--disable-compile-inits \
-	--enable-dynamic \
+        --enable-dynamic --disable-hidden-visibility \
 	--with-drivers=ALL \
 	--with-fontpath="%{_datadir}/fonts:%{_datadir}/fonts/Type1" \
 	--with-ijs \
@@ -291,8 +289,7 @@ cp -p base/gserrors.h $RPM_BUILD_ROOT%{_includedir}/ghostscript
 cp -p LICENSE $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
 
 %{__rm} $RPM_BUILD_ROOT%{_bindir}/*.sh \
-	$RPM_BUILD_ROOT%{_mandir}/man1/{ps2pdf1{2,3},eps2eps}.1 \
-	$RPM_BUILD_ROOT%{_mandir}/de/man1/{ps2pdf1{2,3},eps2eps}.1
+	$RPM_BUILD_ROOT%{_mandir}/man1/{ps2pdf1{2,3},eps2eps}.1
 
 echo ".so gs.1"     > $RPM_BUILD_ROOT%{_mandir}/man1/ghostscript.1
 echo ".so ps2pdf.1" > $RPM_BUILD_ROOT%{_mandir}/man1/ps2pdf12.1
@@ -303,10 +300,6 @@ echo ".so gslp.1"   > $RPM_BUILD_ROOT%{_mandir}/man1/gsdj.1
 echo ".so gslp.1"   > $RPM_BUILD_ROOT%{_mandir}/man1/gsdj500.1
 echo ".so gslp.1"   > $RPM_BUILD_ROOT%{_mandir}/man1/gslj.1
 
-echo ".so ps2ps.1"  > $RPM_BUILD_ROOT%{_mandir}/de/man1/eps2eps.1
-echo ".so ps2pdf.1" > $RPM_BUILD_ROOT%{_mandir}/de/man1/ps2pdf12.1
-echo ".so ps2pdf.1" > $RPM_BUILD_ROOT%{_mandir}/de/man1/ps2pdf13.1
-
 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
 %{__rm} $RPM_BUILD_ROOT%{_mandir}/README.ghostscript-non-english-man-pages
 
@@ -351,9 +344,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/ps2ps2
 %attr(755,root,root) %{_bindir}/pphs
 %attr(755,root,root) %{_libdir}/libgs.so.*.*
-%attr(755,root,root) %ghost %{_libdir}/libgs.so.9
-%dir %{_libdir}/%{name}
-%dir %{_libdir}/%{name}/%{version}
+%attr(755,root,root) %ghost %{_libdir}/libgs.so.10
 %dir %{_datadir}/%{name}
 %dir %{_datadir}/%{name}/%{version}
 %{_datadir}/%{name}/%{version}/Resource
@@ -388,7 +379,6 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man1/ps2pdfwr.1*
 %{_mandir}/man1/ps2ps.1*
 %lang(cs) %{_mandir}/cs/man1/*
-%lang(de) %{_mandir}/de/man1/*
 %lang(es) %{_mandir}/es/man1/*
 %lang(fr) %{_mandir}/fr/man1/*
 %lang(pl) %{_mandir}/pl/man1/*
diff --git a/ghostscript-gdevcd8-fixes.patch b/ghostscript-gdevcd8-fixes.patch
index 188f3c4..9581546 100644
--- a/ghostscript-gdevcd8-fixes.patch
+++ b/ghostscript-gdevcd8-fixes.patch
@@ -78,21 +78,21 @@ Jakub Bogusz <qboosh at pld-linux.org>
      cdj850->mastergamma = mastergamma;
      cdj850->gammavalc = gammavalc;
      cdj850->gammavalm = gammavalm;
-@@ -1180,7 +1185,13 @@ static void
+@@ -1185,7 +1185,13 @@
                          gx_device_printer * pdev,
                          struct error_val_field *error_values);
  static int
--    do_gcr(int bytecount, byte * inbyte, const byte * kvalues,
-+    do_gcr_noblack(int bytecount, byte * inbyte, const byte * kvalues,
-+           const byte * cvalues, const byte * mvalues,
-+           const byte * yvalues, const int *kcorrect,
-+           word * inword);
+-do_gcr(int bytecount, byte * inbyte, const byte kvalues[256],
++do_gcr_noblack(int bytecount, byte * inbyte, const byte kvalues[256],
++       const byte cvalues[256], const byte mvalues[256],
++       const byte yvalues[256], const int kcorrect[256],
++       word * inword);
 +
 +static int
-+    do_gcr_gcr(int bytecount, byte * inbyte, const byte * kvalues,
-            const byte * cvalues, const byte * mvalues,
-            const byte * yvalues, const int *kcorrect,
-            word * inword);
++do_gcr_gcr(int bytecount, byte * inbyte, const byte kvalues[256],
+        const byte cvalues[256], const byte mvalues[256],
+        const byte yvalues[256], const int kcorrect[256],
+        word * inword);
 @@ -2045,7 +2056,10 @@ send_scan_lines(gx_device_printer * pdev
          }
          /* Skip blank lines if any */
diff --git a/ghostscript-iccprofiles-initdir.patch b/ghostscript-iccprofiles-initdir.patch
index 9c9c4a5..bc67ae6 100644
--- a/ghostscript-iccprofiles-initdir.patch
+++ b/ghostscript-iccprofiles-initdir.patch
@@ -2,9 +2,9 @@ diff -up ghostscript-9.06/base/gsicc_manage.c.iccprofiles-initdir ghostscript-9.
 --- ghostscript-9.06/base/gsicc_manage.c.iccprofiles-initdir	2012-08-09 13:58:22.102364807 +0100
 +++ ghostscript-9.06/base/gsicc_manage.c	2012-08-09 14:09:24.495864641 +0100
 @@ -40,6 +40,7 @@
- #include "gpmisc.h"
  #include "gxdevice.h"
  #include "gxdevsop.h"
+ #include "assert_.h"
 +#include "gxiodev.h"
  
  #define ICC_HEADER_SIZE 128
diff --git a/ghostscript-zlib.patch b/ghostscript-zlib.patch
deleted file mode 100644
index 533f0eb..0000000
--- a/ghostscript-zlib.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- ghostscript-9.54.0/configure.ac.orig	2021-04-25 20:45:17.498439464 +0200
-+++ ghostscript-9.54.0/configure.ac	2021-04-25 20:46:23.098488486 +0200
-@@ -1403,7 +1403,7 @@ AC_MSG_CHECKING([for local zlib source])
- dnl zlib is needed for language level 3, and libpng
- # we must define ZLIBDIR regardless because png.mak does a -I$(ZLIBDIR)
- # this seems a harmless default
--ZLIBDIR=src
-+ZLIBDIR=$includedir
- AUX_SHARED_ZLIB=
- ZLIBCFLAGS=""
- 
-@@ -1434,6 +1434,8 @@ if test -z "$SHARE_ZLIB"; then
-   local directory named 'zlib'. See http://www.gzip.org/zlib/
-   for more information.
-   ])
-+else
-+  LIBS="$LIBS -lz"
- fi
- 
- dnl if GS is to use the system zlib, freetype
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ghostscript.git/commitdiff/c4bf0d5d215f673d11962c47d02894109af212d2



More information about the pld-cvs-commit mailing list