specfile: rebase to upstream 9.23 version

This commit is contained in:
David Kaspar [Dee'Kej] 2018-03-21 20:20:55 +01:00
parent f6127b5abb
commit 99c53bec8d
11 changed files with 14 additions and 4730 deletions

1
.gitignore vendored
View File

@ -49,3 +49,4 @@ ghostscript-8.71.tar.xz
/ghostscript-9.16-cleaned-1.tar.bz2
/ghostscript-9.20.tar.xz
/ghostscript-9.22.tar.xz
/ghostscript-9.23.tar.xz

View File

@ -1,141 +0,0 @@
From 615b31526d06fcdac7abb9e37deac3ce5fb214b6 Mon Sep 17 00:00:00 2001
From: "David Kaspar [Dee'Kej]" <dkaspar@redhat.com>
Date: Thu, 16 Nov 2017 16:41:22 +0100
Subject: [PATCH] man/de - all man pages converted to UTF-8 (from ISO-8859-1)
---
man/de/dvipdf.1 | 4 ++--
man/de/gsnd.1 | 2 +-
man/de/pdf2ps.1 | 4 ++--
man/de/printafm.1 | 2 +-
man/de/ps2ascii.1 | 10 +++++-----
man/de/ps2ps.1 | 4 ++--
6 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/man/de/dvipdf.1 b/man/de/dvipdf.1
index 592e3a9..c7a0cd2 100644
--- a/man/de/dvipdf.1
+++ b/man/de/dvipdf.1
@@ -10,7 +10,7 @@ Das Skript ruf
.BR dvips (1)
mit dem
.B -q
-Parameter auf und leitet die Ausgabe über eine Pipe an
+Parameter auf und leitet die Ausgabe über eine Pipe an
.BR gs (1)
weiter, das mit den folgenden Paramtern aufgerufen wird:
@@ -23,7 +23,7 @@ und allen in der Kommandozeile angegeben Optionen.
.SH SIEHE AUCH
gs(1), dvips(1)
.SH VERSION
-Dieses Dokument wurde zuletzt für Ghostscript Version 7.21 durchgesehen.
+Dieses Dokument wurde zuletzt für Ghostscript Version 7.21 durchgesehen.
.SH AUTOR
Artifex Software, Inc. sind die
Hauptautoren von Ghostscript.
diff --git a/man/de/gsnd.1 b/man/de/gsnd.1
index 976fe04..a660081 100644
--- a/man/de/gsnd.1
+++ b/man/de/gsnd.1
@@ -14,7 +14,7 @@ auf, gefolgt von allen anderen Argumenten der Kommandozeile.
.SH SIEHE AUCH
gs(1)
.SH VERSION
-Dieses Dokument wurde zuletzt für Ghostscript Version 7.21 durchgesehen.
+Dieses Dokument wurde zuletzt für Ghostscript Version 7.21 durchgesehen.
.SH AUTHOR
Artifex Software, Inc. sind die
Hauptautoren von Ghostscript.
diff --git a/man/de/pdf2ps.1 b/man/de/pdf2ps.1
index 6a61d58..5467891 100644
--- a/man/de/pdf2ps.1
+++ b/man/de/pdf2ps.1
@@ -10,12 +10,12 @@ pdf2ps \- Ghostscript PDF nach PostScript Konverter
in die Datei "Ausgabe.ps" im \fBPostScript\fR(tm)-Format zu konvertieren.
Normalerweise darf die Ausgabe PostScript-Level-2-Konstrukte (nicht jedoch PostScript LanguageLevel 3)
benutzen; die \fB-dLanguageLevel=1\fR Option erzwingt
-Level 1, während \fB-dLanguageLevel=3\fR LanguageLevel-3-Konstrukte für die Ausgabe erlaubt.
+Level 1, während \fB-dLanguageLevel=3\fR LanguageLevel-3-Konstrukte für die Ausgabe erlaubt.
.SH DATEIEN
Starten Sie "\fBgs -h\fR" um den Ort der Ghostscript-Dokumentation auf Ihrem System zu ermitteln,
wo Sie weitere Datails finden.
.SH VERSION
-Dieses Dokument wurde zuletzt für Ghostscript Version 7.21 durchgesehen.
+Dieses Dokument wurde zuletzt für Ghostscript Version 7.21 durchgesehen.
.SH AUTOR
Artifex Software, Inc. sind die
Hauptautoren of Ghostscript.
diff --git a/man/de/printafm.1 b/man/de/printafm.1
index 73a23dd..dc75b98 100644
--- a/man/de/printafm.1
+++ b/man/de/printafm.1
@@ -12,7 +12,7 @@ auf, um die Metrik einer Schrift im AFM-Format zur Standardausgabe (stdout) zu s
.SH SIEHE AUCH
gs(1)
.SH VERSION
-Das Dokument wurde zuletzt für Ghostscript Version 7.21 durchgesehen.
+Das Dokument wurde zuletzt für Ghostscript Version 7.21 durchgesehen.
.SH AUTOR
Artifex Software, Inc. sind die
Hauptautoren von Ghostscript.
diff --git a/man/de/ps2ascii.1 b/man/de/ps2ascii.1
index 784aac3..8f9c0ae 100644
--- a/man/de/ps2ascii.1
+++ b/man/de/ps2ascii.1
@@ -2,7 +2,7 @@
.\" Translation by Tobias Burnus <burnus@gmx.de> and Thomas Hoffmann
.TH PS2ASCII 1 "8.Juli 2002" 7.21 "Ghostscript-Werkzeuge" \" -*- nroff -*-
.SH NAME
-ps2ascii \- Ghostscript-Übersetzer von PostScript oder PDF nach ASCII
+ps2ascii \- Ghostscript-Ãœbersetzer von PostScript oder PDF nach ASCII
.SH SYNTAX
\fBps2ascii\fR [ \fIEingabe.ps\fR [ \fIAusgabe.txt\fR ] ]
.br
@@ -12,19 +12,19 @@ ps2ascii \- Ghostscript-
\fBPostScript\fR(tm)- oder Adobe \fBPortable-Document-Format\fR-(PDF-)Datei zu extrahieren. Falls keine
Dateien in der Kommandozeile angegeben werden,
liest \fBgs\fR von der Standardeingabe; bei PDF-Dateien wird ein expliziter
-Dateiname benötigt, keine Standardeingabe. Falls keine Ausgabedatei angegeben
+Dateiname benötigt, keine Standardeingabe. Falls keine Ausgabedatei angegeben
ist, wird zur Standardausgabe geschrieben.
.PP
\fBps2ascii\fR ignoriert die Schriftkodierung und kommt nicht sonderlich
-gut mit Unterscheidung (Kerning) zurecht. Somit sollten Sie für PostScript
-(aber gegenwärtig nicht für PDF) \fBpstotext\fR benutzen (siehe unten).
+gut mit Unterscheidung (Kerning) zurecht. Somit sollten Sie für PostScript
+(aber gegenwärtig nicht für PDF) \fBpstotext\fR benutzen (siehe unten).
.SH DATEIEN
Starten Sie "\fBgs -h\fR" um den Ort der Ghostscript-Dokumentation auf Ihrem System zu ermitteln,
wo Sie weitere Datails finden.
.SH SIEHE AUCH
pstotext(1), http://www.research.digital.com/SRC/virtualpaper/pstotext.html
.SH VERSION
-Dies Dokument wurde zuletzt für Ghostscript version 7.21 durchgesehen.
+Dies Dokument wurde zuletzt für Ghostscript version 7.21 durchgesehen.
.SH AUTOR
Artifex Software, Inc. sind die
Hauptautoren von Ghostscript.
diff --git a/man/de/ps2ps.1 b/man/de/ps2ps.1
index 039efcf..2bb3d13 100644
--- a/man/de/ps2ps.1
+++ b/man/de/ps2ps.1
@@ -14,13 +14,13 @@ ps2ps, eps2eps \- Ghostscript PostScript "Distiller"
PostScript-Level-2-Konstrukte benutzen, aber
\fB\-dLanguageLevel=1\fR erzwingt die Ausgabe von Level 1.
.PP
-\fBeps2eps\fR führt analoge Optimierungen bei Encapsulated
+\fBeps2eps\fR führt analoge Optimierungen bei Encapsulated
PostScript (EPS) Dateien durch.
.SH DATEIEN
Rufen Sie "\fBgs -h\fR" auf, um den Ort der Ghostscript-Dokumentation auf Ihrem System zu
ermitteln, wo Sie weitere Informationen finden.
.SH VERSION
-Dieses Document wurde zuletzt für Ghostscript Version 7.21 überarbeitet.
+Dieses Document wurde zuletzt für Ghostscript Version 7.21 überarbeitet.
.SH AUTOR
Artifex Software, Inc. sind die
Hauptautoren von Ghostscript.
--
2.9.5

View File

@ -1,63 +0,0 @@
From efc24229b0ba4b2f6a39fe89a4c9c576dbe7e124 Mon Sep 17 00:00:00 2001
From: "David Kaspar [Dee'Kej]" <dkaspar@redhat.com>
Date: Mon, 27 Nov 2017 10:30:52 +0100
Subject: [PATCH] Bug 698784: Fix the alias for Helvetica-Narrow-Bold-Oblique
Init/Fontmap.GS:
There was a misalignment between the filename of the
NimbusSansNarrow-BdOblique and its /Fontname in the T1 font itself.
Filename: NimbusSansNarrow-BdOblique
/Fontname: /NimbusSansNarrow-BoldOblique
This worked correctly if the fonts were located directly in
/usr/share/ghostcript/Resources/Font folder on the filesystem.
However, on Fedora we are using /usr/share/fonts/urw-base35/ folder,
which is part of Ghostscript's Search Path. In this case it was
causing the Ghostscript being unable to locate the correct font, thus
crashing while opening any document containing Helvetica Narrow Bold
Oblique font...
*In addition*, rename the font file so it matches.
---
...busSansNarrow-BdOblique => NimbusSansNarrow-BoldOblique} | Bin
Resource/Init/Fontmap.GS | 2 +-
psi/psromfs.mak | 2 +-
3 files changed, 2 insertions(+), 2 deletions(-)
rename Resource/Font/{NimbusSansNarrow-BdOblique => NimbusSansNarrow-BoldOblique} (100%)
diff --git a/Resource/Font/NimbusSansNarrow-BdOblique b/Resource/Font/NimbusSansNarrow-BoldOblique
similarity index 100%
rename from Resource/Font/NimbusSansNarrow-BdOblique
rename to Resource/Font/NimbusSansNarrow-BoldOblique
diff --git a/Resource/Init/Fontmap.GS b/Resource/Init/Fontmap.GS
index 7770c67..cbda218 100644
--- a/Resource/Init/Fontmap.GS
+++ b/Resource/Init/Fontmap.GS
@@ -96,7 +96,7 @@
/Helvetica-Bold /NimbusSans-Bold ;
/Helvetica-BoldOblique /NimbusSans-BoldItalic ;
/Helvetica-Narrow-Bold /NimbusSansNarrow-Bold ;
-/Helvetica-Narrow-BoldOblique /NimbusSansNarrow-BdOblique ;
+/Helvetica-Narrow-BoldOblique /NimbusSansNarrow-BoldOblique ;
/Helvetica-Narrow /NimbusSansNarrow-Regular ;
/Helvetica-Narrow-Oblique /NimbusSansNarrow-Oblique ;
/Helvetica /NimbusSans-Regular ;
diff --git a/psi/psromfs.mak b/psi/psromfs.mak
index cbb1163..34e5b5f 100644
--- a/psi/psromfs.mak
+++ b/psi/psromfs.mak
@@ -333,7 +333,7 @@ PS_FONT_DEPS=\
$(PSRESDIR)$(D)Font$(D)NimbusRoman-Regular \
$(PSRESDIR)$(D)Font$(D)NimbusSans-Bold \
$(PSRESDIR)$(D)Font$(D)NimbusSans-BoldItalic \
- $(PSRESDIR)$(D)Font$(D)NimbusSansNarrow-BdOblique \
+ $(PSRESDIR)$(D)Font$(D)NimbusSansNarrow-BoldOblique \
$(PSRESDIR)$(D)Font$(D)NimbusSansNarrow-Bold \
$(PSRESDIR)$(D)Font$(D)NimbusSansNarrow-Oblique \
$(PSRESDIR)$(D)Font$(D)NimbusSansNarrow-Regular \
--
2.9.5

