From 6ae7fd4e7d7b4030c15fe2e3ef132449ff2ab328 Mon Sep 17 00:00:00 2001 From: Richard Lescak Date: Mon, 3 Apr 2023 09:50:25 +0200 Subject: [PATCH] set 'a4' as a default in gs_init.ps to fix unrecognized 'Letter' page size (#2183166) --- ghostscript-10.01.0-set-a4-as-default-pagesize.patch | 11 +++++++++++ ghostscript.spec | 6 +++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 ghostscript-10.01.0-set-a4-as-default-pagesize.patch diff --git a/ghostscript-10.01.0-set-a4-as-default-pagesize.patch b/ghostscript-10.01.0-set-a4-as-default-pagesize.patch new file mode 100644 index 0000000..9b92569 --- /dev/null +++ b/ghostscript-10.01.0-set-a4-as-default-pagesize.patch @@ -0,0 +1,11 @@ +--- a/Resource/Init/gs_init.ps 2022-09-21 10:39:46.000000000 +0200 ++++ b/Resource/Init/gs_init.ps 2023-03-31 09:43:05.759701348 +0200 +@@ -72,7 +72,7 @@ + % standard page size A4 rather than US letter, the page size of + % devices that default to letter or A4 can be changed by setting + % DEFAULTPAPERSIZE. +-% /DEFAULTPAPERSIZE (a4) def ++/DEFAULTPAPERSIZE (a4) def + + % Turn on array packing for the rest of initialization. + //true setpacking diff --git a/ghostscript.spec b/ghostscript.spec index 2e4b1ec..e6af2af 100644 --- a/ghostscript.spec +++ b/ghostscript.spec @@ -45,7 +45,7 @@ Name: ghostscript Summary: Interpreter for PostScript language & PDF Version: 10.01.0 -Release: 1%{?dist} +Release: 2%{?dist} License: AGPL-3.0-or-later @@ -107,6 +107,7 @@ BuildRequires: make #Patch000: example000.patch Patch001: ghostscript-10.01.0-pdfwrite-Substituted-TTF-CIDFont-CID-hand.patch +Patch002: ghostscript-10.01.0-set-a4-as-default-pagesize.patch # Downstream patches -- these should be always included when doing rebase: # ------------------ @@ -420,6 +421,9 @@ done # ============================================================================= %changelog +* Mon Apr 03 2023 Richard Lescak - 10.01.0-2 +- set 'a4' as a default in gs_init.ps to fix unrecognized 'Letter' page size (#2183166) + * Mon Mar 27 2023 Richard Lescak - 10.01.0-1 - rebase to version 10.01.0 (#2180908) - ghostscript-x11 removed, X functionality now builds directly into library for Fedora (#2178720)