--- /dev/null
+--- ghostscript-8.71/base/unix-dll.mak.orig 2009-10-19 22:24:53.000000000 +0200
++++ ghostscript-8.71/base/unix-dll.mak 2010-09-17 20:35:47.367647439 +0200
+@@ -80,15 +80,16 @@
+
+ $(GSSOC_XE): $(GS_SO) $(PSSRC)$(SOC_LOADER)
+ $(GLCC) -g -o $(GSSOC_XE) $(PSSRC)dxmainc.c \
+- $(LDFLAGS) -L$(BINDIR) -l$(GS)
++ $(LDFLAGS_BIN) -L$(BINDIR) -l$(GS)
+
+ $(GSSOX_XE): $(GS_SO) $(PSSRC)$(SOC_LOADER)
+ $(GLCC) -g $(SOC_CFLAGS) -o $(GSSOX_XE) $(PSSRC)$(SOC_LOADER) \
+- $(LDFLAGS) -L$(BINDIR) -l$(GS) $(SOC_LIBS)
++ $(LDFLAGS_BIN) -L$(BINDIR) -l$(GS) $(SOC_LIBS)
+
+ # ------------------------- Recursive make targets ------------------------- #
+
+ SODEFS=LDFLAGS='$(LDFLAGS) $(LDFLAGS_SO)'\
++ LDFLAGS_BIN='$(LDFLAGS)'\
+ GS_XE=$(BINDIR)/$(SOBINRELDIR)/$(GS_SONAME_MAJOR_MINOR)\
+ STDIO_IMPLEMENTATION=c\
+ DISPLAY_DEV=$(DD)$(SOOBJRELDIR)/display.dev\
# - fix svga bcond
# - add djvu driver:
# http://dl.sourceforge.net/djvu/gsdjvu-1.3.tar.gz (or newer)
-# - gtk package packages library as executable and bogus libgs.so.8 dep
-# file usr/bin/gsx
-# usr/bin/gsx: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
-# rpm -qp --provides ghostscript-gtk-8.71-1.x86_64.rpm
-# libgs.so.8()(64bit)
#
# Conditional build:
%bcond_without system_jbig2dec # build with included jbig2dec
%bcond_with svga # svgalib display support (vgalib,lvga256 devices) [broken in sources]
-%bcond_with gtk # without gsx (fix it first)
+%bcond_without gtk # gsx (GTK+ based frontend)
Summary: PostScript & PDF interpreter and renderer
Summary(de.UTF-8): PostScript & PDF Interpreter und Renderer
Patch5: %{name}-cups-sh.patch
Patch6: %{name}-gdevcd8-fixes.patch
Patch7: %{name}-fPIC.patch
+Patch8: %{name}-binlink.patch
URL: http://www.ghostscript.com/
BuildRequires: autoconf >= 2.57
BuildRequires: automake >= 1.6
BuildRequires: docbook-style-dsssl
BuildRequires: fontconfig-devel
%{?with_system_jbig2dec:BuildRequires: jbig2dec-devel}
-# for gsx
-%{?with_gtk:BuildRequires: gtk+-devel}
+%{?with_gtk:BuildRequires: gtk+2-devel >= 1:2.0.0}
BuildRequires: libpaper-devel
BuildRequires: libpng-devel >= 1.2.42
BuildRequires: libstdc++-devel
%patch5 -p1
%patch6 -p1
%patch7 -p1
+%patch8 -p1
%build
%if %{with system_jbig2dec}
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install soinstall \
+%{__make} soinstall \
+ DESTDIR=$RPM_BUILD_ROOT \
+ docdir=%{_docdir}/%{name}-%{version}
+
+%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
docdir=%{_docdir}/%{name}-%{version}