View File

@ -1,57 +0,0 @@
From 19ebb5f1f497b6f2d50fe13d17d3e627dfb6c868 Mon Sep 17 00:00:00 2001
From: Ken Sharp <ken.sharp@artifex.com>
Date: Tue, 21 Nov 2017 16:46:18 +0000
Subject: [PATCH] PS interpreter - restore the flushpage operator
Michael Katzmann, working at the Library of Congress, is using
Ghostscript in a custom application, which also involves a barcode
reader and an SQL database.
Currently this resides in an RPM at:
http://engineering.nlsbph.org/repo/fedora/fedora/updates/27/SRPMS/AddressCard-3.17-LoC.fc27.src.rpm
but its not usable without the barcode reader and SQL database....
For reasons which are not completely clear to me, he wants to use
flushpage to update the display part way through the operation.
We suspect that it would be possible to avoid this, but it would
probably require some programming effort on the users part, and since
flushpage doesn't look like a likely candidate for abuse, we've decided
just to restore it.
---
Resource/Init/gs_init.ps | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/Resource/Init/gs_init.ps b/Resource/Init/gs_init.ps
index 491f0ea..eb4db02 100644
--- a/Resource/Init/gs_init.ps
+++ b/Resource/Init/gs_init.ps
@@ -2162,7 +2162,7 @@ SAFER { .setsafeglobal } if
/.type1execchar /.type2execchar /.type42execchar /.setweightvector /.getuseciecolor /processcolors /.includecolorspace
/.execn /.instopped /.stop /.stopped /.setcolorrendering /.setdevicecolorrendering /.buildcolorrendering1 /.builddevicecolorrendering1
/.TransformPQR_scale_WB0 /.TransformPQR_scale_WB1 /.TransformPQR_scale_WB2 /.currentoverprintmode /.copydevice2
-/.devicename /.doneshowpage /flushpage /.getbitsrect /.getdevice /.getdefaultdevice /.getdeviceparams /.gethardwareparams
+/.devicename /.doneshowpage /.getbitsrect /.getdevice /.getdefaultdevice /.getdeviceparams /.gethardwareparams
/makewordimagedevice /.outputpage /.putdeviceparams /.setdevice /.currentshowpagecount
/.setpagedevice /.currentpagedevice /.knownundef /.setmaxlength /.rectappend /.initialize_dsc_parser /.parse_dsc_comments
/.fillCIDMap /.fillIdentityCIDMap /.buildcmap /.filenamelistseparator /.libfile /.getfilename
@@ -2180,6 +2180,15 @@ SAFER { .setsafeglobal } if
/.systemvmSFD /.settrapparams /.currentsystemparams /.currentuserparams /.getsystemparam /.getuserparam /.setsystemparams /.setuserparams
/.checkpassword /.locale_to_utf8 /.currentglobal /.gcheck /.imagepath
+% Used by a free user in the Library of Congress. Apparently this is used to
+% draw a partial page, which is then filled in by the results of a barcode
+% scanner and SQL database lookup. Its not clear to us exactly why this needs to be
+% done as a partial page, but its easiest to restore the operator, and it seems like
+% its a reasonably safe operator to restore, for the *very* few devices on which
+% it will have any effect. Currently this uses the 'sync_outptu' device method
+% to transfer the partial page, in future we may use a spec_op instead.
+%/flushpage
+
% Used by our own test suite files
%/.fileposition %image-qa.ps
%/.makeoperator /.setCPSImode % gs_cet.ps
--
2.9.5

