]> git.pld-linux.org Git - packages/ghostscript.git/commitdiff
- added binlink patch (fixes gsc/gsx linking); gtk subpackage is back
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 17 Sep 2010 19:18:43 +0000 (19:18 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- back to separate install/soinstall (race with make -jN)

Changed files:
    ghostscript-binlink.patch -> 1.1
    ghostscript.spec -> 1.198

ghostscript-binlink.patch [new file with mode: 0644]
ghostscript.spec

diff --git a/ghostscript-binlink.patch b/ghostscript-binlink.patch
new file mode 100644 (file)
index 0000000..51e00ad
--- /dev/null
@@ -0,0 +1,21 @@
+--- 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\
index 83e9d808bae3be92174d1375acf22df018d59db4..3c851e1c9b3158a5df58686d2c86e003070e413c 100644 (file)
@@ -2,16 +2,11 @@
 # - 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
@@ -36,6 +31,7 @@ Patch4:               %{name}-system-zlib.patch
 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
@@ -44,8 +40,7 @@ BuildRequires:        cups-devel
 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
@@ -193,6 +188,7 @@ Statyczna wersja biblioteki IJS.
 %patch5 -p1
 %patch6 -p1
 %patch7 -p1
+%patch8 -p1
 
 %build
 %if %{with system_jbig2dec}
@@ -241,7 +237,11 @@ cd ..
 %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}
 
This page took 0.226595 seconds and 4 git commands to generate.