diff --git a/ghostscript-9.56.1-Deal-with-different-VM-modes-during-CIDFont-loading.patch b/ghostscript-10.0.0-Deal-with-different-VM-modes-during-CIDFont-loading.patch similarity index 100% rename from ghostscript-9.56.1-Deal-with-different-VM-modes-during-CIDFont-loading.patch rename to ghostscript-10.0.0-Deal-with-different-VM-modes-during-CIDFont-loading.patch diff --git a/ghostscript-9.56.1-Fix-color-info-juggling-with-x11-devices.patch b/ghostscript-10.0.0-Fix-color-info-juggling-with-x11-devices.patch similarity index 100% rename from ghostscript-9.56.1-Fix-color-info-juggling-with-x11-devices.patch rename to ghostscript-10.0.0-Fix-color-info-juggling-with-x11-devices.patch diff --git a/ghostscript-9.56.1.tar.xz b/ghostscript-10.0.0.tar.xz similarity index 83% rename from ghostscript-9.56.1.tar.xz rename to ghostscript-10.0.0.tar.xz index 7b311e1885329c4dc365535d0706a273acf22605..500e7f1803010e518094099eb68c61f64248fbb3 100644 Binary files a/ghostscript-9.56.1.tar.xz and b/ghostscript-10.0.0.tar.xz differ diff --git a/ghostscript-9.56-fix-PDFFitPage-with-square-MediaBox.patch b/ghostscript-9.56-fix-PDFFitPage-with-square-MediaBox.patch deleted file mode 100644 index 948efde9e48bb834cdca197e826fa1761c5cc3a4..0000000000000000000000000000000000000000 --- a/ghostscript-9.56-fix-PDFFitPage-with-square-MediaBox.patch +++ /dev/null @@ -1,35 +0,0 @@ -From 50e114295a65cceac49123f359e24f2f5007110a Mon Sep 17 00:00:00 2001 -Message-Id: <50e114295a65cceac49123f359e24f2f5007110a.1662477568.git.mjg@fedoraproject.org> -From: Ken Sharp -Date: Tue, 6 Sep 2022 14:39:33 +0100 -Subject: [PATCH] GhostPDF + GS - fix PDFFitPage with square MediaBox - -Bug #705849 "New PDF interpreter errors out with PDFFitPage" - -If the input PDF file had square media then we would correctly decide -we did not need to rotate the media for a better fit, but we left the -values we would normally use to calculate if rotation was required on -the operand stack, resulting in an error. - -Pop the unused values. - -Signed-off-by: Michael J Gruber ---- - Resource/Init/pdf_main.ps | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/Resource/Init/pdf_main.ps b/Resource/Init/pdf_main.ps -index 3259c0fe3..27eb7ab33 100644 ---- a/Resource/Init/pdf_main.ps -+++ b/Resource/Init/pdf_main.ps -@@ -364,6 +364,7 @@ systemdict /NEWPDF known not {/NEWPDF //true def} if - 3 1 roll eq - or % square media or square page, no point in rotating - { -+ pop pop pop pop - //false - } - { --- -2.37.2.827.g188294c313 - diff --git a/ghostscript-9.56.1-use-proper-bounds-check-for-subfunctions-of.patch b/ghostscript-9.56.1-use-proper-bounds-check-for-subfunctions-of.patch deleted file mode 100644 index 8d3e70023d044c4c00f3890e02d411d3f192a6e4..0000000000000000000000000000000000000000 --- a/ghostscript-9.56.1-use-proper-bounds-check-for-subfunctions-of.patch +++ /dev/null @@ -1,76 +0,0 @@ -From 61ee992bf2e132da2168754f587fcf163a68eb12 Mon Sep 17 00:00:00 2001 -Message-Id: <61ee992bf2e132da2168754f587fcf163a68eb12.1666169658.git.mjg@fedoraproject.org> -From: Ken Sharp -Date: Thu, 19 May 2022 16:59:05 +0100 -Subject: [PATCH] GhostPDF - use proper bounds check for subfunctions of type 3 - -Bug #705225 "Gradients not rendered with the new PDF interpreter" - -The files in question have some remarkably complicated functions used -to define a shading. One has a type 3 stitching function with 33 type 2 -subfunctions, to define basically a blue fill.... - -The Domain of the shading is, additionally, unusual ranging from -negative to positive instead of the more usual 0 to N for the parametric -variable. - -The problem is that we were comparing the Domain of each subfunction -against the Domain of the shading function, when in fact each sub -function uses the relevant Encode parameter of the type 3 function -and it is this that we should be checking against the Domain of the sub -function. ---- - pdf/pdf_func.c | 25 +++++++++++++------------ - 1 file changed, 13 insertions(+), 12 deletions(-) - -diff --git a/pdf/pdf_func.c b/pdf/pdf_func.c -index 9537152ed..6e2d4e4e9 100644 ---- a/pdf/pdf_func.c -+++ b/pdf/pdf_func.c -@@ -560,6 +560,18 @@ pdfi_build_function_3(pdf_context *ctx, gs_function_params_t * mnDR, - - params.Functions = (const gs_function_t * const *)ptr; - -+ code = pdfi_make_float_array_from_dict(ctx, (float **)¶ms.Bounds, function_dict, "Bounds"); -+ if (code < 0) -+ goto function_3_error; -+ -+ code = pdfi_make_float_array_from_dict(ctx, (float **)¶ms.Encode, function_dict, "Encode"); -+ if (code < 0) -+ goto function_3_error; -+ -+ if (code != 2 * params.k) -+ goto function_3_error; -+ code = 0; -+ - for (i = 0; i < params.k; ++i) { - pdf_obj * rsubfn = NULL; - -@@ -578,23 +590,12 @@ pdfi_build_function_3(pdf_context *ctx, gs_function_params_t * mnDR, - if (code < 0) - goto function_3_error; - -- code = pdfi_build_sub_function(ctx, &ptr[i], shading_domain, num_inputs, rsubfn, page_dict); -+ code = pdfi_build_sub_function(ctx, &ptr[i], ¶ms.Encode[i * 2], num_inputs, rsubfn, page_dict); - pdfi_countdown(rsubfn); - if (code < 0) - goto function_3_error; - } - -- code = pdfi_make_float_array_from_dict(ctx, (float **)¶ms.Bounds, function_dict, "Bounds"); -- if (code < 0) -- goto function_3_error; -- -- code = pdfi_make_float_array_from_dict(ctx, (float **)¶ms.Encode, function_dict, "Encode"); -- if (code < 0) -- goto function_3_error; -- -- if (code != 2 * params.k) -- goto function_3_error; -- - if (params.Range == 0) - params.n = params.Functions[0]->params.n; - --- -2.38.0.124.g8fc341881c - diff --git a/ghostscript.spec b/ghostscript.spec index 571450cc1cd4e6a63ea43233fd6576c4941329f9..c4b013fecab49b5d14ec5839b65d7c41964297cf 100644 --- a/ghostscript.spec +++ b/ghostscript.spec @@ -1,4 +1,4 @@ -%define anolis_release 2 +%define anolis_release 1 # # Important notes regarding the package: # ====================================== @@ -45,7 +45,7 @@ Name: ghostscript Summary: Interpreter for PostScript language & PDF -Version: 9.56.1 +Version: 10.0.0 Release: %{anolis_release}%{?dist} License: AGPLv3+ @@ -101,10 +101,8 @@ BuildRequires: make # Upstream patches -- official upstream patches released by upstream since the # ---------------- last rebase that are necessary for any reason: -Patch000: ghostscript-9.56-fix-PDFFitPage-with-square-MediaBox.patch -Patch001: ghostscript-9.56.1-Fix-color-info-juggling-with-x11-devices.patch -Patch002: ghostscript-9.56.1-use-proper-bounds-check-for-subfunctions-of.patch -Patch003: ghostscript-9.56.1-Deal-with-different-VM-modes-during-CIDFont-loading.patch +Patch001: ghostscript-10.0.0-Fix-color-info-juggling-with-x11-devices.patch +Patch002: ghostscript-10.0.0-Deal-with-different-VM-modes-during-CIDFont-loading.patch # Downstream patches -- these should be always included when doing rebase: # ------------------ @@ -411,6 +409,9 @@ install -m 0755 -d %{buildroot}%{_datadir}/%{name}/conf.d/ # ============================================================================= %changelog +* Sun Jan 29 2023 Funda Wang - 10.0.0-1 +- New version 10.0.0 + * Mon Jan 23 2023 Funda Wang - 9.56.1-2 - Rebuild for new libpaper - Only ghostscript uses ijs, so use bundled insted of separated libs.