File diff suppressed because it is too large Load Diff

View File

@ -1,69 +0,0 @@
From 427fa24afbda44adafe96e74f1c7c350ca98dd73 Mon Sep 17 00:00:00 2001
From: "David Kaspar [Dee'Kej]" <dkaspar@redhat.com>
Date: Wed, 29 Nov 2017 16:42:45 +0100
Subject: [PATCH] configure.ac: --without-versioned-path option introduced
Using this option will result in Ghostscript being installed into a
paths which do not contain its version in them, which can be useful
on some distributions.
As a result of using this option, the Ghostscript's search path will
be updated as well, to include correct files locations.
This option is disabled by default, and configure's help page states
that using this option is dangerous, risky and unsupported.
---
Makefile.in | 4 ++--
configure.ac | 21 +++++++++++++++++++++
2 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index deed8e6..303a6b7 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -95,8 +95,8 @@ datadir = @datadir@
# The following must be substituted using @datadir@ and @libdir@
# to avoid adding RPM generation paths (CUPS STR #1112)
gsdir = @datadir@/ghostscript
-gsdatadir = $(gsdir)/$(GS_DOT_VERSION)
-gssharedir = @libdir@/ghostscript/$(GS_DOT_VERSION)
+gsdatadir = $(gsdir)@VERSIONED_PATH@
+gssharedir = @libdir@/ghostscript@VERSIONED_PATH@
gsincludedir = @includedir@/ghostscript/
docdir=$(gsdatadir)/doc
diff --git a/configure.ac b/configure.ac
index d0f62d7..5baa9e8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2728,6 +2728,27 @@ fi
AC_SUBST(EXEEXT)
+# --------------------------------------------------
+# Check for disabling of versioned path option.
+# By default the versioned path must be enabled!
+# Using this option is user's own risk & responsibility.
+# --------------------------------------------------
+AC_ARG_WITH([versioned-path],
+[ --without-versioned-path
+ Do not use file paths containing the version of GS.
+
+ WARNING: This option is dangerous & unsupported, and
+ you take full responsibility for using it!],
+versioned_path=no)
+
+if test "x$versioned_path" != "xno"; then
+ VERSIONED_PATH='/$(GS_DOT_VERSION)'
+else
+ VERSIONED_PATH=''
+fi
+
+AC_SUBST(VERSIONED_PATH)
+
if test x"$CCAUX" != x"$CC"; then
--
2.9.5

