فهرست منبع

upgrading package: pdftk 1.12 -> 1.41

Ralf S. Engelschall 17 سال پیش
والد
کامیت
49b0dcee12
2فایلهای تغییر یافته به همراه26 افزوده شده و 18 حذف شده
  1. 13 0
      pdftk/pdftk.patch
  2. 13 18
      pdftk/pdftk.spec

+ 13 - 0
pdftk/pdftk.patch

@@ -0,0 +1,13 @@
+Index: pdftk/Makefile.Base
+--- pdftk/Makefile.Base.orig	2006-10-25 01:44:06 +0200
++++ pdftk/Makefile.Base	2008-07-21 20:48:17 +0200
+@@ -40,8 +40,7 @@
+ libgcj_local_libs = \
+ $(java_libs_root)/java_local/security/security.a \
+ $(java_libs_root)/gnu_local/java/security/provider/provider.a \
+-$(java_libs_root)/gnu_local/java/security/security.a \
+-$(java_libs_root)/gnu/gcj/convert/convert.a
++$(java_libs_root)/gnu_local/java/security/security.a
+ 
+ # this must already be set according to your platform Makefile;
+ # we're just appending to it, here

+ 13 - 18
pdftk/pdftk.spec

@@ -24,24 +24,27 @@
 #   package information
 Name:         pdftk
 Summary:      PDF Toolkit
-URL:          http://www.accesspdf.com/pdftk/
+URL:          http://www.pdfhacks.com/pdftk/
 Vendor:       Sid Steward
 Packager:     OpenPKG Foundation e.V.
 Distribution: OpenPKG Community
 Class:        EVAL
 Group:        Postscript
 License:      GPL
-Version:      1.12
-Release:      20080101
+Version:      1.41
+Release:      20080721
 
 #   list of sources
 Source0:      http://www.pdfhacks.com/pdftk/pdftk-%{version}.tar.gz
+Patch0:       pdftk.patch
 
 #   build information
 Prefix:       %{l_prefix}
 BuildRoot:    %{l_buildroot}
 BuildPreReq:  OpenPKG, openpkg >= 20040130, make, gcc, gcc::with_java = yes
 PreReq:       OpenPKG, openpkg >= 20040130
+BuildPreReq:  zlib, libiconv
+PreReq:       zlib, libiconv
 AutoReq:      no
 AutoReqProv:  no
 
@@ -59,29 +62,21 @@ AutoReqProv:  no
 %track
     prog pdftk = {
         version   = %{version}
-        url       = http://www.accesspdf.com/pdftk/
-        regex     = Latest\s+Version:\s+(__VER__)
+        url       = http://www.pdfhacks.com/pdftk/
+        regex     = pdftk-(__VER__)\.tar\.gz
     }
 
 %prep
     %setup -q
+    %patch -p0
 
 %build
     cd pdftk
     export CLASSPATH="`echo %{l_prefix}/share/gcc/libgcj*.jar`:."
-    case "%{l_platform -t}" in
-        *-freebsd4* )
-            %{l_shtool} subst \
-                 -e 's;^\(CPPFLAGS=.*\)$;\1 -pthread %{l_cppflags gcc};' \
-                 Makefile.Generic
-            ;;
-        * )
-            %{l_shtool} subst \
-                 -e 's;^\(CPPFLAGS=.*\)$;\1 %{l_cppflags gcc};' \
-                 -e 's;^\(CXXFLAGS=.*\)$;\1 -lpthread;' \
-                 Makefile.Generic
-            ;;
-    esac
+    %{l_shtool} subst \
+         -e 's;^\(CPPFLAGS=.*\)$;\1 %{l_cppflags gcc};' \
+         -e 's;^\(CXXFLAGS=.*\)$;\1 -lpthread -lz -liconv;' \
+         Makefile.Generic
     %{l_make} %{l_mflags} -f Makefile.Generic
 
 %install