From c76c978626b26af9e53ee4622669ea5bdacee207e1abe5bdad4c284d8af74d30 Mon Sep 17 00:00:00 2001 From: Johannes Meixner Date: Wed, 9 Oct 2013 10:15:22 +0000 Subject: [PATCH 1/3] Accepting request 202684 from home:jsmeix:branches:Printing Ghostscript version upgrade to 9.10. Only for Printing and openSUSE:Factory. Not for openSUSE:13.1 because Ghostscript 9.10 is incompatible with the current printing system in openSUSE because the CUPS filters gstoraster and gstopxl have been removed from Ghostscript. Those filters are now provided by cups-filters which is not provided in the printing system in openSUSE because cups-filters still has issues, see bnc#735404 for details. OBS-URL: https://build.opensuse.org/request/show/202684 OBS-URL: https://build.opensuse.org/package/show/Printing/ghostscript?expand=0&rev=32 --- ghostscript-9.07.tar.gz | 3 -- ghostscript-9.10.tar.gz | 3 ++ ghostscript-mini.changes | 33 +++++++++++++++++ ghostscript-mini.spec | 63 +++++++++++++++++---------------- ghostscript.changes | 33 +++++++++++++++++ ghostscript.spec | 76 ++++++++++++++++++---------------------- 6 files changed, 137 insertions(+), 74 deletions(-) delete mode 100644 ghostscript-9.07.tar.gz create mode 100644 ghostscript-9.10.tar.gz diff --git a/ghostscript-9.07.tar.gz b/ghostscript-9.07.tar.gz deleted file mode 100644 index a1daf1f..0000000 --- a/ghostscript-9.07.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:44800d004c53f13192d1b5db413119198ddfc8a11c4d2a030aac2f2fda822ebf -size 31911560 diff --git a/ghostscript-9.10.tar.gz b/ghostscript-9.10.tar.gz new file mode 100644 index 0000000..8b3627a --- /dev/null +++ b/ghostscript-9.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:913fc974433238ffd4e0549ce11ba2a3360d1d159cf5c3b988d72a77acb74d04 +size 35282727 diff --git a/ghostscript-mini.changes b/ghostscript-mini.changes index da50141..7a55ae7 100644 --- a/ghostscript-mini.changes +++ b/ghostscript-mini.changes @@ -1,3 +1,36 @@ +------------------------------------------------------------------- +Tue Sep 3 16:26:46 CEST 2013 - jsmeix@suse.de + +- Version upgrade to 9.10. Primarily a maintenance release. + Highlights in this release include: + * LittleCMS2 and libpng have both been updated to the + latest versions. + * The URW Postscript font set has been updated to the + latest version, fixing many compatibility problems + with the Adobe fonts. + * The CUPS filters gstoraster and gstopxl have been + removed from Ghostscript. Those filters are now provided by + cups-filters (a free software package hosted by OpenPrinting) + that contains all CUPS filters needed by CUPS under Linux + (see also the openSUSE issue bnc#735404 comment#44 at + https://bugzilla.novell.com/show_bug.cgi?id=735404#c44). + For details see the News.htm and History9.htm files. +- fix-undefined-operation.patch is no longer needed because + it is fixed in the upstream sources. + +------------------------------------------------------------------- +Thu Aug 29 15:06:13 CEST 2013 - jsmeix@suse.de + +- Version upgrade to 9.10rc1 (release candidate for the 9.10 version). + For details see the News.htm and History9.htm files. +- Prepare spec files to build both releases and release candidates + easily in the future by using special different version strings. +- fix-undefined-operation.patch fixes + http://bugs.ghostscript.com/show_bug.cgi?id=694546 +- Removed BuildRequires for liblcms-devel because it is not needed + when we build Ghostscript that works in compliance with upstream + (see https://bugzilla.novell.com/show_bug.cgi?id=828751#c5). + ------------------------------------------------------------------- Wed Mar 27 07:58:08 UTC 2013 - mmeister@suse.com diff --git a/ghostscript-mini.spec b/ghostscript-mini.spec index e3a659b..7e0aa84 100644 --- a/ghostscript-mini.spec +++ b/ghostscript-mini.spec @@ -17,7 +17,6 @@ Name: ghostscript-mini BuildRequires: freetype2-devel -BuildRequires: liblcms-devel BuildRequires: libpng-devel BuildRequires: libtiff-devel BuildRequires: libtool @@ -27,12 +26,33 @@ Summary: Minimal Ghostscript for minimal build requirements License: AGPL-3.0 Group: System/Libraries Url: http://www.ghostscript.com/ -Version: 9.07 +# Special version needed for Ghostscript release candidates e.g. "Version: 9.pre10rc1": +# Version 9.10rc1 would be newer than 9.10 (run "zypper vcmp 9.10rc1 9.10") because the rpmvercmp algorithm +# would treat 9.10rc1 as 9.10.rc.1 (alphabetic and numeric sections get separated into different elements) +# and 9.10.rc.1 is newer than 9.10 (it has one more element in the list while previous elements are equal) +# so that we use an alphabetic prefix to make it older than 9.10 (numbers are considered newer than letters): +#Version: 9.pre10rc1 +# Normal version for Ghostscript releases is the upstream version: +Version: 9.10 Release: 0 +# 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.10rc1". +# For Ghostscript releases tarball_version and version are the same (i.e. the upstream version): +%define tarball_version %{version} +# 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.10". +# For Ghostscript releases built_version and version are the same (i.e. the upstream version): +%define built_version %{version} # Source0...Source9 is for sources from upstream: -# URL for Source0: http://downloads.ghostscript.com/public/ghostscript-9.07.tar.gz +# Special URLs for Ghostscript release candidates: +# URL for Source0: http://www.ghostscript.com/~chrisl/ghostscript-9.10rc1.tar.gz +# URL for MD5 checksums: http://www.ghostscript.com/~chrisl/MD5SUMS +# MD5 checksum for Source0: 0cdf23c5dff76040983bca74675f88be +#Source0: http://www.ghostscript.com/~chrisl/ghostscript-9.10rc1.tar.gz +# Normal URLs for Ghostscript releases: +# URL for Source0: http://downloads.ghostscript.com/public/ghostscript-9.10.tar.gz # URL for MD5 checksums: http://downloads.ghostscript.com/public/MD5SUMS -# MD5 checksum for Source0: 57ebf17c5abcf0fc95a386bfff08c1a4 +# MD5 checksum for Source0: 5f0c0a2670b08466a4050ddbd1f3de63 Source0: http://downloads.ghostscript.com/public/ghostscript-%{version}.tar.gz # Patch0...Patch9 is for patches from upstream: # @@ -110,7 +130,7 @@ This package contains the development files for Minimal Ghostscript. %prep # Be quiet when unpacking and # use a directory name matching Source0 to make it work also for ghostscript-mini: -%setup -q -n ghostscript-%{version} +%setup -q -n ghostscript-%{tarball_version} %build # Set our preferred architecture-specific flags for the compiler and linker: @@ -134,18 +154,6 @@ autoreconf -fi # which would require a commercial license. # --without-libpaper disables libpaper support because SUSE does not have libpaper. %define gs_font_path /usr/share/fonts/truetype:/usr/share/fonts/Type1:/usr/share/fonts/CID:/usr/share/fonts/URW -%if 0%{?suse_version} >= 1210 -# --without-system-libtiff enforces not to use the systems libtiff because -# currently (dated Thu Mar 15 2012) using system libtiff fails -# in openSUSE:Factory and openSUSE:12.1 with -# "checking for libtiff with pkg-config... checking for TIFFOpen in -ltiff... no -# configure: Could not find a copy of libtiff on your system. -# Disabling tiff output devices." -# regardless of "BuildRequires libtiff-devel" which works everywhere except openSUSE:Factory. -%define with_or_without_system_libtiff --without-system-libtiff -%else -%define with_or_without_system_libtiff --with-system-libtiff -%endif # See http://bugs.ghostscript.com/show_bug.cgi?id=693100 export SUSE_ASNEEDED=0 ./configure --prefix=%{_prefix} \ @@ -156,7 +164,6 @@ export SUSE_ASNEEDED=0 --infodir=%{_infodir} \ --with-fontpath=%{gs_font_path} \ --with-libiconv=maybe \ - %{with_or_without_system_libtiff} \ --enable-freetype \ --with-jbig2dec \ --without-jasper \ @@ -204,14 +211,10 @@ popd rm %{buildroot}%{_bindir}/ijs_client_example rm %{buildroot}%{_bindir}/ijs_server_example rm %{buildroot}%{_libdir}/libijs.la -# Remove installed but obsolete pdfopt man pages because pdfopt is removed since version 9.07 -# and fail intentionally as notification when this is fixed upstream: -rm %{buildroot}%{_mandir}/man1/pdfopt.1 || exit 99 -rm %{buildroot}%{_mandir}/de/man1/pdfopt.1 || exit 99 # Install documentation which is not installed by default # see http://bugs.ghostscript.com/show_bug.cgi?id=693002 # and fail intentionally as notification if something changed: -DOCDIR=%{buildroot}%{_datadir}/ghostscript/%{version}/doc +DOCDIR=%{buildroot}%{_datadir}/ghostscript/%{built_version}/doc for D in LICENSE do test -e $DOCDIR/$( basename $D ) && exit 99 install -m 644 $D $DOCDIR @@ -220,7 +223,7 @@ done # because "configure --docdir=%%{_defaultdocdir}/%%{name}" does not work (see above): install -d -m 755 %{buildroot}%{_defaultdocdir} pushd %{buildroot}%{_defaultdocdir} -ln -s ../../ghostscript/%{version}/doc ghostscript +ln -s ../../ghostscript/%{built_version}/doc ghostscript popd # Extract the catalog of devices which are actually built-in in exactly this Ghostscript: # Do not pollute the build log file with zillions of meaningless messages: @@ -320,12 +323,12 @@ exit 0 %doc %{_mandir}/de/man1/wftopfa.1.gz %doc %{_defaultdocdir}/ghostscript %dir %{_datadir}/ghostscript -%dir %{_datadir}/ghostscript/%{version} -%doc %{_datadir}/ghostscript/%{version}/doc/ -%{_datadir}/ghostscript/%{version}/examples/ -%{_datadir}/ghostscript/%{version}/iccprofiles/ -%{_datadir}/ghostscript/%{version}/lib/ -%{_datadir}/ghostscript/%{version}/Resource/ +%dir %{_datadir}/ghostscript/%{built_version} +%doc %{_datadir}/ghostscript/%{built_version}/doc/ +%{_datadir}/ghostscript/%{built_version}/examples/ +%{_datadir}/ghostscript/%{built_version}/iccprofiles/ +%{_datadir}/ghostscript/%{built_version}/lib/ +%{_datadir}/ghostscript/%{built_version}/Resource/ %{_libdir}/libgs.so.* %{_libdir}/ghostscript/ %{_libdir}/libijs-0.35.so diff --git a/ghostscript.changes b/ghostscript.changes index e54b294..5348432 100644 --- a/ghostscript.changes +++ b/ghostscript.changes @@ -1,3 +1,36 @@ +------------------------------------------------------------------- +Tue Sep 3 16:26:46 CEST 2013 - jsmeix@suse.de + +- Version upgrade to 9.10. Primarily a maintenance release. + Highlights in this release include: + * LittleCMS2 and libpng have both been updated to the + latest versions. + * The URW Postscript font set has been updated to the + latest version, fixing many compatibility problems + with the Adobe fonts. + * The CUPS filters gstoraster and gstopxl have been + removed from Ghostscript. Those filters are now provided by + cups-filters (a free software package hosted by OpenPrinting) + that contains all CUPS filters needed by CUPS under Linux + (see also the openSUSE issue bnc#735404 comment#44 at + https://bugzilla.novell.com/show_bug.cgi?id=735404#c44). + For details see the News.htm and History9.htm files. +- fix-undefined-operation.patch is no longer needed because + it is fixed in the upstream sources. + +------------------------------------------------------------------- +Thu Aug 29 15:06:13 CEST 2013 - jsmeix@suse.de + +- Version upgrade to 9.10rc1 (release candidate for the 9.10 version). + For details see the News.htm and History9.htm files. +- Prepare spec files to build both releases and release candidates + easily in the future by using special different version strings. +- fix-undefined-operation.patch fixes + http://bugs.ghostscript.com/show_bug.cgi?id=694546 +- Removed BuildRequires for liblcms-devel because it is not needed + when we build Ghostscript that works in compliance with upstream + (see https://bugzilla.novell.com/show_bug.cgi?id=828751#c5). + ------------------------------------------------------------------- Wed Mar 27 07:58:08 UTC 2013 - mmeister@suse.com diff --git a/ghostscript.spec b/ghostscript.spec index 1cac3aa..116ddcd 100644 --- a/ghostscript.spec +++ b/ghostscript.spec @@ -21,7 +21,6 @@ BuildRequires: cups-devel BuildRequires: dbus-1-devel BuildRequires: freetype2-devel BuildRequires: libexpat-devel -BuildRequires: liblcms-devel BuildRequires: libopenssl-devel BuildRequires: libpng-devel BuildRequires: libtiff-devel @@ -34,12 +33,33 @@ Summary: The Ghostscript interpreter for PostScript and PDF License: AGPL-3.0 Group: System/Libraries Url: http://www.ghostscript.com/ -Version: 9.07 +# Special version needed for Ghostscript release candidates e.g. "Version: 9.pre10rc1": +# Version 9.10rc1 would be newer than 9.10 (run "zypper vcmp 9.10rc1 9.10") because the rpmvercmp algorithm +# would treat 9.10rc1 as 9.10.rc.1 (alphabetic and numeric sections get separated into different elements) +# and 9.10.rc.1 is newer than 9.10 (it has one more element in the list while previous elements are equal) +# so that we use an alphabetic prefix to make it older than 9.10 (numbers are considered newer than letters): +#Version: 9.pre10rc1 +# Normal version for Ghostscript releases is the upstream version: +Version: 9.10 Release: 0 +# 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.10rc1". +# For Ghostscript releases tarball_version and version are the same (i.e. the upstream version): +%define tarball_version %{version} +# 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.10". +# For Ghostscript releases built_version and version are the same (i.e. the upstream version): +%define built_version %{version} # Source0...Source9 is for sources from upstream: -# URL for Source0: http://downloads.ghostscript.com/public/ghostscript-9.07.tar.gz +# Special URLs for Ghostscript release candidates: +# URL for Source0: http://www.ghostscript.com/~chrisl/ghostscript-9.10rc1.tar.gz +# URL for MD5 checksums: http://www.ghostscript.com/~chrisl/MD5SUMS +# MD5 checksum for Source0: 0cdf23c5dff76040983bca74675f88be +#Source0: http://www.ghostscript.com/~chrisl/ghostscript-9.10rc1.tar.gz +# Normal URLs for Ghostscript releases: +# URL for Source0: http://downloads.ghostscript.com/public/ghostscript-9.10.tar.gz # URL for MD5 checksums: http://downloads.ghostscript.com/public/MD5SUMS -# MD5 checksum for Source0: 57ebf17c5abcf0fc95a386bfff08c1a4 +# MD5 checksum for Source0: 5f0c0a2670b08466a4050ddbd1f3de63 Source0: http://downloads.ghostscript.com/public/ghostscript-%{version}.tar.gz # Patch0...Patch9 is for patches from upstream: # @@ -224,7 +244,7 @@ This package contains the development files for Ghostscript. %prep # Be quiet when unpacking and # use a directory name matching Source0 to make it work also for ghostscript-mini: -%setup -q -n ghostscript-%{version} +%setup -q -n ghostscript-%{tarball_version} %build # Set our preferred architecture-specific flags for the compiler and linker: @@ -249,18 +269,6 @@ autoreconf -fi # which would require a commercial license. # --without-libpaper disables libpaper support because SUSE does not have libpaper. %define gs_font_path /usr/share/fonts/truetype:/usr/share/fonts/Type1:/usr/share/fonts/CID:/usr/share/fonts/URW -%if 0%{?suse_version} >= 1210 -# --without-system-libtiff enforces not to use the systems libtiff because -# currently (dated Thu Mar 15 2012) using system libtiff fails -# in openSUSE:Factory and openSUSE:12.1 with -# "checking for libtiff with pkg-config... checking for TIFFOpen in -ltiff... no -# configure: Could not find a copy of libtiff on your system. -# Disabling tiff output devices." -# regardless of "BuildRequires libtiff-devel" which works everywhere except openSUSE:Factory. -%define with_or_without_system_libtiff --without-system-libtiff -%else -%define with_or_without_system_libtiff --with-system-libtiff -%endif # See http://bugs.ghostscript.com/show_bug.cgi?id=693100 export SUSE_ASNEEDED=0 ./configure --prefix=%{_prefix} \ @@ -271,7 +279,6 @@ export SUSE_ASNEEDED=0 --infodir=%{_infodir} \ --with-fontpath=%{gs_font_path} \ --with-libiconv=maybe \ - %{with_or_without_system_libtiff} \ --enable-freetype \ --with-jbig2dec \ --without-jasper \ @@ -319,14 +326,10 @@ popd rm %{buildroot}%{_bindir}/ijs_client_example rm %{buildroot}%{_bindir}/ijs_server_example rm %{buildroot}%{_libdir}/libijs.la -# Remove installed but obsolete pdfopt man pages because pdfopt is removed since version 9.07 -# and fail intentionally as notification when this is fixed upstream: -rm %{buildroot}%{_mandir}/man1/pdfopt.1 || exit 99 -rm %{buildroot}%{_mandir}/de/man1/pdfopt.1 || exit 99 # Install documentation which is not installed by default # see http://bugs.ghostscript.com/show_bug.cgi?id=693002 # and fail intentionally as notification if something changed: -DOCDIR=%{buildroot}%{_datadir}/ghostscript/%{version}/doc +DOCDIR=%{buildroot}%{_datadir}/ghostscript/%{built_version}/doc for D in LICENSE do test -e $DOCDIR/$( basename $D ) && exit 99 install -m 644 $D $DOCDIR @@ -335,7 +338,7 @@ done # because "configure --docdir=%%{_defaultdocdir}/%%{name}" does not work (see above): install -d -m 755 %{buildroot}%{_defaultdocdir} pushd %{buildroot}%{_defaultdocdir} -ln -s ../../ghostscript/%{version}/doc ghostscript +ln -s ../../ghostscript/%{built_version}/doc ghostscript popd # Extract the catalog of devices which are actually built-in in exactly this Ghostscript: # Do not pollute the build log file with zillions of meaningless messages: @@ -364,7 +367,6 @@ exit 0 %files %defattr(-, root, root) -%config %{_sysconfdir}/cups/gstoraster.convs %{_bindir}/dvipdf %{_bindir}/eps2eps %{_bindir}/font2c @@ -395,14 +397,6 @@ exit 0 %{_bindir}/ps2ps2 %{_bindir}/unix-lpr.sh %{_bindir}/wftopfa -%dir /usr/lib/cups -%dir /usr/lib/cups/filter -/usr/lib/cups/filter/gstopxl -/usr/lib/cups/filter/gstoraster -%dir %{_datadir}/cups -%dir %{_datadir}/cups/model -%{_datadir}/cups/model/pxlcolor.ppd -%{_datadir}/cups/model/pxlmono.ppd %doc %{_mandir}/man1/dvipdf.1.gz %doc %{_mandir}/man1/eps2eps.1.gz %doc %{_mandir}/man1/font2c.1.gz @@ -444,20 +438,20 @@ exit 0 %doc %{_mandir}/de/man1/wftopfa.1.gz %doc %{_defaultdocdir}/ghostscript %dir %{_datadir}/ghostscript -%dir %{_datadir}/ghostscript/%{version} -%doc %{_datadir}/ghostscript/%{version}/doc/ -%{_datadir}/ghostscript/%{version}/examples/ -%{_datadir}/ghostscript/%{version}/iccprofiles/ -%{_datadir}/ghostscript/%{version}/lib/ -%{_datadir}/ghostscript/%{version}/Resource/ +%dir %{_datadir}/ghostscript/%{built_version} +%doc %{_datadir}/ghostscript/%{built_version}/doc/ +%{_datadir}/ghostscript/%{built_version}/examples/ +%{_datadir}/ghostscript/%{built_version}/iccprofiles/ +%{_datadir}/ghostscript/%{built_version}/lib/ +%{_datadir}/ghostscript/%{built_version}/Resource/ %{_libdir}/libgs.so.* %{_libdir}/ghostscript/ %{_libdir}/libijs-0.35.so -%exclude %{_libdir}/ghostscript/%{version}/X11.so +%exclude %{_libdir}/ghostscript/%{built_version}/X11.so %files x11 %defattr(-,root,root) -%{_libdir}/ghostscript/%{version}/X11.so +%{_libdir}/ghostscript/%{built_version}/X11.so %files devel %defattr(-,root,root) From 5588774d2147cd1f81d05fc6a0af4cce153df6897030f9ed2ba9de7ecd6a3cd6 Mon Sep 17 00:00:00 2001 From: Johannes Meixner Date: Wed, 18 Dec 2013 16:52:33 +0000 Subject: [PATCH 2/3] Accepting request 211260 from openSUSE:Factory:PowerLE - ppc64le-support.patch: Support powerpc64le-linux. OBS-URL: https://build.opensuse.org/request/show/211260 OBS-URL: https://build.opensuse.org/package/show/Printing/ghostscript?expand=0&rev=33 --- ghostscript-mini.changes | 5 +++++ ghostscript-mini.spec | 3 +++ ghostscript.changes | 5 +++++ ghostscript.spec | 3 +++ ppc64le-support.patch | 48 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 64 insertions(+) create mode 100644 ppc64le-support.patch diff --git a/ghostscript-mini.changes b/ghostscript-mini.changes index 7a55ae7..cca5c82 100644 --- a/ghostscript-mini.changes +++ b/ghostscript-mini.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Dec 13 19:09:12 UTC 2013 - uweigand@de.ibm.com + +- ppc64le-support.patch: Support powerpc64le-linux. + ------------------------------------------------------------------- Tue Sep 3 16:26:46 CEST 2013 - jsmeix@suse.de diff --git a/ghostscript-mini.spec b/ghostscript-mini.spec index 7e0aa84..9b20cc8 100644 --- a/ghostscript-mini.spec +++ b/ghostscript-mini.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: ghostscript-mini BuildRequires: freetype2-devel BuildRequires: libpng-devel @@ -59,6 +60,7 @@ Source0: http://downloads.ghostscript.com/public/ghostscript-%{version}.t # 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: ppc64le-support.patch # # Source100...Source999 is for sources from SUSE which are not intended for upstream: # @@ -131,6 +133,7 @@ This package contains the development files for Minimal Ghostscript. # Be quiet when unpacking and # use a directory name matching Source0 to make it work also for ghostscript-mini: %setup -q -n ghostscript-%{tarball_version} +%patch10 -p1 %build # Set our preferred architecture-specific flags for the compiler and linker: diff --git a/ghostscript.changes b/ghostscript.changes index 5348432..ae300b3 100644 --- a/ghostscript.changes +++ b/ghostscript.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Dec 13 19:09:12 UTC 2013 - uweigand@de.ibm.com + +- ppc64le-support.patch: Support powerpc64le-linux. + ------------------------------------------------------------------- Tue Sep 3 16:26:46 CEST 2013 - jsmeix@suse.de diff --git a/ghostscript.spec b/ghostscript.spec index 116ddcd..0eaaa87 100644 --- a/ghostscript.spec +++ b/ghostscript.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: ghostscript BuildRequires: cups-devel # dbus-1-devel is needed for "configure --enable-dbus" (see below): @@ -66,6 +67,7 @@ Source0: http://downloads.ghostscript.com/public/ghostscript-%{version}.t # 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: ppc64le-support.patch # # Source100...Source999 is for sources from SUSE which are not intended for upstream: # @@ -245,6 +247,7 @@ This package contains the development files for Ghostscript. # Be quiet when unpacking and # use a directory name matching Source0 to make it work also for ghostscript-mini: %setup -q -n ghostscript-%{tarball_version} +%patch10 -p1 %build # Set our preferred architecture-specific flags for the compiler and linker: diff --git a/ppc64le-support.patch b/ppc64le-support.patch new file mode 100644 index 0000000..86ef23c --- /dev/null +++ b/ppc64le-support.patch @@ -0,0 +1,48 @@ +Index: ghostscript-9.10/lcms/include/lcms.h +=================================================================== +--- ghostscript-9.10.orig/lcms/include/lcms.h ++++ ghostscript-9.10/lcms/include/lcms.h +@@ -140,11 +140,15 @@ typedef pthread_rwlock_t LCMS_RW + #endif + + #if defined(__sgi__) || defined(__sgi) || defined(__powerpc__) || defined(sparc) || defined(__ppc__) || defined(__s390__) || defined(__s390x__) ++# ifndef __LITTLE_ENDIAN__ + # define USE_BIG_ENDIAN 1 ++# endif + #endif + + #if TARGET_CPU_PPC ++# ifndef __LITTLE_ENDIAN__ + # define USE_BIG_ENDIAN 1 ++# endif + #endif + + #if macintosh +Index: ghostscript-9.10/lcms2/include/lcms2.h +=================================================================== +--- ghostscript-9.10.orig/lcms2/include/lcms2.h ++++ ghostscript-9.10/lcms2/include/lcms2.h +@@ -178,17 +178,23 @@ typedef int cmsBool; + #endif + + #if defined(__sgi__) || defined(__sgi) || defined(__powerpc__) || defined(sparc) ++# ifndef __LITTLE_ENDIAN__ + # define CMS_USE_BIG_ENDIAN 1 ++# endif + #endif + + #if defined(__ppc__) || defined(__s390__) || defined(__s390x__) ++# ifndef __LITTLE_ENDIAN__ + # define CMS_USE_BIG_ENDIAN 1 ++# endif + #endif + + #ifdef TARGET_CPU_PPC + # if TARGET_CPU_PPC ++# ifndef __LITTLE_ENDIAN__ + # define CMS_USE_BIG_ENDIAN 1 + # endif ++# endif + #endif + + #ifdef macintosh From 9960deeefcab6052ee3616a5609475140217149756b8e933e887b0f88bccbbd9 Mon Sep 17 00:00:00 2001 From: Johannes Meixner Date: Thu, 19 Dec 2013 13:49:21 +0000 Subject: [PATCH 3/3] Accepting request 211702 from home:jsmeix:branches:Printing Added explanatory info what ppc64le-support.patch is about and added RPM recommends for cups-filters-ghostscript OBS-URL: https://build.opensuse.org/request/show/211702 OBS-URL: https://build.opensuse.org/package/show/Printing/ghostscript?expand=0&rev=34 --- ghostscript-mini.changes | 13 ++++++++++++- ghostscript-mini.spec | 11 ++++++++++- ghostscript.changes | 13 ++++++++++++- ghostscript.spec | 21 ++++++++++++++++++++- 4 files changed, 54 insertions(+), 4 deletions(-) diff --git a/ghostscript-mini.changes b/ghostscript-mini.changes index cca5c82..d944db7 100644 --- a/ghostscript-mini.changes +++ b/ghostscript-mini.changes @@ -1,7 +1,18 @@ ------------------------------------------------------------------- Fri Dec 13 19:09:12 UTC 2013 - uweigand@de.ibm.com -- ppc64le-support.patch: Support powerpc64le-linux. +- ppc64le-support.patch from IBM fixes endianness + in lcms (the Little-CMS library) to support the new + architecture ppc64le (IBM Power PC Little Endian architecture) + because ppc64 is big-endian and ppc64le is little-endian + and lcms has a hard-coded check that assumes PowerPC + is always big-endian which is incorrect on ppc64le. + The fix is already in the main Little-CMS repository + by this Git commit + https://github.com/mm2/Little-CMS/commit/b4f5c91a2c1582bd284f0d0f49cb43e2c2235a79 + (There are some cosmetic changes in the upstream patch.) + It is not yet in the imported copy in Ghostscript. + IBM will work with upstream to get the fix imported too. ------------------------------------------------------------------- Tue Sep 3 16:26:46 CEST 2013 - jsmeix@suse.de diff --git a/ghostscript-mini.spec b/ghostscript-mini.spec index 9b20cc8..dd9837f 100644 --- a/ghostscript-mini.spec +++ b/ghostscript-mini.spec @@ -15,7 +15,6 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # - Name: ghostscript-mini BuildRequires: freetype2-devel BuildRequires: libpng-devel @@ -60,6 +59,15 @@ Source0: http://downloads.ghostscript.com/public/ghostscript-%{version}.t # 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 ppc64le-support.patch from IBM fixes endianness in lcms (the Little-CMS library) +# to support the new architecture ppc64le (IBM Power PC Little Endian architecture) +# because ppc64 is big-endian and ppc64le is little-endian and lcms has a hard-coded +# check that assumes PowerPC is always big-endian which is incorrect on ppc64le. +# The fix is already in the main Little-CMS repository by this Git commit +# https://github.com/mm2/Little-CMS/commit/b4f5c91a2c1582bd284f0d0f49cb43e2c2235a79 +# (There are some cosmetic changes in the patch as it went upstream.) +# It is not yet in the imported copy in Ghostscript. +# IBM will work with upstream to get the fix imported too. Patch10: ppc64le-support.patch # # Source100...Source999 is for sources from SUSE which are not intended for upstream: @@ -133,6 +141,7 @@ This package contains the development files for Minimal Ghostscript. # Be quiet when unpacking and # use a directory name matching Source0 to make it work also for ghostscript-mini: %setup -q -n ghostscript-%{tarball_version} +# Patch10 ppc64le-support.patch from IBM fixes endianness in lcms (the Little-CMS library): %patch10 -p1 %build diff --git a/ghostscript.changes b/ghostscript.changes index ae300b3..c03b7a6 100644 --- a/ghostscript.changes +++ b/ghostscript.changes @@ -1,7 +1,18 @@ ------------------------------------------------------------------- Fri Dec 13 19:09:12 UTC 2013 - uweigand@de.ibm.com -- ppc64le-support.patch: Support powerpc64le-linux. +- ppc64le-support.patch from IBM fixes endianness + in lcms (the Little-CMS library) to support the new + architecture ppc64le (IBM Power PC Little Endian architecture) + because ppc64 is big-endian and ppc64le is little-endian + and lcms has a hard-coded check that assumes PowerPC + is always big-endian which is incorrect on ppc64le. + The fix is already in the main Little-CMS repository + by this Git commit + https://github.com/mm2/Little-CMS/commit/b4f5c91a2c1582bd284f0d0f49cb43e2c2235a79 + (There are some cosmetic changes in the upstream patch.) + It is not yet in the imported copy in Ghostscript. + IBM will work with upstream to get the fix imported too. ------------------------------------------------------------------- Tue Sep 3 16:26:46 CEST 2013 - jsmeix@suse.de diff --git a/ghostscript.spec b/ghostscript.spec index 0eaaa87..a22fbda 100644 --- a/ghostscript.spec +++ b/ghostscript.spec @@ -15,7 +15,6 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # - Name: ghostscript BuildRequires: cups-devel # dbus-1-devel is needed for "configure --enable-dbus" (see below): @@ -67,6 +66,15 @@ Source0: http://downloads.ghostscript.com/public/ghostscript-%{version}.t # 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 ppc64le-support.patch from IBM fixes endianness in lcms (the Little-CMS library) +# to support the new architecture ppc64le (IBM Power PC Little Endian architecture) +# because ppc64 is big-endian and ppc64le is little-endian and lcms has a hard-coded +# check that assumes PowerPC is always big-endian which is incorrect on ppc64le. +# The fix is already in the main Little-CMS repository by this Git commit +# https://github.com/mm2/Little-CMS/commit/b4f5c91a2c1582bd284f0d0f49cb43e2c2235a79 +# (There are some cosmetic changes in the patch as it went upstream.) +# It is not yet in the imported copy in Ghostscript. +# IBM will work with upstream to get the fix imported too. Patch10: ppc64le-support.patch # # Source100...Source999 is for sources from SUSE which are not intended for upstream: @@ -150,6 +158,16 @@ Conflicts: ghostscript-x11 > %{version}-%{release} # When the ghostscript main-package is installed, usually the exact matching # version-release of the ghostscript-x11 sub-package should be also installed: Recommends: ghostscript-x11 = %{version}-%{release} +# When the ghostscript main-package is installed, usually the CUPS filters gstoraster and gstopxl +# should be also installed. Since version 9.10 those CUPS filters are removed from Ghostscript +# and are now provided by the binary RPM sub-package cups-filters-ghostscript +# (see the cups-filters-ghostscript sub-package description). +# No RPM requirement because Ghostscript can be used without those CUPS filters +# and cups-filters-ghostscript is only available for newer openSUSE versions +# (currently since openSUSE 12.2) but in particular not for SLE11: +%if 0%{?suse_version} > 1210 +Recommends: cups-filters-ghostscript +%endif # Require Ghostscript's fonts because the Ghostscript package provides the # "Fontmap" file /usr/share/ghostscript//Resource/Init/Fontmap.GS # which lists Ghostscript's fonts but the fonts itself are provided in the @@ -247,6 +265,7 @@ This package contains the development files for Ghostscript. # Be quiet when unpacking and # use a directory name matching Source0 to make it work also for ghostscript-mini: %setup -q -n ghostscript-%{tarball_version} +# Patch10 ppc64le-support.patch from IBM fixes endianness in lcms (the Little-CMS library): %patch10 -p1 %build