View File

@ -1,70 +0,0 @@
From 3bbbbbfbaf543e47cbddf6a1932d84b10e26a082 Mon Sep 17 00:00:00 2001
From: "David Kaspar [Dee'Kej]" <dkaspar@redhat.com>
Date: Mon, 11 Dec 2017 19:11:04 +0100
Subject: [PATCH] Makefile.in: enable --docdir= parameter to be working
Previously, the Ghostscript was using custom path to the documentation
(as docdir=$(gsdatadir)/doc). This was causing that value of --docdir=
parameter of ./configure was accepted, but not used at all.
This commit fixes this issue, by using docdir=@docdir@@VERSIONED_PATH@
instead. However, as a side effect this results in default path for
documentation to changed to this (with --prefix=/usr):
/usr/share/doc/ghostscript/<version>/
To stay backward compatible, a symlink is automatically created to
point from the old location (/usr/share/ghostscript/<version>/doc) to
the new location.
NOTE: Trying to fix this issue with the location of documentation
staying as it was would require some hacking inside the Autoconf
itself, which is not desirable.
---
Makefile.in | 3 ++-
base/unixinst.mak | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/Makefile.in b/Makefile.in
index a554b42..ebf64d8 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -23,6 +23,7 @@
# source, generated intermediate file, and object directories
# for the graphics library (GL) and the PostScript/PDF interpreter (PS).
+PACKAGE=ghostscript
BINDIR=./$(BUILDDIRPREFIX)bin
GLSRCDIR=@srcdir@/base
DEVSRCDIR=@srcdir@/devices
@@ -91,6 +92,7 @@ mandir = @mandir@
man1ext = 1
man1dir = $(mandir)/man$(man1ext)
datadir = @datadir@
+docdir = @docdir@@VERSIONED_PATH@
# The following must be substituted using @datadir@ and @libdir@
# to avoid adding RPM generation paths (CUPS STR #1112)
@@ -99,7 +101,6 @@ gsdatadir = $(gsdir)@VERSIONED_PATH@
gssharedir = @libdir@/ghostscript@VERSIONED_PATH@
gsincludedir = @includedir@/ghostscript/
-docdir=$(gsdatadir)/doc
exdir=$(gsdatadir)/examples
GS_DOCDIR=$(docdir)
diff --git a/base/unixinst.mak b/base/unixinst.mak
index 296e9fa..5977396 100644
--- a/base/unixinst.mak
+++ b/base/unixinst.mak
@@ -163,6 +163,7 @@ install-doc: $(PSDOCDIR)/News.htm
$(SH) -c 'for f in $(DOC_PAGES) ;\
do if ( test -f $(PSDOCDIR)/$$f ); then $(INSTALL_DATA) $(PSDOCDIR)/$$f $(DESTDIR)$(docdir); fi;\
done'
+ ln -s $(docdir) $(DESTDIR)$(gsdatadir)/doc
# install the man pages for each locale
MAN_LCDIRS=. de
--
2.9.5

