debian/0000755000000000000000000000000011764454146007202 5ustar debian/rules0000755000000000000000000000003611764454146010261 0ustar #!/usr/bin/make -f %: dh $@ debian/control0000644000000000000000000000214711764454146010611 0ustar Source: libimage-size-perl Section: perl Priority: optional Build-Depends: debhelper (>= 8) Build-Depends-Indep: perl Maintainer: Debian Perl Group Uploaders: gregor herrmann , Ryan Niebur , Jonathan Yu Standards-Version: 3.9.3 Vcs-Git: git://git.debian.org/pkg-perl/packages/libimage-size-perl.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libimage-size-perl.git Homepage: http://search.cpan.org/dist/Image-Size/ Package: libimage-size-perl Architecture: all Depends: ${perl:Depends}, ${misc:Depends} Suggests: perlmagick Description: module for determining image sizes in several common formats Image::Size is a Perl module capable of determining image sizes from several common formats. It handles XPM, XBM, GIF, JPEG, PNG, MNG, the PPM family of formats (PPM/PGM/PBM), TIFF, FlashMX (Shockwave Flash version 6), WMF/EMF, and more. . It supports additional file types through Image::Magick (see perlmagick), and the included "imgsize" script provides access to Image::Size from the shell. debian/libimage-size-perl.examples0000644000000000000000000000000511764454146014416 0ustar ex/* debian/source/0000755000000000000000000000000011764454146010502 5ustar debian/source/format0000644000000000000000000000001411764454146011710 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000001762411764454146011066 0ustar libimage-size-perl (3.232-1) unstable; urgency=low [ Ansgar Burchardt ] * debian/control: Convert Vcs-* fields to Git. [ gregor herrmann ] * New upstream release. * Refresh patches. * debian/copyright: update to Copyright-Format 1.0. * debian/copyright: update copyright years and license stanzas. * Bump Standards-Version to 3.9.3 (no changes). * Set debhelper compatibility level to 8. -- gregor herrmann Fri, 08 Jun 2012 21:54:07 +0200 libimage-size-perl (3.230-1) unstable; urgency=low * New upstream release + Drop author tests, they've been moved to xt/ + Adds support for Windows WMF files * Refresh patches, remove critic patch (moved to xt/) * Standards-Version 3.9.1 (no changes) * Drop dependencies for compression stuff; perl 5.10 is available in stable * No longer use AUTHOR_TESTING, drop debhelper dependency -- Jonathan Yu Mon, 04 Oct 2010 19:13:34 -0400 libimage-size-perl (3.221-1) unstable; urgency=low [ Jonathan Yu ] * New upstream release * Rewrite control description * Standards-Version 3.8.4 (no changes) * Use new 3.0 (quilt) source format * Update copyright to new DEP5 format * Update imgsize exit code patch * Add patch to fix POD spelling errors [ gregor herrmann ] * debian/copyright: update years of upstream copyright. -- Jonathan Yu Mon, 03 May 2010 09:40:26 -0400 libimage-size-perl (3.220-1) unstable; urgency=low * New upstream release -- Jonathan Yu Tue, 10 Nov 2009 07:34:17 -0500 libimage-size-perl (3.210-1) unstable; urgency=low [ Jonathan Yu ] * New upstream release * Add myself to Uploaders and Copyright * Updated watch with mangle to handle new versions * Remove the install-imgsize patch; it's now installed by default * Add patch to disable perlcritic [ Ryan Niebur ] * Update ryan52's email address [ gregor herrmann ] * debian/control: add libio-compress-perl as another alternative (build) dependency for getting Compress::Zlib. -- Jonathan Yu Thu, 22 Oct 2009 06:59:17 -0400 libimage-size-perl (3.2-3) unstable; urgency=low * Add "perl (>= 5.10)" as an alternative build dependency on libcompress-zlib-perl as a preparation for the Perl 5.10.1 transition (cf. #542686). * Set Standards-Version to 3.8.3 (no changes). * Reword short description. * Minimize debian/rules, adjust versioned build dependencies on debhelper and quilt. * debian/control: change my email address. -- gregor herrmann Fri, 21 Aug 2009 15:52:37 +0200 libimage-size-perl (3.2-2) unstable; urgency=low [ Nathan Handler ] * debian/watch: Update to ignore development releases. [ gregor herrmann ] * Rename source package to libimage-size-perl. [ Christoph Berg ] * Remove me from Uploaders. -- Christoph Berg Fri, 14 Aug 2009 17:25:41 +0200 image-size (3.2-1) unstable; urgency=low [ gregor herrmann ] * Add debian/README.source to document quilt usage, as required by Debian Policy since 3.8.0. * debian/control: Changed: Switched Vcs-Browser field to ViewSVN (source stanza). [ Ryan Niebur ] * New upstream release * debhelper 7 * machine readable copyright format * add me to uploaders * bump Standards-Version to 3.8.0 [ gregor herrmann ] * debian/control: remove build dependency on libmodule-build-perl, dh7 prefers ExtUtils::MakeMaker. * debian/rules: touch Makefile after unpatching Makefile.PL. -- Ryan Niebur Sat, 28 Feb 2009 14:57:21 -0800 image-size (3.1.1-2) unstable; urgency=low * Update patch imgsize-fixes to make it compatible with the new enabled warnings; based on a patch from Reid Priedhorsky, thanks! Closes: #472760 * debian/copyright: add Debian Perl Group to copyright holders for the packaging. -- gregor herrmann Wed, 26 Mar 2008 18:18:20 +0100 image-size (3.1.1-1) unstable; urgency=low * New upstream release. * debian/watch: use dist-based URL. * debian/copyright: update according to Size.pm and point to dist-based source download URL. * debian/control: - use author-agnostic Homepage - add libtest-pod-perl and libtest-pod-coverage-perl to Build-Depends-Indep - make build depency on libcompress-zlib-perl versioned and add it to runtime dependencies - add perlmagick to Suggests - add /me to Uploaders * Refresh patch imgsize-fixes. * Set debhelper compatibility level to 6. * debian/rules: switch to using Module::Build instead of MakeMaker; move libmodule-build-perl to Build-Depends. -- gregor herrmann Wed, 20 Feb 2008 19:32:39 +0100 image-size (3.1-3) unstable; urgency=low * Moving the package to the Debian Perl Group. * Quiltize source. * Clean up control and rules. -- Christoph Berg Fri, 04 Jan 2008 23:01:33 +0100 image-size (3.1-2) unstable; urgency=low * New upstream release. * dpkg thinks 3.01 == 3.1, working around. -- Christoph Berg Wed, 17 Oct 2007 10:52:21 +0200 image-size (3.01-1) unstable; urgency=low * New upstream release. * Uses libmodule-build-perl. * Install example script. -- Christoph Berg Wed, 22 Nov 2006 12:58:21 +0100 image-size (3.0-1) unstable; urgency=low * New upstream release. + Implements a (different) fix for #104597, see the new Image::Size::GIF_BEHAVIOR option. + Requires libcompress-zlib-perl to build. * Move debhelper to Build-Depends. * Bump Standards-Version. -- Christoph Berg Thu, 15 Jun 2006 20:43:01 +0200 image-size (2.992-2) unstable; urgency=low * Priority: optional. * Cleaned up debian/rules (thanks to Marc Brockschmidt). * Escape latin1 char in pod. * Bump Standards-Version. -- Christoph Berg Wed, 14 Sep 2005 20:21:56 +0200 image-size (2.992-1) unstable; urgency=low * New upstream version. * imgsize: + Do safe sprintf call in imgsize (Closes: #191844). + Exit 1 on error. * New maintainer (Closes: #279771). * Move to section perl. * Bump standards version. -- Christoph Berg Sat, 6 Nov 2004 17:47:34 +0100 image-size (2.990-1) unstable; urgency=low * New upstream version. * Make Image::Size::gifsize pay attention to the frame size as well as the size tag associated with the first image in the GIF file, Closes: #104597 -- Stephen Zander Tue, 13 Aug 2002 13:57:46 -0700 image-size (2.930-1) unstable; urgency=low * New upstream source * Updated for policy 3.5.1 and the new perl packaging policy -- Stephen Zander Tue, 24 Apr 2001 23:36:07 -0700 image-size (2.910-1) unstable; urgency=low * New upstream source. * Package now policy compliant, Closes: #75503 -- Stephen Zander Tue, 12 Dec 2000 19:24:06 -0800 image-size (2.903-1) unstable; urgency=low * Nwe upstream source. -- Stephen Zander Wed, 20 Sep 2000 18:08:40 -0700 image-size (2.901-1) unstable; urgency=low * New maintainer. * New upstream source. -- Stephen Zander Wed, 18 Aug 1999 23:56:11 -0700 image-size (2.7-2.1) unstable; urgency=low * NMU for the perl upgrade. Closes: #41529 * Corrected the rules files to conform to perl policy 1.0.1 * Upgraded standards-version to 2.5.1 * Corrected the location of licenses in copyright file. -- Raphael Hertzog Mon, 19 Jul 1999 20:35:19 +0200 image-size (2.7-2) unstable; urgency=low * Whoops, there were some extra files lying around the package, and I was building it in the binary-arch instead of the binary-indep target of debian/rules. Fixed. -- Ben Gertzfield Fri, 23 Oct 1998 13:22:12 -0700 image-size (2.7-1) unstable; urgency=low * Initial release. -- Ben Gertzfield Fri, 23 Oct 1998 12:56:29 -0700 debian/compat0000644000000000000000000000000211764454146010400 0ustar 8 debian/patches/0000755000000000000000000000000011764454146010631 5ustar debian/patches/imgsize-exit-code.patch0000644000000000000000000000315711764454146015206 0ustar Description: exit with status code 0 on failure Origin: vendor Forwarded: no Author: Christoph Berg Reviewed-by: Jonathan Yu Reviewed-by: gregor herrmann Last-Update: 2012-06-08 --- a/imgsize +++ b/imgsize @@ -46,11 +46,13 @@ $opts{f} && ($rtn = \&return_fmt); +my $error = 0; + if (@ARGV > 1) { foreach (@ARGV) { - printf "$_: %s\n", $rtn->($_); + print STDOUT sprintf("%s: %s\n", $_, $rtn->($_)); } } else @@ -58,7 +60,7 @@ printf "%s\n", $rtn->($ARGV[0]); } -exit 0; +exit $error; sub return_html { @@ -67,7 +69,7 @@ my ($width, $height, $err) = imgsize($file); return (defined $width) ? - qq(width="$width" height="$height") : "error: $err"; + qq(width="$width" height="$height") : ("error: $err", $error = 1); } sub return_attr @@ -77,7 +79,7 @@ my ($width, $height, $err) = imgsize($file); return (defined $width) ? - "(-width => $width, -height => $height)" : "error: $err"; + "(-width => $width, -height => $height)" : ("error: $err", $error = 1); } sub return_imgsize @@ -86,7 +88,7 @@ my ($width, $height, $err) = imgsize($file); - return (defined $width) ? "$width $height" : "error: $err"; + return (defined $width) ? "$width $height" : ("error: $err", $error = 1); } sub return_fmt @@ -96,7 +98,7 @@ my ($width, $height, $err) = imgsize($file); return (defined $width) ? - sprintf($opts{f}, $width, $height, $err) : "error: $err"; + sprintf($opts{f}, $width, $height, $err) : ("error: $err", $error = 1); } __END__ debian/patches/fix-pod-spelling.patch0000644000000000000000000000141611764454146015035 0ustar Description: fix POD spelling errors Origin: vendor Forwarded: no Author: Jonathan Yu Reviewed-by: gregor herrmann Last-Update: 2012-06-08 --- a/lib/Image/Size.pm +++ b/lib/Image/Size.pm @@ -1308,7 +1308,7 @@ file handles and scalar references cannot be reliably transformed into a unique key for the table of cache data. Buffers could be cached using the MD5 module, and perhaps in the future I will make that an option. I do not, -however, wish to lengthen the dependancy list by another item at this time. +however, wish to lengthen the dependency list by another item at this time. As B operates on file names, not handles, the use of it is restricted to cases where the input to C is provided as file name. debian/patches/series0000644000000000000000000000005711764454146012050 0ustar imgsize-exit-code.patch fix-pod-spelling.patch debian/copyright0000644000000000000000000000242311764454146011136 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Image-Size Upstream-Contact: Randy J. Ray Source: http://search.cpan.org/dist/Image-Size/ Files: * Copyright: 1996-2012, Randy J. Ray License: Artistic or LGPL-2.1 Files: debian/* Copyright: 2009-2010, Jonathan Yu 2009, Ryan Niebur > 2008-2012, gregor herrmann 2004-2009, Christoph Berg 1999-2002, Stephen Zander 1999, Raphael Hertzog 1998, Ben Gertzfield License: Artistic or LGPL-2.1 License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl. . On Debian systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'. License: LGPL-2.1 This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; version 2.1. . On Debian systems, the complete text of version 2.1 of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. debian/libimage-size-perl.docs0000644000000000000000000000000711764454146013532 0ustar README debian/watch0000644000000000000000000000024611764454146010235 0ustar version=3 opts="uversionmangle=s/\.\d\d$/$&0/;s/\.\d$/$&00/" \ http://search.cpan.org/dist/Image-Size/ \ .*/Image-Size-v?(\d[\d.]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)