Browse Source

upgrading package: ghostscript 8.63 -> 8.64

master
parent
commit
e3d63cf81b
  1. 38
      ghostscript/ghostscript.patch
  2. 16
      ghostscript/ghostscript.spec

38
ghostscript/ghostscript.patch

@ -1,8 +1,8 @@
Index: src/stdint_.h
--- src/stdint_.h.orig 2004-06-17 23:42:53 +0200
+++ src/stdint_.h 2005-04-23 20:30:33 +0200
@@ -72,6 +72,13 @@
typedef u_int64_t uint64_t;
Index: base/stdint_.h
--- base/stdint_.h.orig 2008-02-24 02:12:18 +0100
+++ base/stdint_.h 2009-02-07 18:47:17 +0100
@@ -68,6 +68,13 @@
typedef unsigned long long uint64_t;
# define STDINT_TYPES_DEFINED
# endif
+#ifdef __sun__
@ -15,11 +15,29 @@ Index: src/stdint_.h
/* other archs may want to add defines here,
or use the fallbacks in std.h */
#endif
Index: src/unix-gcc.mak
--- src/unix-gcc.mak.orig 2007-08-03 10:14:48 +0200
+++ src/unix-gcc.mak 2007-08-03 12:32:08 +0200
@@ -418,8 +418,8 @@
DEVICE_DEVS21=$(DD)spotcmyk.dev $(DD)devicen.dev $(DD)xcf.dev $(DD)bmpsep1.dev $(DD)bmpsep8.dev $(DD)bmp16m.dev $(DD)bmp32b.dev $(DD)psdcmyk.dev $(DD)psdrgb.dev
Index: base/unix-gcc.mak
--- base/unix-gcc.mak.orig 2008-10-02 21:33:22 +0200
+++ base/unix-gcc.mak 2009-02-07 18:48:04 +0100
@@ -229,7 +229,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.
@@ -240,7 +240,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.
@@ -389,8 +389,8 @@
DEVICE_DEVS21=$(DD)spotcmyk.dev $(DD)devicen.dev $(DD)xcf.dev $(DD)bmpsep1.dev $(DD)bmpsep8.dev $(DD)bmp16m.dev $(DD)bmp32b.dev $(DD)psdcmyk.dev $(DD)psdrgb.dev $(DD)pamcmyk32.dev
# Shared library target to build.
-GS_SHARED_OBJS=$(GLOBJDIR)/X11.so $(GLOBJDIR)/lvga256.so $(GLOBJDIR)/vgalib.so

16
ghostscript/ghostscript.spec

@ -22,8 +22,8 @@
##
# package versions
%define V_real 8.63
%define V_comp 863
%define V_real 8.64
%define V_comp 864
%define V_font_std 8.11
%define V_font_other 6.0
%define V_jpeg 6b
@ -41,7 +41,7 @@ Class: BASE
Group: Postscript
License: GPL
Version: %{V_real}
Release: 20081218
Release: 20090207
# package options
%option with_x11 yes
@ -135,26 +135,26 @@ AutoReqProv: no
%endif
%{l_shtool} subst \
-e "s;^STDLIBS=-lpthread -lm;STDLIBS=$mtldflags -lm;" \
-e "s;^EXTRALIBS=.*$;EXTRALIBS=$x11_ext;" \
-e "s;^EXTRALIBS=.*$;EXTRALIBS=$x11_lib $x11_ext;" \
-e "s;^prefix = /usr/local;prefix = %{l_prefix};" \
-e "s;CC=gcc;CC=%{l_cc};" \
-e "s;GCFLAGS=.*\\(-fno.*\\)\$;GCFLAGS=\$1;" \
-e "s;XCFLAGS=.*\$;XCFLAGS=$mtcflags;" \
-e "s;XINCLUDE=.*\$;XINCLUDE=$x11_inc;" \
-e "s;XLIBDIRS=.*\$;XLIBDIRS=$x11_lib;" \
src/unix-gcc.mak
base/unix-gcc.mak
%if "%{with_x11}" != "yes"
%{l_shtool} subst \
-e 's;DEVICE_DEVS=.*$;DEVICE_DEVS=;' \
src/unix-gcc.mak
base/unix-gcc.mak
%endif
%{l_make} %{l_mflags} -f src/unix-gcc.mak
%{l_make} %{l_mflags} -f base/unix-gcc.mak
%install
rm -rf $RPM_BUILD_ROOT
( cd ghostscript-%{version}
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}
%{l_make} %{l_mflags} -f src/unix-gcc.mak install DEVICE_DEVS="" \
%{l_make} %{l_mflags} -f base/unix-gcc.mak install DEVICE_DEVS="" \
prefix=$RPM_BUILD_ROOT%{l_prefix}
) || exit $?
%{l_shtool} mkdir -f -p -m 755 \

Loading…
Cancel
Save