|
|
@@ -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
|