Переглянути джерело

fix installation procedure

Ralf S. Engelschall 22 роки тому
батько
коміт
f00dc0ab9a
2 змінених файлів з 15 додано та 1 видалено
  1. 12 0
      pdflib/pdflib.patch
  2. 3 1
      pdflib/pdflib.spec

+ 12 - 0
pdflib/pdflib.patch

@@ -0,0 +1,12 @@
+Index: config/mkmainlib.inc
+--- config/mkmainlib.inc.orig	2004-01-26 14:30:23.000000000 +0100
++++ config/mkmainlib.inc	2004-02-12 09:08:24.000000000 +0100
+@@ -28,7 +28,7 @@
+ 	@-if test "$(WITH_SHARED)" = "no"; then	\
+ 	    cp .libs/$(MAINLIBNAME) .libs/$(MAINLIBNAME)i;\
+ 	fi
+-	$(LIBTOOL) $(INSTALL_DATA) $(MAINLIBNAME) $(libdir);
++	$(LIBTOOL) --mode=install $(INSTALL_DATA) $(MAINLIBNAME) $(libdir);
+ 	@-if test "$(WITH_SHARED)" = "yes"; then	\
+ 	    $(LIBTOOL) -n --finish $(libdir);\
+ 	else\

+ 3 - 1
pdflib/pdflib.spec

@@ -38,10 +38,11 @@ Class:        BASE
 Group:        Graphics
 License:      PDFlib
 Version:      %{V_long}
-Release:      20040207
+Release:      20040212
 
 #   list of sources
 Source0:      http://www.pdflib.com/products/pdflib/download/%{V_comp}src/PDFlib-Lite-%{V_long}-Unix-src.tar.gz
+Patch0:       pdflib.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -65,6 +66,7 @@ AutoReqProv:  no
 
 %prep
     %setup -q -n PDFlib-Lite-%{V_long}-Unix-src
+    %patch -p0
 
 %build
     CC="%{l_cc}" \