View File

@ -1,31 +0,0 @@
From cdbb6be090587d190a37e21869874254a373f1e3 Mon Sep 17 00:00:00 2001
From: "David Kaspar [Dee'Kej]" <dkaspar@redhat.com>
Date: Mon, 11 Dec 2017 17:27:39 +0100
Subject: [PATCH] base/unixinst.mak: do not install examples/ by default
anymore
Those files in the examples/ folder are for testing purposes,
and not really good examples for people trying to learn PostScript.
However, we are keeping the 'make install-examples' target for people
who still wishes to use those files for some reason.
---
base/unixinst.mak | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/base/unixinst.mak b/base/unixinst.mak
index fcc1222..296e9fa 100644
--- a/base/unixinst.mak
+++ b/base/unixinst.mak
@@ -78,7 +78,7 @@ PSDOCDIR=$(PSLIBDIR)/../doc
PSEXDIR=$(PSLIBDIR)/../examples
PSMANDIR=$(PSLIBDIR)/../man
-install-data: install-libdata install-resdata$(COMPILE_INITS) install-iccdata$(COMPILE_INITS) install-doc install-man install-examples
+install-data: install-libdata install-resdata$(COMPILE_INITS) install-iccdata$(COMPILE_INITS) install-doc install-man
# There's no point in providing a complete dependency list: we include
# one file from each subdirectory just as a sanity check.
--
2.9.5

