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