Accepting request 587502 from home:jsmeix:branches:Printing

Ghostscript version upgrade to 9.23rc1 (first release candidate for 9.23)

OBS-URL: https://build.opensuse.org/request/show/587502
OBS-URL: https://build.opensuse.org/package/show/Printing/ghostscript?expand=0&rev=87
This commit is contained in:
Johannes Meixner 2018-03-15 12:57:22 +00:00 committed by Git OBS Bridge
parent 9ce317b75a
commit 540378ba24
9 changed files with 143 additions and 106 deletions

View File

@ -0,0 +1,11 @@
--- base/unixinst.mak.orig 2018-03-07 16:01:52.000000000 +0100
+++ base/unixinst.mak 2018-03-12 14:06:43.000000000 +0100
@@ -163,7 +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 $(DESTDIR)$(docdir) $(gsdatadir)/doc
+ # ln -s $(DESTDIR)$(docdir) $(gsdatadir)/doc
# install the man pages for each locale
MAN_LCDIRS=. de

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7f5f4487c0df9dce37481e4c8f192c0322e4c69f5a2ba900a7833c992331bcf4
size 38773429

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:78a083f6d509f052fcb95cd4982312a31203395d078950cd5f880657efe3a40b
size 42953768

View File

@ -1,46 +0,0 @@
From f0fe2481a2e9b0b632a1d4e804a5a1d27fe9c017 Mon Sep 17 00:00:00 2001
From: Chris Liddell <chris.liddell@artifex.com>
Date: Wed, 17 Jan 2018 12:29:00 +0000
Subject: [PATCH] Prevent undefined error with -DDEBUG
The procedure for dumping VM stats with -DDEBUG and -DINITDEBUG was not being
bound, so the .<operator> internal operators we now undefine after
initialization were missing by the time the procedure was called.
Now, simply bind the procedure
---
Resource/Init/gs_init.ps | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Resource/Init/gs_init.ps b/Resource/Init/gs_init.ps
index eb4db02..335e3b1 100644
--- a/Resource/Init/gs_init.ps
+++ b/Resource/Init/gs_init.ps
@@ -113,6 +113,7 @@ PDFSTEP { /PDFDEBUG //true def } if
currentdict /PDFSTOPONERROR known /PDFSTOPONERROR exch def
currentdict /PDFSTOPONWARNING known {/PDFSTOPONWARNING true def /PDFSTOPONERROR true def}{/PDFSTOPONWARNING false def} ifelse
currentdict /PDFNOCIDFALLBACK known /PDFNOCIDFALLBACK exch def
+/.bind /bind load def
/VMDEBUG
INITDEBUG {{print mark
@@ -133,7 +134,7 @@ currentdict /PDFNOCIDFALLBACK known /PDFNOCIDFALLBACK exch def
{{pop
}}
ifelse
- def
+ .bind def
currentdict /BATCH known /BATCH exch def
currentdict /DELAYBIND known /DELAYBIND exch def
@@ -145,7 +146,6 @@ currentdict /FIXEDMEDIA known /FIXEDMEDIA exch def
currentdict /FIXEDRESOLUTION known /FIXEDRESOLUTION exch def
currentdict /LOCALFONTS known /LOCALFONTS exch def
currentdict /JOBSERVER known /JOBSERVER exch def
-/.bind /bind load def
currentdict /NOCACHE known /NOCACHE exch def
currentdict /NOCCFONTS known /NOCCFONTS exch def
currentdict /NOCIE known /NOCIE exch def
--
2.9.1

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Thu Mar 15 11:19:33 CET 2018 - jsmeix@suse.de
- Version upgrade to 9.23rc1 (first release candidate for 9.23).
For details see the News.htm and History9.htm files.
Regarding installing packages (in particular release candidates)
from the openSUSE build service development project "Printing"
see https://build.opensuse.org/project/show/Printing
- Adapted ppc64le-support.patch: In Ghostscript 9.23 there is now
lcms2art/include/lcms2art.h (instead of lcms2/include/lcms2.h).
- ghostscript-fix-debug-use.patch is no longer needed
because the issue is fixed in the upstream sources.
- fix_ln_docdir_gsdatadir.patch avoids
"base/unixinst.mak:162: recipe for target 'install-doc' failed"
- Adapted spec file to the new Ghostscript upstream documentation
directory /usr/share/doc/ghostscript/9.23/
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Feb 28 00:14:31 UTC 2018 - stefan.bruens@rwth-aachen.de Wed Feb 28 00:14:31 UTC 2018 - stefan.bruens@rwth-aachen.de
@ -57,7 +74,7 @@ Wed Nov 29 16:04:48 CET 2017 - jsmeix@suse.de
so that currently it only builds for Tumbleweed/Factory. so that currently it only builds for Tumbleweed/Factory.
Presumably it is not too complicated to make it build again Presumably it is not too complicated to make it build again
also for released openSUSE versions but currently I have also for released openSUSE versions but currently I have
less than zero energy to fix on such "latest breaking changes" less than zero energy to fix such "latest breaking changes"
so that for now Ghostscript 9.22 is only provided for so that for now Ghostscript 9.22 is only provided for
openSUSE Tumbleweed/Factory and the upcoming SLE15/Leap15. openSUSE Tumbleweed/Factory and the upcoming SLE15/Leap15.

View File

@ -1,7 +1,7 @@
# #
# spec file for package ghostscript-mini # spec file for package ghostscript-mini
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2018 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -36,26 +36,27 @@ Url: http://www.ghostscript.com/
# But only with the alphabetic prefix "9.pre15rc1" would be older than the previous version number "9.14" # But only with the alphabetic prefix "9.pre15rc1" would be older than the previous version number "9.14"
# because rpmvercmp would treat 9.pre15rc1 as 9.pre.15.rc1 and letters are older than numbers # because rpmvercmp would treat 9.pre15rc1 as 9.pre.15.rc1 and letters are older than numbers
# so that we keep additionally the previous version number to upgrade from the previous version: # so that we keep additionally the previous version number to upgrade from the previous version:
#Version: 9.21pre22rc2 Version: 9.22pre23rc1
# Normal version for Ghostscript releases is the upstream version:
Version: 9.22
Release: 0 Release: 0
# Normal version for Ghostscript releases is the upstream version:
#Version: 9.22
# tarball_version is used below to specify the directory via "setup -n": # tarball_version is used below to specify the directory via "setup -n":
# Special tarball_version needed for Ghostscript release candidates e.g. "define tarball_version 9.15rc1". # Special tarball_version needed for Ghostscript release candidates e.g. "define tarball_version 9.15rc1".
# For Ghostscript releases tarball_version and version are the same (i.e. the upstream version): # For Ghostscript releases tarball_version and version are the same (i.e. the upstream version):
%define tarball_version %{version} #define tarball_version %{version}
#define tarball_version 9.22rc2 %define tarball_version 9.23rc1
# built_version is used below in the install and files sections: # built_version is used below in the install and files sections:
# Separated built_version needed in case of Ghostscript release candidates e.g. "define built_version 9.15". # Separated built_version needed in case of Ghostscript release candidates e.g. "define built_version 9.15".
# For Ghostscript releases built_version and version are the same (i.e. the upstream version): # For Ghostscript releases built_version and version are the same (i.e. the upstream version):
%define built_version %{version} #define built_version %{version}
#define built_version 9.22 %define built_version 9.23
# Source0...Source9 is for sources from upstream: # Source0...Source9 is for sources from upstream:
# Special URLs for Ghostscript release candidates: # Special URLs for Ghostscript release candidates:
# URL for Source0: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs922rc2/ghostscript-9.22rc2.tar.gz # see https://github.com/ArtifexSoftware/ghostpdl-downloads/releases
# URL for Source0: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs923rc1/ghostscript-9.23rc1.tar.gz
# How to download it: # How to download it:
# wget -O ghostscript-9.22rc2.tar.gz https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs922rc2/ghostscript-9.22rc2.tar.gz # wget -O ghostscript-9.23rc1.tar.gz https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs923rc1/ghostscript-9.23rc1.tar.gz
#Source0: ghostscript-%{tarball_version}.tar.gz Source0: ghostscript-%{tarball_version}.tar.gz
# Normal URLs for Ghostscript releases: # Normal URLs for Ghostscript releases:
# URL for Source0: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs922/ghostscript-9.22.tar.gz # URL for Source0: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs922/ghostscript-9.22.tar.gz
# How to download it: # How to download it:
@ -63,7 +64,7 @@ Release: 0
# URL for MD5 checksums: # URL for MD5 checksums:
# wget -O gs922.MD5SUMS https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs922/MD5SUMS # wget -O gs922.MD5SUMS https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs922/MD5SUMS
# MD5 checksum for Source0: eff6bc41b1d7e26e988d2a5c813889d1 # MD5 checksum for Source0: eff6bc41b1d7e26e988d2a5c813889d1
Source0: ghostscript-%{version}.tar.gz #Source0: ghostscript-%{version}.tar.gz
# Patch0...Patch9 is for patches from upstream: # Patch0...Patch9 is for patches from upstream:
# Source10...Source99 is for sources from SUSE which are intended for upstream: # Source10...Source99 is for sources from SUSE which are intended for upstream:
# Patch10...Patch99 is for patches from SUSE which are intended for upstream: # Patch10...Patch99 is for patches from SUSE which are intended for upstream:
@ -73,14 +74,17 @@ Source0: ghostscript-%{version}.tar.gz
# but the hunk for LCMS2 (lcms2/include/lcms2.h) is still needed # but the hunk for LCMS2 (lcms2/include/lcms2.h) is still needed
# see http://bugs.ghostscript.com/show_bug.cgi?id=695544 # see http://bugs.ghostscript.com/show_bug.cgi?id=695544
Patch11: ppc64le-support.patch Patch11: ppc64le-support.patch
# Fix for
# ln -s /home/abuild/rpmbuild/BUILDROOT/ghostscript-9.22pre23rc1-104.1.i386/usr/share/doc/ghostscript/9.23 /usr/share/ghostscript/9.23/doc
# ln: failed to create symbolic link '/usr/share/ghostscript/9.23/doc': No such file or directory
# base/unixinst.mak:162: recipe for target 'install-doc' failed
# make[1]: *** [install-doc] Error 1
Patch12: fix_ln_docdir_gsdatadir.patch
# Source100...Source999 is for sources from SUSE which are not intended for upstream: # Source100...Source999 is for sources from SUSE which are not intended for upstream:
# Patch100...Patch999 is for patches from SUSE which are not intended for upstream: # Patch100...Patch999 is for patches from SUSE which are not intended for upstream:
# Patch100 remove-zlib-h-dependency.patch removes dependency on zlib/zlib.h # Patch100 remove-zlib-h-dependency.patch removes dependency on zlib/zlib.h
# in makefiles as we do not use the zlib sources from the Ghostscript upstream tarball: # in makefiles as we do not use the zlib sources from the Ghostscript upstream tarball:
Patch100: remove-zlib-h-dependency.patch Patch100: remove-zlib-h-dependency.patch
# Patch101 ghostscript-fix-debug-use.patch from upstream fixes file generation in
# debug mode which lead to Fuji Xerox printer drivers to fail printing without any error.
Patch101: ghostscript-fix-debug-use.patch
# RPM dependencies: # RPM dependencies:
Conflicts: ghostscript Conflicts: ghostscript
@ -154,10 +158,17 @@ This package contains the development files for Minimal Ghostscript.
# but the hunk for LCMS2 (lcms2/include/lcms2.h) is still needed # but the hunk for LCMS2 (lcms2/include/lcms2.h) is still needed
# see http://bugs.ghostscript.com/show_bug.cgi?id=695544 # see http://bugs.ghostscript.com/show_bug.cgi?id=695544
%patch11 -p1 -b .ppc64le-support.orig %patch11 -p1 -b .ppc64le-support.orig
# Fix for
# ln -s /home/abuild/rpmbuild/BUILDROOT/ghostscript-9.22pre23rc1-104.1.i386/usr/share/doc/ghostscript/9.23 /usr/share/ghostscript/9.23/doc
# ln: failed to create symbolic link '/usr/share/ghostscript/9.23/doc': No such file or directory
# base/unixinst.mak:162: recipe for target 'install-doc' failed
# make[1]: *** [install-doc] Error 1
%patch12
# Patch100 remove-zlib-h-dependency.patch removes dependency on zlib/zlib.h # Patch100 remove-zlib-h-dependency.patch removes dependency on zlib/zlib.h
# in makefiles as we do not use the zlib sources from the Ghostscript upstream tarball: # in makefiles as we do not use the zlib sources from the Ghostscript upstream tarball:
#patch100 -p1 -b remove-zlib-h-dependency.orig #patch100 -p1 -b remove-zlib-h-dependency.orig
%patch101 -p1 # Remove patch backup files to avoid packaging
# cf. https://build.opensuse.org/request/show/581052
rm -f Resource/Init/*.ps.orig rm -f Resource/Init/*.ps.orig
# Do not use the freetype jpeg libpng tiff zlib sources from the Ghostscript upstream tarball # Do not use the freetype jpeg libpng tiff zlib sources from the Ghostscript upstream tarball
# because we prefer to use for long-established standard libraries the ones from SUSE # because we prefer to use for long-established standard libraries the ones from SUSE
@ -255,25 +266,32 @@ popd
rm %{buildroot}%{_bindir}/ijs_client_example rm %{buildroot}%{_bindir}/ijs_client_example
rm %{buildroot}%{_bindir}/ijs_server_example rm %{buildroot}%{_bindir}/ijs_server_example
rm %{buildroot}%{_libdir}/libijs.la rm %{buildroot}%{_libdir}/libijs.la
# Since Ghostscript 9.22rc1 bin/font2c and bin/wftopfa are removed # Install examples:
# but the matching man pages are still installed which are hereby also removed: EXAMPLESDIR=%{buildroot}%{_datadir}/ghostscript/%{built_version}/examples
#rm %{buildroot}%{_mandir}/man1/font2c.1 test -d $EXAMPLESDIR || install -d $EXAMPLESDIR
#rm %{buildroot}%{_mandir}/man1/wftopfa.1 for E in examples/*
#rm %{buildroot}%{_mandir}/de/man1/font2c.1 do install -m 644 $E $EXAMPLESDIR || :
#rm %{buildroot}%{_mandir}/de/man1/wftopfa.1 done
test -d $EXAMPLESDIR/cjk || install -d $EXAMPLESDIR/cjk
for E in examples/cjk/*
do install -m 644 $E $EXAMPLESDIR/cjk || :
done
# Install documentation which is not installed by default # Install documentation which is not installed by default
# see http://bugs.ghostscript.com/show_bug.cgi?id=693002 # see http://bugs.ghostscript.com/show_bug.cgi?id=693002
# and fail intentionally as notification if something changed: # and fail intentionally as notification if something changed:
DOCDIR=%{buildroot}%{_datadir}/ghostscript/%{built_version}/doc DOCDIR=%{buildroot}%{_datadir}/doc/ghostscript/%{built_version}
for D in LICENSE for D in LICENSE
do test -e $DOCDIR/$( basename $D ) && exit 99 do test -e $DOCDIR/$( basename $D ) && exit 99
install -m 644 $D $DOCDIR install -m 644 $D $DOCDIR
done done
# Add a link from SUSE's usual documentation directory to Ghostscript's documentation directory # Add a link named 'ghostscript' from SUSE's usual documentation directory /usr/share/doc/packages
# with link target Ghostscript's documentation directory e.g. /usr/share/doc/ghostscript/9.23
# as relative link to get the link independent of the buildroot prefix
# i.e. in /usr/share/doc/packages add the link ghostscript -> ../ghostscript/9.23
# because "configure --docdir=%%{_defaultdocdir}/%%{name}" does not work (see above): # because "configure --docdir=%%{_defaultdocdir}/%%{name}" does not work (see above):
install -d -m 755 %{buildroot}%{_defaultdocdir} install -d -m 755 %{buildroot}%{_defaultdocdir}
pushd %{buildroot}%{_defaultdocdir} pushd %{buildroot}%{_defaultdocdir}
ln -s ../../ghostscript/%{built_version}/doc ghostscript ln -s ../ghostscript/%{built_version} ghostscript
popd popd
# Extract the catalog of devices which are actually built-in in exactly this Ghostscript: # Extract the catalog of devices which are actually built-in in exactly this Ghostscript:
# If a needed source file is no longer accessible fail intentionally as notification # If a needed source file is no longer accessible fail intentionally as notification
@ -360,11 +378,12 @@ install -m 644 catalog.devices $DOCDIR
%doc %{_mandir}/de/man1/ps2pdf14.1.gz %doc %{_mandir}/de/man1/ps2pdf14.1.gz
%doc %{_mandir}/de/man1/ps2ps.1.gz %doc %{_mandir}/de/man1/ps2ps.1.gz
%doc %{_defaultdocdir}/ghostscript %doc %{_defaultdocdir}/ghostscript
%dir %{_datadir}/doc/ghostscript
%doc %{_datadir}/doc/ghostscript/%{built_version}
%dir %{_datadir}/ghostscript %dir %{_datadir}/ghostscript
%dir %{_datadir}/ghostscript/%{built_version} %dir %{_datadir}/ghostscript/%{built_version}
%{_datadir}/ghostscript/%{built_version}/Resource %{_datadir}/ghostscript/%{built_version}/Resource
%{_datadir}/ghostscript/%{built_version}/iccprofiles %{_datadir}/ghostscript/%{built_version}/iccprofiles
%doc %{_datadir}/ghostscript/%{built_version}/doc/
%{_datadir}/ghostscript/%{built_version}/examples/ %{_datadir}/ghostscript/%{built_version}/examples/
%{_datadir}/ghostscript/%{built_version}/lib/ %{_datadir}/ghostscript/%{built_version}/lib/
%{_libdir}/libgs.so.* %{_libdir}/libgs.so.*

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Thu Mar 15 11:19:33 CET 2018 - jsmeix@suse.de
- Version upgrade to 9.23rc1 (first release candidate for 9.23).
For details see the News.htm and History9.htm files.
Regarding installing packages (in particular release candidates)
from the openSUSE build service development project "Printing"
see https://build.opensuse.org/project/show/Printing
- Adapted ppc64le-support.patch: In Ghostscript 9.23 there is now
lcms2art/include/lcms2art.h (instead of lcms2/include/lcms2.h).
- ghostscript-fix-debug-use.patch is no longer needed
because the issue is fixed in the upstream sources.
- fix_ln_docdir_gsdatadir.patch avoids
"base/unixinst.mak:162: recipe for target 'install-doc' failed"
- Adapted spec file to the new Ghostscript upstream documentation
directory /usr/share/doc/ghostscript/9.23/
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Feb 28 00:14:31 UTC 2018 - stefan.bruens@rwth-aachen.de Wed Feb 28 00:14:31 UTC 2018 - stefan.bruens@rwth-aachen.de
@ -57,7 +74,7 @@ Wed Nov 29 16:04:48 CET 2017 - jsmeix@suse.de
so that currently it only builds for Tumbleweed/Factory. so that currently it only builds for Tumbleweed/Factory.
Presumably it is not too complicated to make it build again Presumably it is not too complicated to make it build again
also for released openSUSE versions but currently I have also for released openSUSE versions but currently I have
less than zero energy to fix on such "latest breaking changes" less than zero energy to fix such "latest breaking changes"
so that for now Ghostscript 9.22 is only provided for so that for now Ghostscript 9.22 is only provided for
openSUSE Tumbleweed/Factory and the upcoming SLE15/Leap15. openSUSE Tumbleweed/Factory and the upcoming SLE15/Leap15.

View File

@ -1,7 +1,7 @@
# #
# spec file for package ghostscript # spec file for package ghostscript
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2018 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -56,26 +56,27 @@ Url: http://www.ghostscript.com/
# But only with the alphabetic prefix "9.pre15rc1" would be older than the previous version number "9.14" # But only with the alphabetic prefix "9.pre15rc1" would be older than the previous version number "9.14"
# because rpmvercmp would treat 9.pre15rc1 as 9.pre.15.rc1 and letters are older than numbers # because rpmvercmp would treat 9.pre15rc1 as 9.pre.15.rc1 and letters are older than numbers
# so that we keep additionally the previous version number to upgrade from the previous version: # so that we keep additionally the previous version number to upgrade from the previous version:
#Version: 9.21pre22rc2 Version: 9.22pre23rc1
# Normal version for Ghostscript releases is the upstream version:
Version: 9.22
Release: 0 Release: 0
# Normal version for Ghostscript releases is the upstream version:
#Version: 9.22
# tarball_version is used below to specify the directory via "setup -n": # tarball_version is used below to specify the directory via "setup -n":
# Special tarball_version needed for Ghostscript release candidates e.g. "define tarball_version 9.15rc1". # Special tarball_version needed for Ghostscript release candidates e.g. "define tarball_version 9.15rc1".
# For Ghostscript releases tarball_version and version are the same (i.e. the upstream version): # For Ghostscript releases tarball_version and version are the same (i.e. the upstream version):
%define tarball_version %{version} #define tarball_version %{version}
#define tarball_version 9.22rc2 %define tarball_version 9.23rc1
# built_version is used below in the install and files sections: # built_version is used below in the install and files sections:
# Separated built_version needed in case of Ghostscript release candidates e.g. "define built_version 9.15". # Separated built_version needed in case of Ghostscript release candidates e.g. "define built_version 9.15".
# For Ghostscript releases built_version and version are the same (i.e. the upstream version): # For Ghostscript releases built_version and version are the same (i.e. the upstream version):
%define built_version %{version} #define built_version %{version}
#define built_version 9.22 %define built_version 9.23
# Source0...Source9 is for sources from upstream: # Source0...Source9 is for sources from upstream:
# Special URLs for Ghostscript release candidates: # Special URLs for Ghostscript release candidates:
# URL for Source0: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs922rc2/ghostscript-9.22rc2.tar.gz # see https://github.com/ArtifexSoftware/ghostpdl-downloads/releases
# URL for Source0: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs923rc1/ghostscript-9.23rc1.tar.gz
# How to download it: # How to download it:
# wget -O ghostscript-9.22rc2.tar.gz https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs922rc2/ghostscript-9.22rc2.tar.gz # wget -O ghostscript-9.23rc1.tar.gz https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs923rc1/ghostscript-9.23rc1.tar.gz
#Source0: ghostscript-%{tarball_version}.tar.gz Source0: ghostscript-%{tarball_version}.tar.gz
# Normal URLs for Ghostscript releases: # Normal URLs for Ghostscript releases:
# URL for Source0: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs922/ghostscript-9.22.tar.gz # URL for Source0: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs922/ghostscript-9.22.tar.gz
# How to download it: # How to download it:
@ -83,7 +84,7 @@ Release: 0
# URL for MD5 checksums: # URL for MD5 checksums:
# wget -O gs922.MD5SUMS https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs922/MD5SUMS # wget -O gs922.MD5SUMS https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs922/MD5SUMS
# MD5 checksum for Source0: eff6bc41b1d7e26e988d2a5c813889d1 # MD5 checksum for Source0: eff6bc41b1d7e26e988d2a5c813889d1
Source0: ghostscript-%{version}.tar.gz #Source0: ghostscript-%{version}.tar.gz
# Patch0...Patch9 is for patches from upstream: # Patch0...Patch9 is for patches from upstream:
# Source10...Source99 is for sources from SUSE which are intended for upstream: # Source10...Source99 is for sources from SUSE which are intended for upstream:
# Patch10...Patch99 is for patches from SUSE which are intended for upstream: # Patch10...Patch99 is for patches from SUSE which are intended for upstream:
@ -93,14 +94,17 @@ Source0: ghostscript-%{version}.tar.gz
# but the hunk for LCMS2 (lcms2/include/lcms2.h) is still needed # but the hunk for LCMS2 (lcms2/include/lcms2.h) is still needed
# see http://bugs.ghostscript.com/show_bug.cgi?id=695544 # see http://bugs.ghostscript.com/show_bug.cgi?id=695544
Patch11: ppc64le-support.patch Patch11: ppc64le-support.patch
# Fix for
# ln -s /home/abuild/rpmbuild/BUILDROOT/ghostscript-9.22pre23rc1-104.1.i386/usr/share/doc/ghostscript/9.23 /usr/share/ghostscript/9.23/doc
# ln: failed to create symbolic link '/usr/share/ghostscript/9.23/doc': No such file or directory
# base/unixinst.mak:162: recipe for target 'install-doc' failed
# make[1]: *** [install-doc] Error 1
Patch12: fix_ln_docdir_gsdatadir.patch
# Source100...Source999 is for sources from SUSE which are not intended for upstream: # Source100...Source999 is for sources from SUSE which are not intended for upstream:
# Patch100...Patch999 is for patches from SUSE which are not intended for upstream: # Patch100...Patch999 is for patches from SUSE which are not intended for upstream:
# Patch100 remove-zlib-h-dependency.patch removes dependency on zlib/zlib.h # Patch100 remove-zlib-h-dependency.patch removes dependency on zlib/zlib.h
# in makefiles as we do not use the zlib sources from the Ghostscript upstream tarball: # in makefiles as we do not use the zlib sources from the Ghostscript upstream tarball:
Patch100: remove-zlib-h-dependency.patch Patch100: remove-zlib-h-dependency.patch
# Patch101 ghostscript-fix-debug-use.patch from upstream fixes file generation in
# debug mode which lead to Fuji Xerox printer drivers to fail printing without any error.
Patch101: ghostscript-fix-debug-use.patch
# RPM dependencies: # RPM dependencies:
# Additional RPM Provides of the ghostscript-library packages in openSUSE 11.4 from # Additional RPM Provides of the ghostscript-library packages in openSUSE 11.4 from
@ -226,6 +230,7 @@ For information how to use Ghostscript see
%package x11 %package x11
Summary: X11 library for Ghostscript Summary: X11 library for Ghostscript
Group: Productivity/Publishing/PS
# Require the exact matching version-release of the ghostscript main-package because # Require the exact matching version-release of the ghostscript main-package because
# a non-matching ghostscript main-package may let it fail or even crash (e.g. segfault) # a non-matching ghostscript main-package may let it fail or even crash (e.g. segfault)
# because all Ghostscript software is built from one same Ghostscript source tar ball # because all Ghostscript software is built from one same Ghostscript source tar ball
@ -233,7 +238,6 @@ Summary: X11 library for Ghostscript
# The exact matching version-release of the ghostscript main-package is available # The exact matching version-release of the ghostscript main-package is available
# on the same package repository where the ghostscript-x11 sub-package is because # on the same package repository where the ghostscript-x11 sub-package is because
# all are built simulaneously from the same Ghostscript source package: # all are built simulaneously from the same Ghostscript source package:
Group: Productivity/Publishing/PS
Requires: ghostscript = %{version}-%{release} Requires: ghostscript = %{version}-%{release}
# Unfortunately ghostscript-library.spec and ghostscript-mini.spec have # Unfortunately ghostscript-library.spec and ghostscript-mini.spec have
# an unversioned "Provides: ghostscript" and for RPM this means that both # an unversioned "Provides: ghostscript" and for RPM this means that both
@ -290,10 +294,17 @@ This package contains the development files for Ghostscript.
# but the hunk for LCMS2 (lcms2/include/lcms2.h) is still needed # but the hunk for LCMS2 (lcms2/include/lcms2.h) is still needed
# see http://bugs.ghostscript.com/show_bug.cgi?id=695544 # see http://bugs.ghostscript.com/show_bug.cgi?id=695544
%patch11 -p1 -b .ppc64le-support.orig %patch11 -p1 -b .ppc64le-support.orig
# Fix for
# ln -s /home/abuild/rpmbuild/BUILDROOT/ghostscript-9.22pre23rc1-104.1.i386/usr/share/doc/ghostscript/9.23 /usr/share/ghostscript/9.23/doc
# ln: failed to create symbolic link '/usr/share/ghostscript/9.23/doc': No such file or directory
# base/unixinst.mak:162: recipe for target 'install-doc' failed
# make[1]: *** [install-doc] Error 1
%patch12
# Patch100 remove-zlib-h-dependency.patch removes dependency on zlib/zlib.h # Patch100 remove-zlib-h-dependency.patch removes dependency on zlib/zlib.h
# in makefiles as we do not use the zlib sources from the Ghostscript upstream tarball: # in makefiles as we do not use the zlib sources from the Ghostscript upstream tarball:
#patch100 -p1 -b remove-zlib-h-dependency.orig #patch100 -p1 -b remove-zlib-h-dependency.orig
%patch101 -p1 # Remove patch backup files to avoid packaging
# cf. https://build.opensuse.org/request/show/581052
rm -f Resource/Init/*.ps.orig rm -f Resource/Init/*.ps.orig
# Do not use the freetype jpeg libpng tiff zlib sources from the Ghostscript upstream tarball # Do not use the freetype jpeg libpng tiff zlib sources from the Ghostscript upstream tarball
# because we prefer to use for long-established standard libraries the ones from SUSE # because we prefer to use for long-established standard libraries the ones from SUSE
@ -391,25 +402,32 @@ popd
rm %{buildroot}%{_bindir}/ijs_client_example rm %{buildroot}%{_bindir}/ijs_client_example
rm %{buildroot}%{_bindir}/ijs_server_example rm %{buildroot}%{_bindir}/ijs_server_example
rm %{buildroot}%{_libdir}/libijs.la rm %{buildroot}%{_libdir}/libijs.la
# Since Ghostscript 9.22rc1 bin/font2c and bin/wftopfa are removed # Install examples:
# but the matching man pages are still installed which are hereby also removed: EXAMPLESDIR=%{buildroot}%{_datadir}/ghostscript/%{built_version}/examples
#rm %{buildroot}%{_mandir}/man1/font2c.1 test -d $EXAMPLESDIR || install -d $EXAMPLESDIR
#rm %{buildroot}%{_mandir}/man1/wftopfa.1 for E in examples/*
#rm %{buildroot}%{_mandir}/de/man1/font2c.1 do install -m 644 $E $EXAMPLESDIR || :
#rm %{buildroot}%{_mandir}/de/man1/wftopfa.1 done
test -d $EXAMPLESDIR/cjk || install -d $EXAMPLESDIR/cjk
for E in examples/cjk/*
do install -m 644 $E $EXAMPLESDIR/cjk || :
done
# Install documentation which is not installed by default # Install documentation which is not installed by default
# see http://bugs.ghostscript.com/show_bug.cgi?id=693002 # see http://bugs.ghostscript.com/show_bug.cgi?id=693002
# and fail intentionally as notification if something changed: # and fail intentionally as notification if something changed:
DOCDIR=%{buildroot}%{_datadir}/ghostscript/%{built_version}/doc DOCDIR=%{buildroot}%{_datadir}/doc/ghostscript/%{built_version}
for D in LICENSE for D in LICENSE
do test -e $DOCDIR/$( basename $D ) && exit 99 do test -e $DOCDIR/$( basename $D ) && exit 99
install -m 644 $D $DOCDIR install -m 644 $D $DOCDIR
done done
# Add a link from SUSE's usual documentation directory to Ghostscript's documentation directory # Add a link named 'ghostscript' from SUSE's usual documentation directory /usr/share/doc/packages
# with link target Ghostscript's documentation directory e.g. /usr/share/doc/ghostscript/9.23
# as relative link to get the link independent of the buildroot prefix
# i.e. in /usr/share/doc/packages add the link ghostscript -> ../ghostscript/9.23
# because "configure --docdir=%%{_defaultdocdir}/%%{name}" does not work (see above): # because "configure --docdir=%%{_defaultdocdir}/%%{name}" does not work (see above):
install -d -m 755 %{buildroot}%{_defaultdocdir} install -d -m 755 %{buildroot}%{_defaultdocdir}
pushd %{buildroot}%{_defaultdocdir} pushd %{buildroot}%{_defaultdocdir}
ln -s ../../ghostscript/%{built_version}/doc ghostscript ln -s ../ghostscript/%{built_version} ghostscript
popd popd
# Extract the catalog of devices which are actually built-in in exactly this Ghostscript: # Extract the catalog of devices which are actually built-in in exactly this Ghostscript:
# If a needed source file is no longer accessible fail intentionally as notification # If a needed source file is no longer accessible fail intentionally as notification
@ -496,11 +514,12 @@ install -m 644 catalog.devices $DOCDIR
%doc %{_mandir}/de/man1/ps2pdf14.1.gz %doc %{_mandir}/de/man1/ps2pdf14.1.gz
%doc %{_mandir}/de/man1/ps2ps.1.gz %doc %{_mandir}/de/man1/ps2ps.1.gz
%doc %{_defaultdocdir}/ghostscript %doc %{_defaultdocdir}/ghostscript
%dir %{_datadir}/doc/ghostscript
%doc %{_datadir}/doc/ghostscript/%{built_version}
%dir %{_datadir}/ghostscript %dir %{_datadir}/ghostscript
%dir %{_datadir}/ghostscript/%{built_version} %dir %{_datadir}/ghostscript/%{built_version}
%{_datadir}/ghostscript/%{built_version}/Resource %{_datadir}/ghostscript/%{built_version}/Resource
%{_datadir}/ghostscript/%{built_version}/iccprofiles %{_datadir}/ghostscript/%{built_version}/iccprofiles
%doc %{_datadir}/ghostscript/%{built_version}/doc/
%{_datadir}/ghostscript/%{built_version}/examples/ %{_datadir}/ghostscript/%{built_version}/examples/
%{_datadir}/ghostscript/%{built_version}/lib/ %{_datadir}/ghostscript/%{built_version}/lib/
%{_libdir}/libgs.so.* %{_libdir}/libgs.so.*

View File

@ -1,5 +1,5 @@
--- ghostscript-9.15/lcms2/include/lcms2.h --- ghostscript-9.23rc1/lcms2art/include/lcms2art.h
+++ ghostscript-9.15/lcms2/include/lcms2.h +++ ghostscript-9.23rc1/lcms2art/include/lcms2art.h
@@ -67,6 +67,7 @@ @@ -67,6 +67,7 @@
#include <limits.h> #include <limits.h>
#include <time.h> #include <time.h>