View File

@ -1,4 +1,4 @@
From 45540902fa5e9d0d23974d1622cc2e96d6edb723 Mon Sep 17 00:00:00 2001
From 91c9c6d17d445781ee572c281b8b9d75d96f9df8 Mon Sep 17 00:00:00 2001
From: "David Kaspar [Dee'Kej]" <dkaspar@redhat.com>
Date: Fri, 7 Oct 2016 13:57:01 +0200
Subject: [PATCH] Make sure 'dvipdf' is being run securely
@ -18,5 +18,5 @@ index 802aeab..c92dfb0 100755
-exec dvips -Ppdf $DVIPSOPTIONS -q -f "$infile" | $GS_EXECUTABLE $OPTIONS -q -P- -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr -sOutputFile="$outfile" $OPTIONS -c .setpdfwrite -
+exec dvips -R -Ppdf $DVIPSOPTIONS -q -f "$infile" | $GS_EXECUTABLE $OPTIONS -q -P- -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr -sOutputFile="$outfile" $OPTIONS -c .setpdfwrite -
--
2.9.5
2.14.3

View File

@ -42,8 +42,8 @@
Name: ghostscript
Summary: Interpreter for PostScript language & PDF
Version: 9.22
Release: 10%{?dist}
Version: 9.23
Release: 1%{?dist}
License: AGPLv3+
@ -53,7 +53,6 @@ Source: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases
Requires: libgs%{?_isa} = %{version}-%{release}
# Auxiliary build requirements:
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc
BuildRequires: git
@ -93,18 +92,12 @@ BuildRequires: libXt-devel
# Upstream patches -- official upstream patches released by upstream since the
# ---------------- last rebase that are necessary for any reason:
Patch000: ghostscript-9.22-000-convert-de-man-pages-to-UTF-8.patch
Patch001: ghostscript-9.22-001-fix-Fontmap.GS.patch
Patch002: ghostscript-9.22-002-restore-flushpage-operator.patch
Patch003: ghostscript-9.22-003-remove-obsolete-font-files.patch
Patch004: ghostscript-9.22-004-add-without-versioned-path-option.patch
Patch005: ghostscript-9.22-005-fix-docdir-parameter.patch
Patch006: ghostscript-9.22-006-do-not-install-examples-folder.patch
#Patch000: example000.patch
# Downstream patches -- these should be always included when doing rebase:
# ------------------
Patch100: ghostscript-9.22-100-run-dvipdf-securely.patch
Patch100: ghostscript-9.23-100-run-dvipdf-securely.patch
# Downstream patches for RHEL -- patches that we keep only in RHEL for various
@ -262,7 +255,7 @@ It will be removed once the Fedora 28 has reached EOL (End Of Life).
%autosetup -N -S git
# Libraries that we already have packaged in Fedora (see Build Requirements):
rm -rf cups/libs freetype ijs jbig2dec jpeg lcms2 libpng openjpeg tiff zlib
rm -rf cups/libs freetype ijs jbig2dec jpeg lcms2* libpng openjpeg tiff zlib
# Yeah, not actually needed in Fedora (^_^):
rm -rf windows
@ -275,9 +268,6 @@ git commit --all --amend --no-edit > /dev/null
# ---------------
%build
# We need to rebuild the ./configure script (we have patched configure.ac file):
autoreconf -fv
# --enable-dynamic
# ... enables dynamically loaded drivers
#
@ -295,21 +285,14 @@ autoreconf -fv
# ... searches for necessary fonts in these column-separated directories,
# not just default ones
#
# -fno-strict-aliasing
# ... according to upstream, strict aliasing optimization (enabled by
# default with -O2 option) still causes parts of Ghostscript to
# malfunction, so we need to disable this optimization technique
#
# NOTE: In RHEL we need to keep the /usr/share/ghostscript/conf.d/ folder
# for China's GB18030 official certification:
%if %{defined rhel} || %{defined centos}
%configure --enable-dynamic --disable-compile-inits --without-versioned-path \
--with-fontpath="%{urw_base35_fontpath}:%{google_droid_fontpath}:%{_datadir}/%{name}/conf.d/" \
CFLAGS="${CFLAGS} -fno-strict-aliasing"
--with-fontpath="%{urw_base35_fontpath}:%{google_droid_fontpath}:%{_datadir}/%{name}/conf.d/"
%else
%configure --enable-dynamic --disable-compile-inits --without-versioned-path \
--with-fontpath="%{urw_base35_fontpath}:%{google_droid_fontpath}" \
CFLAGS="${CFLAGS} -fno-strict-aliasing"
--with-fontpath="%{urw_base35_fontpath}:%{google_droid_fontpath}"
%endif
%make_build so
@ -478,6 +461,9 @@ done
# =============================================================================
%changelog
* Wed Mar 21 2018 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 9.23-1
- Rebase to latest upstream version
* Thu Mar 08 2018 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 9.22-10
- %%{isa} removed in Conflicts for ghostscript-core in libgs package

View File

@ -1 +1 @@
SHA512 (ghostscript-9.22.tar.xz) = 67739ace64090ab1951cba4cb011a5a6829ee60b32ba4157d0f17e744e345ea268335304db6722677ae33565ea5b696c2ff7b889d42a463acf2933c8230523d4
SHA512 (ghostscript-9.23.tar.xz) = 0c1f59b743f92f9cf7000b06f6209010e583ef4d6899c20ed245721dea3c08fd58b9e2d1513fe83765ab6be233bc7ab250cf18054e4d09de4073b1111e38035f