patch to build against pdfbox 1.5.0+dfsg
authortony mancill <tmancill@debian.org>
Tue, 29 Mar 2011 04:01:22 +0000 (04:01 -0000)
committertony mancill <tmancill@debian.org>
Tue, 29 Mar 2011 04:01:22 +0000 (04:01 -0000)
debian/changelog
debian/control
debian/patches/07_pdfbox1.5.patch [new file with mode: 0644]
debian/patches/series

index a89bc6b..b0a42aa 100644 (file)
@@ -1,3 +1,9 @@
+jabref (2.7~beta1+ds-4) UNRELASED; urgency=low
+
+  * Add patch to build against libpdfbox-1.5.0+dfsg.
+
+ -- tony mancill <tmancill@debian.org>  Mon, 28 Mar 2011 20:55:15 -0700
+
 jabref (2.7~beta1+ds-3) unstable; urgency=low
 
   * Edit jabref wrapper script to resolve libjgoodies-common-java jar.
index 10b6876..35fa875 100644 (file)
@@ -6,7 +6,7 @@ Uploaders: tony mancill <tmancill@debian.org>
 Build-Depends: debhelper (>= 7.3.7), quilt (>= 0.46-7)
 Build-Depends-Indep: default-jdk, ant, imagemagick, liblog4j1.2-java,
  antlr, antlr3 (>= 3.2), libjgoodies-looks-java, libjgoodies-forms-java, libspin-java,
- libglazedlists-java, libmicroba-java, libpdfbox-java, libjempbox-java (>= 0.2.0),
+ libglazedlists-java, libmicroba-java, libpdfbox-java (>= 1.5.0), libjempbox-java (>= 1.5.0),
  libmysql-java, libcommons-logging-java, libjpf-java, libjpfcodegen-java,
  velocity (>= 1.5)
 Standards-Version: 3.9.1
@@ -18,8 +18,8 @@ Package: jabref
 Architecture: all
 Depends: ${misc:Depends}, openjdk-6-jre | sun-java6-jre,
  antlr, antlr3 (>= 3.2), libjgoodies-looks-java, libjgoodies-forms-java, libspin-java,
- libglazedlists-java, libmicroba-java, libpdfbox-java,
- libjempbox-java (>= 0.2.0), java-wrappers (>= 0.1.6), libmysql-java,
+ libglazedlists-java, libmicroba-java, libpdfbox-java (>= 1.5.0),
+ libjempbox-java (>= 1.5.0), java-wrappers (>= 0.1.6), libmysql-java,
  libcommons-logging-java, libjpf-java, libjpfcodegen-java, velocity (>=1.5),
  libjgoodies-common-java
 Recommends: xdg-utils
diff --git a/debian/patches/07_pdfbox1.5.patch b/debian/patches/07_pdfbox1.5.patch
new file mode 100644 (file)
index 0000000..16a4936
--- /dev/null
@@ -0,0 +1,63 @@
+Description: adjust for new upstream release of PDFBox:
+ - fix up package imports for jempbox and pdfbox
+ - adjust return type of getSequenceDateList()
+Origin: other
+Forwarded: no
+Author: tony mancill <tmancill@debian.org>
+Last-Update: 2011-03-28
+
+--- a/src/java/net/sf/jabref/util/XMPSchemaBibtex.java
++++ b/src/java/net/sf/jabref/util/XMPSchemaBibtex.java
+@@ -7,8 +7,8 @@
+ import net.sf.jabref.*;
+-import org.jempbox.xmp.XMPMetadata;
+-import org.jempbox.xmp.XMPSchema;
++import org.apache.jempbox.xmp.XMPMetadata;
++import org.apache.jempbox.xmp.XMPSchema;
+ import org.w3c.dom.Element;
+ import org.w3c.dom.NamedNodeMap;
+ import org.w3c.dom.Node;
+@@ -106,7 +106,7 @@
+       }
+       @SuppressWarnings("unchecked")
+-      public List<String> getSequenceDateList(String seqName) throws IOException {
++      public List<Calendar> getSequenceDateList(String seqName) throws IOException {
+               return super.getSequenceDateList(makeProperty(seqName));
+       }
+--- a/src/java/net/sf/jabref/util/XMPUtil.java
++++ b/src/java/net/sf/jabref/util/XMPUtil.java
+@@ -9,18 +9,18 @@
+ import net.sf.jabref.imports.BibtexParser;
+ import net.sf.jabref.imports.ParserResult;
+-import org.jempbox.impl.DateConverter;
+-import org.jempbox.impl.XMLUtil;
+-import org.jempbox.xmp.XMPMetadata;
+-import org.jempbox.xmp.XMPSchema;
+-import org.jempbox.xmp.XMPSchemaDublinCore;
+-import org.pdfbox.cos.COSDictionary;
+-import org.pdfbox.cos.COSName;
+-import org.pdfbox.exceptions.COSVisitorException;
+-import org.pdfbox.pdmodel.PDDocument;
+-import org.pdfbox.pdmodel.PDDocumentCatalog;
+-import org.pdfbox.pdmodel.PDDocumentInformation;
+-import org.pdfbox.pdmodel.common.PDMetadata;
++import org.apache.jempbox.impl.DateConverter;
++import org.apache.jempbox.impl.XMLUtil;
++import org.apache.jempbox.xmp.XMPMetadata;
++import org.apache.jempbox.xmp.XMPSchema;
++import org.apache.jempbox.xmp.XMPSchemaDublinCore;
++import org.apache.pdfbox.cos.COSDictionary;
++import org.apache.pdfbox.cos.COSName;
++import org.apache.pdfbox.exceptions.COSVisitorException;
++import org.apache.pdfbox.pdmodel.PDDocument;
++import org.apache.pdfbox.pdmodel.PDDocumentCatalog;
++import org.apache.pdfbox.pdmodel.PDDocumentInformation;
++import org.apache.pdfbox.pdmodel.common.PDMetadata;
+ /**
+  * XMPUtils provide support for reading and writing BibTex data as XMP-Metadata
index 6b89451..e5ad6a6 100644 (file)
@@ -1,3 +1,4 @@
+07_pdfbox1.5.patch
 01_free_javac.patch
 02_libs.patch
 05_antlr32.patch