Explorar el Código

upgrading package: ghostscript 9.01 -> 9.02

Ralf S. Engelschall hace 14 años
padre
commit
b3f170672c
Se han modificado 2 ficheros con 26 adiciones y 25 borrados
  1. 22 22
      ghostscript/ghostscript.patch
  2. 4 3
      ghostscript/ghostscript.spec

+ 22 - 22
ghostscript/ghostscript.patch

@@ -1,6 +1,27 @@
+Index: base/gsropt.h
+--- base/gsropt.h.orig	2011-03-11 06:45:19.000000000 +0100
++++ base/gsropt.h	2011-04-02 22:59:43.000000000 +0200
+@@ -379,17 +379,6 @@
+ 
+ #elif defined(__GNUC__) /* Are we using GCC? */
+ 
+-#ifdef __i386__ /* Are we on an x86? */
+-#define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
+-#if GCC_VERSION >= 40300 /* Modern enough to have byteswap intrinsics? */
+-
+-#include <byteswap.h>
+-
+-#define ENDIAN_SWAP_INT bswap_32
+-
+-#endif /* GCC >= 4.3 */
+-#endif /* x86 or later */
+-
+ #endif
+ 
+ #endif /* gsropt_INCLUDED */
 Index: base/stdint_.h
 --- base/stdint_.h.orig	2010-07-30 13:03:27.000000000 +0200
-+++ base/stdint_.h	2010-09-18 10:08:04.000000000 +0200
++++ base/stdint_.h	2011-04-02 22:55:44.000000000 +0200
 @@ -68,6 +68,13 @@
     typedef unsigned long long uint64_t;
  #  define STDINT_TYPES_DEFINED
@@ -15,24 +36,3 @@ Index: base/stdint_.h
     /* other archs may want to add defines here, 
        or use the fallbacks in std.h */
  #endif
-Index: base/unix-gcc.mak
---- base/unix-gcc.mak.orig	2010-07-07 19:47:09.000000000 +0200
-+++ base/unix-gcc.mak	2010-09-18 10:08:04.000000000 +0200
-@@ -250,7 +250,7 @@
- #   gcc to accept ANSI-style function prototypes and function definitions.
- XCFLAGS=-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\"$(gssharedir)\"
- 
--CFLAGS=$(CFLAGS_STANDARD) $(GCFLAGS) $(XCFLAGS)
-+CFLAGS=$(CFLAGS_STANDARD) $(GCFLAGS) $(XCFLAGS) $(XINCLUDE)
- 
- # Define platform flags for ld.
- # SunOS 4.n may need -Bstatic.
-@@ -261,7 +261,7 @@
- # XLDFLAGS can be set from the command line.
- XLDFLAGS=
- 
--LDFLAGS=$(XLDFLAGS)
-+LDFLAGS=$(XLDFLAGS) $(XLIBDIRS)
- 
- # Define any extra libraries to link into the executable.
- # ISC Unix 2.2 wants -linet.

+ 4 - 3
ghostscript/ghostscript.spec

@@ -22,8 +22,8 @@
 ##
 
 #   package versions
-%define       V_real       9.01
-%define       V_comp       901
+%define       V_real       9.02
+%define       V_comp       902
 %define       V_font_std   8.11
 %define       V_font_other 6.0
 %define       V_jpeg       8c
@@ -41,7 +41,7 @@ Class:        BASE
 Group:        Postscript
 License:      GPL
 Version:      %{V_real}
-Release:      20110211
+Release:      20110402
 
 #   package options
 %option       with_x11     yes
@@ -157,6 +157,7 @@ PreReq:       X11
     %{l_shtool} install -c fonts/* \
         $RPM_BUILD_ROOT%{l_prefix}/share/ghostscript/fonts/
     rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/ghostscript/%{V_real}/doc
+    rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/ghostscript/%{V_real}/examples
     rm -rf $RPM_BUILD_ROOT%{l_prefix}/man/de
     for prg in eps2eps gsbj gsdj gslj gsdj500 ps2pdf12 ps2pdf13; do
         rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/$prg