--- pngcrush-1.6.17.orig/debian/README.Debian +++ pngcrush-1.6.17/debian/README.Debian @@ -0,0 +1,21 @@ +pngcrush for Debian +---------------------- + +This program has been built from pngcrush--nolib.tar.gz +which the upstream author (Glenn Randers-Pehrson) has provided +for dynamic linking against libpng and zlib. This dynamic linking +makes life easier for the security team but is STRONGLY deprecated +by the upstream author. In particular, the "crush"ing is marginally +less effective than with the statically linked version. + + -- Kapil Hari Paranjape Wed, 22 Mar 2006 20:20:46 +0530 + +--notes from original maintainer--- + +This program has been modified from the original source to allow for dynamic +linking against libpng and zlib. The original software included slightly +modified versions of these two libraries. As a result of linking against +standard libpng and zlib this version of pngcrush will produce slightly larger +files and will execute slightly faster. + + -- David Whedon , Sun, 22 Oct 2000 15:51:40 -0700 --- pngcrush-1.6.17.orig/debian/pngcrush.sgml +++ pngcrush-1.6.17/debian/pngcrush.sgml @@ -0,0 +1,549 @@ + + David"> + Whedon"> + + Mon Apr 30, 2001"> + + 1"> + dwhedon@gordian.com"> + + pngcrush"> + pngcrush"> + + Debian GNU/Linux"> + GNU"> +]> + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2000 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + pngcrush + + optimizes (or modifies) PNG (Portable Network Graphics) files. + + + + pngcrush + + + infile.png + outfile.png + + + pngcrush -e ext + + file1.png + file2.png + ... + + + pngcrush -d dir + + file1.png + file2.png + ... + + + + DESCRIPTION + &pngc; is an optimizer for PNG (Portable Network Graphics) files. Its +main purpose is to reduce the size of the file's IDAT chunk (or stream). &pngc; can also be used to modify a PNG's ancillary chunks (example: transparency information or textual comments). Some familiarity with the PNG (pronounced 'ping') format may be helpful to users of &pngc;. &pngc; has reasonable defaults so running with no options may produce smaller files. This document briefly describes the PNG format where necessary to understand &pngc;. For complete documentation, see : + +http://www.libpng.org/pub/png/. + + The actual pixel data of a PNG is contained in one or many IDAT chunks. To make an IDAT chunk PNG encoders take the raw pixel data, filter it with one of 5 different filters (See Section ) then compress it. &pngc; reduces the size of PNG files by choosing a different filter or compression methods from those used in the input file. &pngc; tries multiple filter/compression methods and compares the size of the resulting IDAT chunk. The filter/compression method with the smallest IDAT chunk is chosen for the output file. The filter and compression levels &pngc; tries are controlled by command line options. All of the filter methods and compression levels are lossless; they will not reduce image quality. + In addition to reducing the size of a PNG file, &pngc; can modify ancillary chunks. Ancillary chunks are optional information including transparency (tRNS), gamma (gAMMA), standard RGB color space conformance (sRGB) or textual information (iTXt, tEXt or zTXt). See the associated command line options for details on manipulating these chunks. + + + OPTIONS + + + + + + If file has an IDAT chunk greater than the integer size, it will be considered to be already crushed and will not be processed further. + + + + + + +Force output bit depth to n. See Section for bit depth restrictions. + + + + + + + +Specify the default background color for the image. Some PNG viewers will use this background when displaying the image. Background is specified by r, g and b integers between 0 and (2⁁bitdepth)-1. For output color type 0 and 4 (gray, see section ) the green index is used as the gray level of the background. + + + + + + + +Use brute force, try 114 different filter/compression methods [11-124]. This option is very time-consuming and generally not worthwhile. You can restrict this option to certain filter types, compression levels, or strategies by following it with , , or . For example: + + &pngc; -brute -f 0 infile.png + + +Will try only methods that use filter type 0. + + + + + + + +Set the output image color type to type, one of [0, 2, 4, or 6] (see section ). Future versions of &pngc; will also allow color type 3, if there are 256 or fewer colors present in the input file. Color types 4 and 6 are padded with an opaque alpha channel if the input file does not have alpha information. You can use 0 or 4 to convert color to grayscale. Use 0 or 2 to delete an unwanted alpha channel. Default is to use same color type as the input file. + + + + + + + + +Specify a directory for all output files. All output files will have the same name as their respective input files. + + + + + + + +Double the images gamma. This is used for fixing gamma in PhotoShop 5.0c5.02 files. It has been claimed that the PS5 bug is actually more complex than that, in some unspecified way. + + + + + + + +Specify a new extension ext for all output files. + + + + + + + +Forces &pngc; to call exit() rather than return() when it is finished. It is unclear to this writer why this option exists. + + + + + + + + +Specify filter (see section ) to use with the method specified in the preceding or option. Valid filter types are [0-4] : use specified filter, [5]: use adaptive filtering. + + + + + + + +Fix otherwise fatal conditions such as bad CRCs. The CRC (Cyclic Redundancy Check) is present in every chunk and can alert the decoder of corrupt data. + + + + + + + +Write a new output file even if larger than input. Otherwise the input file will be copied to output if it is smaller than any generated file and no chunk additions, removals, or changes were requested. + + + + + + + +Value to insert in gAMA chunk, only if the input file has no gAMA chunk. To replace an existing gAMA chunk, use the option. Some decoders will use the gAMA chunk to more accurately display the image. gamma relates the output intensity to the input samples (input_sample = light_out^GAMMA). gamma can be any integer between 0 and 2^32 and is interpreted as GAMMA*100000. For example, if you wanted a GAMMA of 1/2.2, you would enter 45455 for gamma. + + + + + + + +Display help and legal notices. + + + + + + + + +Insert an (uncompressed) iTXt chunk. indicates whether chunk should be inserted before or after the IDAT chunk, (see Section ). + + + + + + + +keep named chunk chunk_name even if the PNG datastream becomes invalid. Currently only dSIG is recognized as an acceptable value. + + + + + + + +zlib compression level to use on the filtered IDAT chunk with the method specified by the preceding or option. zlib compression levels are integers between 0 and 9. 0 = no compression, 1 = fastest compression, and 9 = best compression. + + + + + + + +Make the file more compressible by performing a lossless, reversible, color transformation. The resulting file is a MNG format file, not a PNG, and should be given the .mng file extension. The option has no effect on grayscale or indexed-color PNG files. + + + + + + + +&pngc; method [0-200] to try (0 means try all of 1-10). Can be repeated as in . This can be useful if you run out of memory when &pngc; tries methods 2, 3, 5, 6, 8, 9, or 10 which use filtering and are memory intensive. Method 1, 4, and 7 use no filtering; methods 11 and up use specified filter, compression level, and strategy. + + + + + + + +Set the maximum idat size to be used when creating the compression buffer.[1 through 524288] + + + + + + + +write a new MNG, do not crush embedded PNGs. + + + + + + + +Do not do compression or write output file. This is useful in conjunction with the option to get info, or to test decode speed. + + + + + + + + +This option tells &pngc; to pause and wait for [enter] key whenever the screen fills. + + + + + + + +Truncates the PLTE. The PLTE chunk contains from 1 to 256 palette entries. Be sure not to truncate it to less than the greatest index present in IDAT. + + + + + + + +quiet, the opposite of verbose. + + + + + + + +Name of an ancillary chunk or optional PLTE to be removed. Be careful with +this. Please don't use this feature to remove transparency, gamma, copyright, +or other valuable information. To remove several different chunks, repeat: +. Known chunks (those in the PNG spec or extensions document) can be named with all lower-case letters, so is +equivalent to . But note: removes all forms of text +chunks; Exact case is required to remove unknown chunks. To do surgery with a +chain-saw, removes all known ancillary chunks except for tRNS, and + removes all but tRNS and gAMA. + + + + + + + +Force a specified gamma in the output file even if gAMA is present in the input. See the for more information. + + + + + + + +Write a pHYs chunk with a resolution of dpi. The pHYs chunk indicates the desired pixel size. + + + + + + + +Force writing of unknown chunks. If the input image has chunks that are not part of the PNG specification, they should not be discarded. + + + + + + + +Set value of rendering intent for sRGB chunk to n where n is between 0 and 3. The appropriate rendering intent depends on how the image will be used: + +0 - Perceptual: when good adaptation to the output device gamut at the expense of colorimetric accuracy is desired, example: photographs. +1 - Relative colorimetric: images requiring color appearance matching (relative to the output device white point), example: logos. +2: Saturation: preservation of saturation at the expense of hue and lightness is preferred, example: charts and graphs. +3: Absolute colorimetric: images requiring preservation of absolute colorimetry, example: proofs (previews of images destined for a different output device). + + + + + + + + +Insert a tEXt chunk. indicates whether chunk should be inserted before or after the IDAT chunk, (see Section ). + + + + + + + +Reset file modification time to newer time stamp. This is the default. + + + + + + + +Retain input file modification time stamp. The default is which is the opposite of this option. + + + + + + + +Insert a tRNS (transparency) chunk, if no tRNS chunk found in file. You must give all five parameters regardless of the color type, scaled to the output bit depth. See the PNG documentation for details. + + + + + + + +Insert a tRNS (transparency) chunk, if no tRNS chunk found in file. See the PNG documentation for details. + + + + + + + +Display more detailed information. Repeat the option (use "-v -v") for even more. + + + + + + + +Specify size in kbytes (or bytes in the case of 512) of the sliding +compression window where size is one of [32, 16, 8, 4, 2, 1, or 512]. It's best to +use the default (32) unless you run out of memory. The program will use a +smaller window anyway when the uncompressed file is smaller than 16k. + + + + + + + +Specify the zlib compression strategy [0, 1, or 2] to be used on the filtered IDAT chunk for the method of the preceding . The zlib strategy parameter tunes the compression algorithm and is one of: + +0 : default, most compression is aimed towards string matching +1 : some string matching, some Huffman coding +2 : use only Huffman coding + + + + + + + + + +Insert a zTXt chunk. indicates whether chunk should be inserted before or after the IDAT chunk, (see Section ). + + + + + + + +zTXt chunk to insert (see -text). + + + + + + +Color Types + +The PNG specification provides for five color types. The color type determines how the IDAT chunk will be interpreted by the decoder. Choosing a color type appropriate for the color information in an image can in principle reduce the size. However, certain combinations of and require color counting which is currently disabled. In such cases no reduction will take place. Following are the PNG color types followed by their supported bit depths (Note &pngc; does not support changing a file to color type 3 from another color type.): + +0 : grayscale without alpha channel (1,2,4,8,16) +2 : true color without alpha channel (8,16) +3 : indexed color (1,2,4,8) +4 : grayscale with alpha channel (8,16) +6 : true color with alpha channel (8,16) + + +An alpha channel represents transparency on a per pixel basis. An alpha value of zero is completely transparent. An alpha channel of 2^bitdepth-1 is completely opaque. + + + +Filter Types + +The IDAT chunk can optionally be filtered before compression. These filters can make the IDAT chunk more compressible without losing any data and result in a smaller PNG file. These filters are applied to the bytes of the IDAT chunk, not the pixels. Following is a brief description of the filters, see the PNG specification for details: + + +0 : no filter +1 : 'sub' transmits the difference between each byte and the value of the corresponding byte of the prior pixel. +2 : 'up' transmits the difference between each byte and the value of the corresponding byte of the pixel above this pixel +3 : 'average' transmits the difference between each byte and the average of the bytes described in filters 1 and 2 +4 : 'paeth' computes a simple linear function of the corresponding byte in three neighboring pixels (paeth_predictor = left + above - upper left), then transmits the difference between the byte in question and the neighboring byte closest to the value of paeth_predictor. + + + +Text Chunks +Textual information pertaining to an image can be conveyed with the tEXt, iTXt and zTXt chunks. All text chunks consist of a keyword followed by a string. The following keywords are defined in the PNG specification: (you may invent keywords for other purposes): + +Title: Short title or caption for image +Author: Name of image's creator +Description: Longer description of image +Copyright: Copyright notice +Creation Time: Time of original image creation +Software: Software used to create the image +Disclaimer: Legal disclaimer +Warning: Warning of nature of content +Source: Device used to create the image +Comment: Miscellaneous comment. + +A tEXt chunk stores text in the ISO/IEC 8859-1 (Latin-1) character set. zTXt chunks also use the Latin-1 character set, but the text is compressed. This can be useful for large text chunks. iTXt chunks consist of text in the UTF-8 of the Unicode character set. + +keyword must be at least 1 character and less than 80 characters. text must be less than 2048 characters when using &pngc; For now, you can only add ten tEXt, iTXt, or zTXt chunks per &pngc; run. + + + + SEE ALSO + png(5), libpng(3), zlib(3). + + + AUTHOR + + This manual page was written by &dhusername; &dhemail; for + the &debian; system (but may be used by others). Much of the + information was gleaned from "PNG (Portable Network Graphics) Specification, Version 1.2" + + +
+ + --- pngcrush-1.6.17.orig/debian/rules +++ pngcrush-1.6.17/debian/rules @@ -0,0 +1,91 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +DEB_QUILT_PATCHES = debian/patches + +patch: patch-stamp +patch-stamp: + QUILT_PATCHES=$(DEB_QUILT_PATCHES) quilt push -a || test $$? = 2 + + touch patch-stamp + +reverse-patch: + QUILT_PATCHES=$(DEB_QUILT_PATCHES) quilt pop -a -R || test $$? = 2 + + rm -rf ./.pc + rm -f patch-stamp + +configure: configure-stamp +configure-stamp: patch-stamp + dh_testdir + + # Add here commands to configure the package. + + + touch configure-stamp + +build: build-stamp +build-stamp: configure-stamp + dh_testdir + + $(MAKE) CFLAGS="$(CFLAGS)" + /usr/bin/docbook-to-man debian/pngcrush.sgml > debian/pngcrush.1 + + touch build-stamp + +clean-source: + rm -f build-stamp + + [ ! -f Makefile ] || $(MAKE) clean + + +clean: clean-source reverse-patch + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp debian/pngcrush.1 + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) install DESTDIR=$(CURDIR)/debian/pngcrush + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installman debian/pngcrush.1 + dh_installchangelogs ChangeLog.txt + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- pngcrush-1.6.17.orig/debian/changelog +++ pngcrush-1.6.17/debian/changelog @@ -0,0 +1,291 @@ +pngcrush (1.6.17-1) unstable; urgency=low + + * New upstream release (1.6.17-nolib). + - debian/patches/add_Makefile: renamed to patch_Makefile + since upstream now provides a makefile. Patch refreshed + and comments added. + - debian/patches/pngcrush_relocate_warning: patch refreshed and + comments added. + - create output with new timestamp by default instead of copying + the input file timestamp; (viz. #510491). + - see upstream Changelog for more details. + * debian/copyright: Updated to reflect new dates for new sources. + * debian/control: Standards Version bumped to 3.8.1. No other + changes required. + * debian/pngcrush.sgml: document the new options "-newtimestamp" + and "-oldtimestamp" which supersede the old option "-time_stamp". + * Remove misleading reference to CVE-2009-0040 in previous changelog + entry. + + -- Kapil Hari Paranjape Wed, 03 Jun 2009 07:03:51 +0530 + +pngcrush (1.6.15-1) unstable; urgency=low + + * New upstream release (1.6.15-nolib). + * Fix previous changelog entry to note change + to debian/pngcrush.sgml + * debian/patches/pngcrush_relocate_warning: refreshed. + + -- Kapil Hari Paranjape Tue, 03 Mar 2009 10:26:04 +0530 + +pngcrush (1.6.13-1) unstable; urgency=low + + * New upstream release (1.6.13-nolib). + - debian/patches/fix_itxt_param_handling: patch + incorporated upstream so removed. + - incorporates newer libpng features. + - added "-time_stamp" command line directive to ensure + that output file has new timestamp. (Closes: #510491) + - see upstream changelog for further details. + * debian/patches/pngcrush_relocate_warning: refreshed. + * debian/pngcrush.sgml: add entry for "-time_stamp" command + line directive. + + -- Kapil Hari Paranjape Thu, 26 Feb 2009 14:29:29 +0530 + +pngcrush (1.6.7-1) unstable; urgency=low + + * New upstream release (1.6.7-nolib). + - Moved PNG_UINT_CHNK and some other defines from pngcrush.h to pngcrush.c + - Reject invalid color_type or bit_depth. (Closes: #453721) + * debian/patches/add_PNG_UINT_defs: patch removed as it is incorporated + upstream. + + -- Kapil Hari Paranjape Wed, 02 Jul 2008 12:25:49 +0530 + +pngcrush (1.6.6-1) unstable; urgency=low + + * New upstream release (1.6.6-nolib). + - added dSIG support + - non new gAMA chunk when writing sRGB chunk + * Add Makefile since upstream has dropped it. + - debian/patches/add_Makefile: patch adding the Makefile. + - debian/rules: add new rule "clean-source" to clean-up using + the Makefile. Make "clean" rule depend on this rule. + * debian/patches: + - fix_itxt_param_handling, pngcrush_relocate_warning: + patches refreshed + - png_export_pngcrush.diff, fix_Makefile: patches disabled + - add_PNG_UINT_defs: patch to add some definitions required + in pngcrush.c + * debian/pngcrush.sgml: + - commented out the "-cc" and "-no_cc" options which are + currently disabled upstream. Closes: #485497, #471162 + - expanded description of "Color Types" to indicate that some + conversions may not work as expected. Closes: #485501. + - documented "-keep" "-loco" and "-mng" options. Closes: #471159. + - fixed absence of caret (^) on man page. + * debian/control: + - Standards Version: 3.8.0. No other changes required. + - renamed XS-Vcs-Svn field to Vcs-Svn. + - moved Homepage from description to its own field. + + -- Kapil Hari Paranjape Wed, 11 Jun 2008 21:56:58 +0530 + +pngcrush (1.6.4-5) unstable; urgency=low + + * debian/control: Added XS-Vcs-Svn tag. + * debian/patches: + - fix_itxt_param_handling: pngcrush.c: itxt chunk may gobble 2 command line + parameters. Closes: #442631. + - replaced all Makefile patches with single patch fix_Makefile. + - fix_makefile: defined a new variable "DEFINES" to ease + compilation with Debian CFLAGS. + - series: re-ordered patches to make Debian specific patches lower. + - Refreshed all patches. + * debian/pngcrush.sgml: modify to note that -itxt command needs + "a" or "b" to be specified. + * debian/rules: + - run make during "build" with Debian CFLAGS. Closes: #443644. + - fix "clean" rule to catch errors from "make clean". + + -- Kapil Hari Paranjape Mon, 24 Sep 2007 16:19:55 +0530 + +pngcrush (1.6.4-4) unstable; urgency=low + + * debian/watch: fixed sourceforge url. + * debian/pngcrush.sgml: first line of synopsis now uses "infile + outfile" instead of list of files. Closes: #411028. + * debian/patches/pngcrush_relocate_warning: relocated warning about + different versions to verbose header. Closes: #203020. + * debian/control: changed all maintainer's email addresses. + + -- Kapil Hari Paranjape Sat, 4 Aug 2007 06:37:51 +0530 + +pngcrush (1.6.4-3) unstable; urgency=medium + + * debian/patches: + - add_png_itxt_support_to_Makefile.diff: substituted with + next patch + - add_defines_to_Makefile.diff: define PNG_iTXT_SUPPORTED + PNG_iCCP_SUPPORTED and PNGCRUSH_USE_LOCAL_ARRAYS during + compilation in Makefile. + - png_export_pngcrush.diff: use PNGCRUSH_USE_LOCAL_ARRAYS in + place of PNG_USE_LOCAL_ARRAYS to ensure the png_* arrays are + initialised during png_measure_idat() in pngcrush.c. + Closes: #401226, #401248. + - remove_libm_Makefile.diff: removed dependency on "libm". + Not NEEDED as pointed out by Christian Aichinger's scripts. + - add_png_read_data.diff: empty patch removed. + + -- Kapil Hari Paranjape Fri, 1 Dec 2006 07:11:18 +0530 + +pngcrush (1.6.4-2) unstable; urgency=low + + [ Nelson A. de Oliveira ] + * Really fix #328402 (missing -itxt option) by defining PNG_iTXt_SUPPORTED: + - added debian/patches/add_png_itxt_support_to_Makefile.diff + * Added watch file. + + [ Kapil Hari Paranjape ] + * Add reminder that above patch is not required after libpng 1.2.11. + + -- Kapil Hari Paranjape Thu, 20 Jul 2006 08:58:41 +0530 + +pngcrush (1.6.4-1) unstable; urgency=low + + * New upstream release (Closes: #374080); + * Removed debian/patches/trns_array.diff (applied upstream); + * New patch debian/patches/png_export_pngcrush.diff. + + -- Nelson A. de Oliveira Sat, 17 Jun 2006 17:12:04 -0300 + +pngcrush (1.6.3-1) unstable; urgency=low + + * New upstream release. + * Use quilt to manage the patches. + * Really fix typos in debian/pngcrush.sgml. Thanks to A. Costa. + Closes: #337186. + * Fix reading in and use of 'trns_array' values as + suggested by MichaƂ Politowski. Closes: #201195. + * Bumped Standards-Version to 3.7.2 (no changes needed). + * Added Nelson A. de Oliveira to Uploaders. + + -- Kapil Hari Paranjape Fri, 12 May 2006 15:58:07 +0530 + +pngcrush (1.6.2-1) unstable; urgency=low + + * New Maintainer Closes: #353392 + * New upstream release. + - The options -itxt and -ztxt are supported. + Closes: #328402. + - Versions of png.c and png.h match. Closes: #203020, #289061. + * Builds against current version of libpng12-dev. + Closes: #331068, #338659, #355693, #352177, #330026, #223429. + * Build uses some internal replacements for "PRIVATE" + routines from "libpng" as provided by upstream author. + * Fixed typos in debian/pngcrush.sgml. + Closes: #337186. + * Fixed order in SYNOPSIS section of man page. + Closes: #275742. + * Added note to man page that "-cc" option is currently + disabled. Closes: #158932, #275744. + * Corrected description of "text chunks" in man + page. Closes: #328401. + * Updated Standards Version to 3.6.2 + * Using debhelper compatibility version 5. + + -- Kapil Hari Paranjape Wed, 22 Mar 2006 20:20:46 +0530 + +pngcrush (1.5.10-2) unstable; urgency=low + + * Fix FTBFS due to definition name change. + pngcrush.c : rename HANDLE_CHUNK_ALWAYS, HANDLE_CHUNK_IF_SAFE and + HANDLE_CHUNK_NEVER to PNG_HANDLE_CHUNK_ALWAYS, PNG_HANDLE_CHUNK_IF_SAFE + and PNG_HANDLE_CHUNK_NEVER respectively. Fix by + David Kimdon . (closes: #280245) + + -- Aaron Lehmann Sat, 13 Nov 2004 22:43:49 -0800 + +pngcrush (1.5.10-1) unstable; urgency=low + + * New upstream release. + + -- Aaron Lehmann Sun, 21 Jul 2002 03:22:19 -0700 + +pngcrush (1.5.9-0.1) unstable; urgency=low + + * NMU. + * New upstream release. (Closes: #140226) + + Update control file to fix spelling error. (Closes: #125256) + + Update URL of PNG documentation. (Closes: #121753) + * Enabled -cc option. (Closes: #114394) + * Updated build dependency to build against latest libpng-dev. + * This should close all outstanding bugs in pngcrush. + + -- Chris Lawrence Fri, 12 Jul 2002 01:10:36 -0500 + +pngcrush (1.5.5-3) unstable; urgency=low + + * Rebuild against new png library to remove runtime warning. (Closes: #106907) + + -- Aaron Lehmann Thu, 2 Aug 2001 18:12:09 -0700 + +pngcrush (1.5.5-2) unstable; urgency=low + + * Do not install INSTALL.txt (Closes: #101360) + * Use $(CURDIR) instead of `pwd` in Makefiles (Closes: #101359) + * Bump Standards-Version (Closes: #101358) + * In accordance with policy, handle DEB_BUILD_OPTIONS. Only debug has + to be handled, as nostrip is taken care of by dh_strip automatically. + + -- Aaron Lehmann Wed, 20 Jun 2001 02:25:17 -0700 + +pngcrush (1.5.5-1) unstable; urgency=low + + * New upstream version + + -- Aaron Lehmann Sun, 10 Jun 2001 11:48:32 -0700 + +pngcrush (1.5.4-1) unstable; urgency=low + + * New upstream version + * Fix minor syntax errors in SGML documentation + + -- Aaron Lehmann Mon, 30 Apr 2001 16:55:54 -0700 + +pngcrush (1.5.3-1) unstable; urgency=low + + * New upstream release + + -- Aaron Lehmann Sat, 16 Dec 2000 02:03:57 -0800 + +pngcrush (1.5.1-6) unstable; urgency=low + + * Fix typo in startup message (closes: #77924) + + -- Aaron Lehmann Mon, 27 Nov 2000 08:52:46 -0800 + +pngcrush (1.5.1-5) unstable; urgency=low + + * Update manual page + + -- Aaron Lehmann Sat, 18 Nov 2000 19:10:17 -0800 + +pngcrush (1.5.1-4) unstable; urgency=low + * Add Build-Depends (closes: #77178) + + -- Aaron Lehmann Thu, 16 Nov 2000 08:15:41 -0800 + +pngcrush (1.5.1-3) unstable; urgency=high + * Redo the packaging AGAIN. There was some unfortunate duplication of effort which caused this to be packaged twice. Anyway, David Whedon 's packaging was superior, so I'm going with that. + * Fix license confusion + + -- Aaron Lehmann Mon, 13 Nov 2000 11:17:48 -0700 + +pngcrush (1.5.1-2) unstable; urgency=low + + * Manpage courtesy of Roland Rosenfeld (closes: #76778) + * Use debhelper + + -- Aaron Lehmann Sat, 11 Nov 2000 16:55:33 -0700 + +pngcrush (1.5.1-1) unstable; urgency=low + + * Initial release. + + -- Aaron Lehmann Mon, 18 Sep 2000 18:23:37 -0700 + +Local variables: +mode: debian-changelog +End: --- pngcrush-1.6.17.orig/debian/copyright +++ pngcrush-1.6.17/debian/copyright @@ -0,0 +1,46 @@ +This package was debianized by Aaron Lehmann aaronl@vitelus.com on +Mon, 18 Sep 2000 18:23:37 -0700. + +It was downloaded from http://pmt.sourceforge.net/pngcrush/ + +Upstream Author: Glenn Randers-Pehrson + +Copyright: + +/* + * COPYRIGHT NOTICE, DISCLAIMER, AND LICENSE: + * + * If you have modified this source, you may insert additional notices + * immediately after this sentence. + * + * Copyright (C) 1998-2002,2006-2009 Glenn Randers-Pehrson + * (glennrp@users.sf.net) + * Copyright (C) 2005 Greg Roelofs + * + * The pngcrush computer program is supplied "AS IS". The Author disclaims all + * warranties, expressed or implied, including, without limitation, the + * warranties of merchantability and of fitness for any purpose. The + * Author assumes no liability for direct, indirect, incidental, special, + * exemplary, or consequential damages, which may result from the use of + * the computer program, even if advised of the possibility of such damage. + * There is no warranty against interference with your enjoyment of the + * computer program or against infringement. There is no warranty that my + * efforts or the computer program will fulfill any of your particular purposes + * or needs. This computer program is provided with all faults, and the entire + * risk of satisfactory quality, performance, accuracy, and effort is with + * the user. + * + * Permission is hereby irrevocably granted to everyone to use, copy, modify, + * and distribute this source code, or portions hereof, or executable programs + * compiled from it, for any purpose, without payment of any fee, subject to + * the following restrictions: + * + * 1. The origin of this source code must not be misrepresented. + * + * 2. Altered versions must be plainly marked as such and must not be + * misrepresented as being the original source. + * + * 3. This Copyright notice, disclaimer, and license may not be removed + * or altered from any source or altered source distribution. + */ + --- pngcrush-1.6.17.orig/debian/compat +++ pngcrush-1.6.17/debian/compat @@ -0,0 +1 @@ +5 --- pngcrush-1.6.17.orig/debian/control +++ pngcrush-1.6.17/debian/control @@ -0,0 +1,19 @@ +Source: pngcrush +Section: graphics +Priority: optional +Maintainer: Kapil Hari Paranjape +Uploaders: Nelson A. de Oliveira +Build-Depends: debhelper (>= 5), quilt, docbook-to-man, libpng12-dev, zlib1g-dev +Vcs-Svn: svn://svn.debian.org/svn/collab-maint/deb-maint/pngcrush/ +Standards-Version: 3.8.1 +Homepage: http://pmt.sourceforge.net/pngcrush/ + +Package: pngcrush +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: optimizes PNG (Portable Network Graphics) files + Pngcrush is an optimizer for PNG (Portable Network Graphics) files. + Its main purpose is to reduce the size of the PNG IDAT data stream by trying + various compression levels and PNG filter methods. It also can be used to + remove unwanted ancillary chunks, or to add certain chunks including gAMA, + tRNS, and textual chunks. --- pngcrush-1.6.17.orig/debian/watch +++ pngcrush-1.6.17/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/pmt/pngcrush-([\d\.]+)-nolib\.tar\.gz debian uupdate --- pngcrush-1.6.17.orig/debian/patches/patch_Makefile +++ pngcrush-1.6.17/debian/patches/patch_Makefile @@ -0,0 +1,80 @@ +Upstream's makefile does not work for us! + +Index: pngcrush/Makefile +=================================================================== +--- pngcrush.orig/Makefile 2006-03-31 07:09:16.000000000 +0530 ++++ pngcrush/Makefile 2009-06-03 06:52:40.000000000 +0530 +@@ -10,14 +10,16 @@ + + # macros -------------------------------------------------------------------- + +-GAS_VERSION := $(shell as --version | grep "GNU assembler" | sed -e 's/GNU assembler //' -e 's/ .*//') ++GAS_VERSION := $(shell as --version | sed -n -e's/GNU assembler (.*) //p') + + # uncomment these 2 lines only if you are using an external copy of libpng: +-PNGINC = /usr/local/include +-PNGLIB = /usr/local/lib ++#PNGINC = /usr/local/include ++#PNGLIB = /usr/local/lib + # uncomment these 2 lines only if you are using an external copy of zlib: +-ZINC = /usr/local/include +-ZLIB = /usr/local/lib ++#ZINC = /usr/local/include ++#ZLIB = /usr/local/lib ++ ++PNGINC = /usr/include + + CC = gcc + LD = gcc +@@ -25,19 +27,23 @@ + #CFLAGS = -I. -O -Wall + #CFLAGS = -I. -O3 -fomit-frame-pointer -Wall -DPNG_USE_PNGGCCRD + # CFLAGS = -I. -O3 -fomit-frame-pointer -Wall -DPNG_USE_PNGGCCRD \ +- -DGAS_VERSION="\"${GAS_VERSION}\"" +-CFLAGS = -I${ZINC} -I. -g -O3 -fomit-frame-pointer -Wall -DPNG_USE_PNGGCCRD \ + # -DGAS_VERSION="\"${GAS_VERSION}\"" ++CFLAGS = -I${ZINC} -I. -g -O3 -fomit-frame-pointer -Wall + # [note that -Wall is a gcc-specific compilation flag ("all warnings on")] + LDFLAGS = + O = .o + E = + ++# additional defines ++DEFINES = -DPNG_USE_PNGGCCRD -DPNG_iCCP_SUPPORTED \ ++ -DPNG_iTXt_SUPPORTED -DPNG_USE_GLOBAL_ARRAYS \ ++ -DGAS_VERSION="\"${GAS_VERSION}\"" \ ++ + PNGCRUSH = pngcrush + + # LIBS = -lm +-LIBS = -L$(PNGLIB) -lpng -lz -lm +-# LIBS = -lpng -lz -lm ++#LIBS = -L$(PNGLIB) -lpng -lz -lm ++LIBS = -lpng -lz + #LIBS = ${ZLIB}/libz.a -lm + + # uncomment these 4 lines only if you are NOT using an external copy of zlib: +@@ -57,8 +63,10 @@ + + # implicit make rules ------------------------------------------------------- + ++#.c$(O): png.h cexcept.h $(ZHDR) ++# $(CC) -c $(CFLAGS) $< + .c$(O): png.h cexcept.h $(ZHDR) +- $(CC) -c $(CFLAGS) $< ++ $(CC) -c $(CFLAGS) $(DEFINES) $< + #.c$(O): png.h pngconf.h pngcrush.h cexcept.h $(ZHDR) + # $(CC) -c $(CFLAGS) $< + +@@ -70,8 +78,10 @@ + png.h: + ln -s $(PNGINC)/png.h png.h + ++#pngcrush$(O): pngcrush.c cexcept.h ++# $(CC) -c $(CFLAGS) $< + pngcrush$(O): pngcrush.c cexcept.h +- $(CC) -c $(CFLAGS) $< ++ $(CC) -c $(CFLAGS) $(DEFINES) $< + # pngcrush$(O): pngcrush.c png.h pngconf.h pngcrush.h cexcept.h $(ZHDR) + # $(CC) -c $(CFLAGS) $< + --- pngcrush-1.6.17.orig/debian/patches/pngcrush_relocate_warning +++ pngcrush-1.6.17/debian/patches/pngcrush_relocate_warning @@ -0,0 +1,34 @@ +Debian users would prefer that the warning only be show if there is a +verbose option. + +Index: pngcrush-1.6.17/pngcrush.c +=================================================================== +--- pngcrush-1.6.17.orig/pngcrush.c 2009-05-07 23:05:27.000000000 +0530 ++++ pngcrush-1.6.17/pngcrush.c 2009-06-02 23:13:26.000000000 +0530 +@@ -2093,13 +2093,6 @@ + do_color_count = do_color_count; /* silence compiler warning */ + #endif + +- if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING)) { +- fprintf(STDERR, +- "Warning: versions are different between png.h and png.c\n"); +- fprintf(STDERR, " png.h version: %s\n", PNG_LIBPNG_VER_STRING); +- fprintf(STDERR, " png.c version: %s\n\n", png_libpng_ver); +- } +- + t_start = (TIME_T) clock(); + + strncpy(prog_string, argv[0], STR_BUF_SIZE); +@@ -6065,6 +6058,12 @@ + PNGCRUSH_VERSION, progname, PNG_LIBPNG_VER_STRING, + png_get_header_version(NULL), ZLIB_VERSION); + ++ if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING)) { ++ fprintf(STDERR, "|| Warning: versions are different between png.h and png.c\n"); ++ fprintf(STDERR, "|| png.h version: %s\n", PNG_LIBPNG_VER_STRING); ++ fprintf(STDERR, "|| png.c version: %s\n\n", png_libpng_ver); ++ } ++ + #if defined(__GNUC__) + fprintf(STDERR, + " | It was compiled with gcc version %s", __VERSION__); --- pngcrush-1.6.17.orig/debian/patches/series +++ pngcrush-1.6.17/debian/patches/series @@ -0,0 +1,2 @@ +pngcrush_relocate_warning +patch_Makefile