debian/0000755000000000000000000000000011361624150007165 5ustar debian/libmetadata-extractor-java-doc.docs0000644000000000000000000000000411361614521015774 0ustar api debian/rules0000755000000000000000000000124411361624120010243 0ustar #!/usr/bin/make -f # debian/rules file for libmetadata-extractor-java (uses cdbs) include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/ant.mk JAVA_HOME := /usr/lib/jvm/default-java DEB_ANT_BUILD_TARGET := dist-binaries DEB_INSTALL_CHANGELOGS_ALL := ChangeLog.txt LIBRARY := metadata-extractor DEB_UPSTREAM_VERSION := 2.3.1 clean:: rm -rf Releases Build api install/libmetadata-extractor-java:: install -m 644 -D Releases/${LIBRARY}-${DEB_UPSTREAM_VERSION}.jar ${CURDIR}/debian/lib${LIBRARY}-java/usr/share/java/${LIBRARY}-${DEB_UPSTREAM_VERSION}.jar dh_link usr/share/java/${LIBRARY}-${DEB_UPSTREAM_VERSION}.jar usr/share/java/${LIBRARY}.jar debian/patches/0000755000000000000000000000000011361624150010614 5ustar debian/patches/10buildxml.dpatch0000644000000000000000000000256411361614521013772 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 10buildxml.dpatch by Andreas Putzo ## ## DP: Adjust build.xml file. @DPATCH@ diff -urNad libmetadata-extractor-java-2.3.1~/build.xml libmetadata-extractor-java-2.3.1/build.xml --- libmetadata-extractor-java-2.3.1~/build.xml 2007-11-12 20:52:12.000000000 +0000 +++ libmetadata-extractor-java-2.3.1/build.xml 2007-11-12 21:17:41.000000000 +0000 @@ -7,8 +7,8 @@ - - + + @@ -28,7 +28,7 @@ verbose="${verbose}"/> - + debian/patches/series0000644000000000000000000000004111361623457012035 0ustar 10buildxml.dpatch 20nosun.dpatch debian/patches/20nosun.dpatch0000755000000000000000000001011111361614521013303 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 20nosun.dpatch by Gabriel Ebner ## ## DP: Remove all references to the com.sun.image.codec.jpeg package. @DPATCH@ diff -urNad libmetadata-extractor-java-2.3.1~/src/com/drew/imaging/jpeg/JpegMetadataReader.java libmetadata-extractor-java-2.3.1/src/com/drew/imaging/jpeg/JpegMetadataReader.java --- libmetadata-extractor-java-2.3.1~/src/com/drew/imaging/jpeg/JpegMetadataReader.java 2007-11-12 20:52:12.000000000 +0000 +++ libmetadata-extractor-java-2.3.1/src/com/drew/imaging/jpeg/JpegMetadataReader.java 2007-11-12 21:01:55.000000000 +0000 @@ -25,7 +25,6 @@ import com.drew.metadata.iptc.IptcReader; import com.drew.metadata.jpeg.JpegCommentReader; import com.drew.metadata.jpeg.JpegReader; -import com.sun.image.codec.jpeg.JPEGDecodeParam; import java.io.File; import java.io.IOException; @@ -89,36 +88,6 @@ return metadata; } - public static Metadata readMetadata(JPEGDecodeParam decodeParam) - { - final Metadata metadata = new Metadata(); - - /* We should only really be seeing Exif in _data[0]... the 2D array exists - * because markers can theoretically appear multiple times in the file. - */ - // TODO test this method - byte[][] exifSegment = decodeParam.getMarkerData(JPEGDecodeParam.APP1_MARKER); - if (exifSegment != null && exifSegment[0].length>0) { - new ExifReader(exifSegment[0]).extract(metadata); - } - - // similarly, use only the first IPTC segment - byte[][] iptcSegment = decodeParam.getMarkerData(JPEGDecodeParam.APPD_MARKER); - if (iptcSegment != null && iptcSegment[0].length>0) { - new IptcReader(iptcSegment[0]).extract(metadata); - } - - // NOTE: Unable to utilise JpegReader for the SOF0 frame here, as the decodeParam doesn't contain the byte[] - - // similarly, use only the first Jpeg Comment segment - byte[][] jpegCommentSegment = decodeParam.getMarkerData(JPEGDecodeParam.COMMENT_MARKER); - if (jpegCommentSegment != null && jpegCommentSegment[0].length>0) { - new JpegCommentReader(jpegCommentSegment[0]).extract(metadata); - } - - return metadata; - } - private JpegMetadataReader() { } diff -urNad libmetadata-extractor-java-2.3.1~/src/com/drew/metadata/SampleUsage.java libmetadata-extractor-java-2.3.1/src/com/drew/metadata/SampleUsage.java --- libmetadata-extractor-java-2.3.1~/src/com/drew/metadata/SampleUsage.java 2007-11-12 20:52:12.000000000 +0000 +++ libmetadata-extractor-java-2.3.1/src/com/drew/metadata/SampleUsage.java 2007-11-12 21:01:55.000000000 +0000 @@ -21,9 +21,6 @@ import com.drew.imaging.jpeg.JpegSegmentReader; import com.drew.metadata.exif.ExifReader; import com.drew.metadata.iptc.IptcReader; -import com.sun.image.codec.jpeg.JPEGCodec; -import com.sun.image.codec.jpeg.JPEGDecodeParam; -import com.sun.image.codec.jpeg.JPEGImageDecoder; import java.awt.image.BufferedImage; import java.io.File; @@ -87,23 +84,6 @@ } catch (JpegProcessingException jpe) { System.err.println("error 3a"); } - - // Approach 4 - // This approach is the slowest, because it decodes the Jpeg image. Of - // course you now have a decoded image to play with. In some instances - // this will be most appropriate. - try { - JPEGImageDecoder jpegDecoder = JPEGCodec.createJPEGDecoder(new FileInputStream(jpegFile)); - BufferedImage image = jpegDecoder.decodeAsBufferedImage(); - // now you can use the image - JPEGDecodeParam decodeParam = jpegDecoder.getJPEGDecodeParam(); - Metadata metadata = JpegMetadataReader.readMetadata(decodeParam); - printImageTags(4, metadata); - } catch (FileNotFoundException e) { - System.err.println("error 4a"); - } catch (IOException e) { - System.err.println("error 4b"); - } } private void printImageTags(int approachCount, Metadata metadata) debian/copyright0000644000000000000000000000303011361622777011131 0ustar This package was debianized by Andreas Putzo on Fri, 20 Jul 2007 19:15:37 +0000. It was downloaded from http://www.drewnoakes.com/code/exif/releases/metadata-extractor-2.3.1-src.jar The downloaded JAR file has been repackaged as GNU zip'ed tarball after removing Libraries/junit.jar, which contains compiled files that are provided by the junit package on Debian systems. Upstream Author: Drew Noakes Copyright: 2002-2007 Drew Noakes The package does not contain a separate license file. However, on the upstream website, http://www.drewnoakes.com/code/exif/, the author states: "This metadata library is available with Java source code for usage in the public domain." All source files contain what is given below. License: This is public domain software - that is, you can do whatever you want with it, and include it software that is licensed under the GNU or the BSD license, or whatever other licence you choose, including proprietary closed source licenses. I do ask that you leave this header in tact. If you make modifications to this code that you think would benefit the wider community, please send me a copy and I'll post it on my site. If you make use of this code, I'd appreciate hearing about it. drew@drewnoakes.com Latest version of this software kept at http://drewnoakes.com/ The Debian packaging is (C) 2007, Andreas Putzo and is licensed under the GPL, see `/usr/share/common-licenses/GPL-2'. debian/watch0000644000000000000000000000017511361614521010222 0ustar version=3 opts=dversionmangle=s/\+dfsg$// \ http://www.drewnoakes.com/code/exif/releases/metadata-extractor-([\d\.]*)\.jar debian/compat0000644000000000000000000000000211361614521010364 0ustar 5 debian/source/0000755000000000000000000000000011361624150010465 5ustar debian/source/format0000644000000000000000000000001411361624160011674 0ustar 3.0 (quilt) debian/libmetadata-extractor-java-doc.doc-base0000644000000000000000000000063511361614521016533 0ustar Document: libmetadata-extractor-java Title: Programmer API for libmetadata-extractor-java Author: Drew Noakes Abstract: This is the programmer API of libmetadata-extractor-java a framework to extract Exif and Iptc metadata segments from Jpeg files. Section: Programming Format: HTML Index: /usr/share/doc/libmetadata-extractor-java-doc/api/index.html Files: /usr/share/doc/libmetadata-extractor-java-doc/api/* debian/ant.properties0000644000000000000000000000006611361614521012070 0ustar ant.build.javac.source=1.3 ant.build.javac.target=1.3 debian/changelog0000644000000000000000000000334611361622301011041 0ustar libmetadata-extractor-java (2.3.1+dfsg-2) unstable; urgency=low * Team upload [ Michael Koch ] * Updated watch file to remove '+dfsg' from local version. [ Torsten Werner ] * Change Section: java. * Switch to default-jdk (Closes: #577902). * Add Depends: ${misc:Depends}. * Remove Andreas Putzo from Uploaders list. * Switch to source format 3.0. * Add Vcs headers. * Update Standards-Version: 3.8.4. * Refer to license file GPL-2. -- Torsten Werner Thu, 15 Apr 2010 16:37:53 +0200 libmetadata-extractor-java (2.3.1+dfsg-1) unstable; urgency=low * Add 20nosun.dpatch provided by Gabriel Ebner to remove all references to the com.sun classes. Package builds with a free java implementation now and thus can be uploaded to main. Changed upstream_version to re-upload orig.tar.gz. * Add Debian readme file to explain differences to the upstream version. * debian/rules: - Use dpatch instead of CDBS simple-patchsys. - Build with java-gcj. * debian/control: - Added dpatch to build-deps. - Replaced sun's java with java-gcj-compat in dep/build-dep. - Add new Homepage field and remove homepage from long description. - Move package to main. Sun's java is no longer needed. - Bumped Standards-Version to 3.7.3. -- Andreas Putzo Wed, 12 Dec 2007 07:36:52 +0000 libmetadata-extractor-java (2.3.1-2) unstable; urgency=low * Added debian/ant.properties to set javac's source/target property to 1.3. -- Andreas Putzo Wed, 12 Sep 2007 20:52:57 +0000 libmetadata-extractor-java (2.3.1-1) unstable; urgency=low * Initial release (Closes: #434090) -- Andreas Putzo Fri, 20 Jul 2007 19:15:37 +0000 debian/control0000644000000000000000000000233411361621754010601 0ustar Source: libmetadata-extractor-java Section: java Priority: optional Maintainer: Debian Java Maintainers Build-Depends: cdbs, debhelper (>= 5), default-jdk, ant, junit Standards-Version: 3.8.4 Homepage: http://www.drewnoakes.com/code/exif/ Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/libmetadata-extractor-java Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/libmetadata-extractor-java/ Package: libmetadata-extractor-java Architecture: all Depends: ${misc:Depends} Suggests: libmetadata-extractor-java-doc Description: JPEG metadata extraction framework Java based metadata extraction library for JPEG images with support for Exif and Iptc metadata segments, including manufacturer specific metadata of several digital camera models. Package: libmetadata-extractor-java-doc Recommends: libmetadata-extractor-java Architecture: all Depends: ${misc:Depends} Section: doc Description: Documentation for the JPEG metadata extraction framework Java based metadata extraction library for JPEG images with support for Exif and Iptc metadata segments, including manufacturer specific metadata of several digital camera models. . This package provides the Javadoc API documentation. debian/README.Debian0000644000000000000000000000054311361614521011231 0ustar libmetadata-extractor-java for Debian ------------------------------------- The method public static Metadata readMetadata(JPEGDecodeParam decodeParam) in class com.drew.imaging.jpeg.JpegMetadataReader has been removed from the library to not depend on proprietary class libraries. -- Andreas Putzo Sun, 09 Dec 2007 14:08:58 +0000