--- pngnq-1.0.orig/debian/changelog +++ pngnq-1.0/debian/changelog @@ -0,0 +1,94 @@ +pngnq (1.0-2.3) unstable; urgency=medium + + * Non-maintainer upload. + * Replace patch libpng16.patch with pngnq-1.1.patch, taken from the upstream + bug https://sourceforge.net/p/pngnq/patches/5/, to fix the support for + libpng >= 1.5. (Closes: #826797) + + -- Pino Toscano Sat, 06 Aug 2016 10:00:38 +0200 + +pngnq (1.0-2.2) unstable; urgency=medium + + * Non-maintainer upload. + [ Andreas Moog ] + * Update fix-linker-libs.patch to allow building with --as-needed + (LP: #770821, Closes: #634220) + + [ Jay R. Wren ] + * Update homepage + * Update std-version to 3.9.6, no changes required. + + -- Gianfranco Costamagna Thu, 28 Jan 2016 14:16:18 +0100 + +pngnq (1.0-2.1) unstable; urgency=medium + + * Non-maintainer upload. + * Fix "FTBFS with libpng 1.5", adding missing include to zlib.h + (Closes: #641889) + * Change B-D to libpng-dev (Closes: #662473) + + -- Tobias Frost Sun, 24 Jan 2016 12:09:13 +0100 + +pngnq (1.0-2) unstable; urgency=low + + * Fix FTBFS with binutils-gold (Closes: #556065): + - New patch debian/patches/fix-linker-libs.patch + + -- Nelson A. de Oliveira Fri, 13 Nov 2009 19:28:00 -0200 + +pngnq (1.0-1) unstable; urgency=low + + * New upstream release; + * Updated watch file; + * Updated Standards-Version to 3.8.3 (no changes needed). + + -- Nelson A. de Oliveira Sun, 11 Oct 2009 16:51:42 -0300 + +pngnq (0.5-3) unstable; urgency=low + + * Fix segmentation fault when printing the version number (Closes: #491860). + Thanks Johan Thelmén! + * Bumped Standards-Version to 3.8.0 (no changes needed); + * Using debhelper compat level 7. + + -- Nelson A. de Oliveira Fri, 25 Jul 2008 23:16:03 -0300 + +pngnq (0.5-2) unstable; urgency=low + + * Fix manpages typos (Closes: #470425). Thank you, A. Costa! + * Updated Standards-Version to 3.7.3 (no changes needed); + * Bumped debhelper compat level to 6. + + -- Nelson A. de Oliveira Tue, 11 Mar 2008 09:51:12 -0300 + +pngnq (0.5-1) unstable; urgency=low + + * New upstream release; + * Updated maintainer e-mail; + * Updated debian/control to use the new Homepage field; + * Updated copyright file. + + -- Nelson A. de Oliveira Wed, 28 Nov 2007 23:16:51 -0200 + +pngnq (0.4.1-1) unstable; urgency=low + + * New upstream release (Closes: #378148). + + -- Nelson A. de Oliveira Sat, 15 Jul 2006 00:24:51 -0300 + +pngnq (0.3-2) unstable; urgency=low + + * Fix FTBFS (Closes: #374363); + * Updated debian/copyright file; + * Bumped Standards-Version to 3.7.2 (no changes needed); + * Using debhelper compatibility level 5; + * Added a space before Homepage: on the package long description. + + -- Nelson A. de Oliveira Sun, 18 Jun 2006 20:08:49 -0300 + +pngnq (0.3-1) unstable; urgency=low + + * Initial release (Closes: #334779). + + -- Nelson A. de Oliveira Wed, 19 Oct 2005 18:37:18 -0200 + --- pngnq-1.0.orig/debian/compat +++ pngnq-1.0/debian/compat @@ -0,0 +1 @@ +7 --- pngnq-1.0.orig/debian/control +++ pngnq-1.0/debian/control @@ -0,0 +1,22 @@ +Source: pngnq +Section: graphics +Priority: optional +Maintainer: Nelson A. de Oliveira +Build-Depends: cdbs, debhelper (>= 7), libpng-dev, zlib1g-dev +Standards-Version: 3.9.6 +Homepage: http://pngnq.sourceforge.net + +Package: pngnq +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: tool for optimizing PNG (Portable Network Graphics) images + Pngnq is a tool for quantizing 32-bit RGBA PNG images to 8-bit RGBA pallete + PNG. It's is an adaptation by Stuart Coyle of Greg Roelf's pnqquant. While + pngquant uses a median cut algorithm, Pngnq uses Anthony Dekker's neuquant + algorithm (http://members.ozemail.com.au/~dekker/NEUQUANT.HTML), generally + resulting in better looking results than pngquant. + . + Optimizers (like pngcrush and optipng) optimize the compression, usually + losslessly. pngnq quantizes colors down to 256 (or fewer) distinct RGBA + combinations, which is quite lossy. Optimized PNGs are usually two to four + times smaller than the 32-bit versions. --- pngnq-1.0.orig/debian/copyright +++ pngnq-1.0/debian/copyright @@ -0,0 +1,92 @@ +This package was debianized by Nelson A. de Oliveira on +Tue, 11 Oct 2005 22:50:49 -0300. + +It was downloaded from http://www.cybertherial.com/pngnq/pngnq.html + +Copyright Holder: Stuart Coyle + +License: + + Copyright (c) 2004-2007 Stuart Coyle + + Copyright (c) 1998-2001 Greg Roelofs. All rights reserved. + + Copyright (C) 1989, 1991 by Jef Poskanzer. + + This software is provided "as is," without warranty of any kind, + express or implied. In no event shall the author or contributors + be held liable for any damages arising in any way from the use of + this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute + it freely, subject to the following restrictions: + + 1. Redistributions of source code must retain the above copyright + notice, disclaimer, and this list of conditions. + 2. Redistributions in binary form must reproduce the above copyright + notice, disclaimer, and this list of conditions in the documenta- + tion and/or other materials provided with the distribution. + 3. All advertising materials mentioning features or use of this + software must display the following acknowledgment: + + This product includes software developed by Greg Roelofs + and contributors for the book, "PNG: The Definitive Guide," + published by O'Reilly and Associates. + + --------------------------------------------------------------------------- + + NeuQuant Neural-Net Quantization Algorithm + + Copyright (c) 1994 Anthony Dekker + + NEUQUANT Neural-Net quantization algorithm by Anthony Dekker, 1994. + See "Kohonen neural networks for optimal colour quantization" + in "Network: Computation in Neural Systems" Vol. 5 (1994) pp 351-367. + for a discussion of the algorithm. + See also http://members.ozemail.com.au/~dekker/NEUQUANT.HTML + + Any party obtaining a copy of these files from the author, directly or + indirectly, is granted, free of charge, a full and unrestricted irrevocable, + world-wide, paid up, royalty-free, nonexclusive right and license to deal + in this software and documentation files (the "Software"), including without + limitation the rights to use, copy, modify, merge, publish, distribute, + sublicense, and/or sell copies of the Software, and to permit persons who + receive copies from any such party to do so, with the only requirement being + that this copyright notice remain intact. + + + --------------------------------------------------------------------------- + +Free Getopt +Copyright (c)2002-2003 Mark K. Kim +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + + * Neither the original author of this software nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS +OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED +AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF +THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. --- pngnq-1.0.orig/debian/dirs +++ pngnq-1.0/debian/dirs @@ -0,0 +1 @@ +usr/bin --- pngnq-1.0.orig/debian/docs +++ pngnq-1.0/debian/docs @@ -0,0 +1,2 @@ +README +NEWS --- pngnq-1.0.orig/debian/manpages +++ pngnq-1.0/debian/manpages @@ -0,0 +1,2 @@ +debian/pngcomp.1 +pngnq.1 --- pngnq-1.0.orig/debian/patches/fix-linker-libs.patch +++ pngnq-1.0/debian/patches/fix-linker-libs.patch @@ -0,0 +1,25 @@ +diff -Nur -x '*.orig' -x '*~' pngnq-1.0/src/Makefile.am pngnq-1.0.new/src/Makefile.am +--- pngnq-1.0/src/Makefile.am 2009-05-20 12:04:15.000000000 +0000 ++++ pngnq-1.0.new/src/Makefile.am 2009-11-13 20:53:12.000000000 +0000 +@@ -1,4 +1,6 @@ +-AM_LDFLAGS = ${shell libpng-config --ldflags} -lz ++AM_LDFLAGS = ${shell libpng-config --ldflags} -lz -lm ++pngnq_LDADD = ${shell libpng-config --libs} -lz -lm ++pngcomp_LDADD = ${shell libpng-config --libs} -lz -lm + AM_CFLAGS = ${shell libpng-config --I_opts} -Wall --pedantic -std=gnu99 + + bin_PROGRAMS = pngnq pngcomp +diff -Nur -x '*.orig' -x '*~' pngnq-1.0/src/Makefile.in pngnq-1.0.new/src/Makefile.in +--- pngnq-1.0/src/Makefile.in 2009-06-20 11:25:38.000000000 +0000 ++++ pngnq-1.0.new/src/Makefile.in 2009-11-13 20:53:18.000000000 +0000 +@@ -147,7 +147,9 @@ + sharedstatedir = @sharedstatedir@ + sysconfdir = @sysconfdir@ + target_alias = @target_alias@ +-AM_LDFLAGS = ${shell libpng-config --ldflags} -lz ++AM_LDFLAGS = ${shell libpng-config --ldflags} -lz -lm ++pngnq_LDADD = ${shell libpng-config --libs} -lz -lm ++pngcomp_LDADD = ${shell libpng-config --libs} -lz -lm + AM_CFLAGS = ${shell libpng-config --I_opts} -Wall --pedantic -std=gnu99 + pngnq_SOURCES = pngnq.c neuquant32.c rwpng.c neuquant32.h rwpng.h errors.h + pngcomp_SOURCES = pngcomp.c rwpng.c colorspace.c colorspace.h --- pngnq-1.0.orig/debian/patches/pngnq-1.1.patch +++ pngnq-1.0/debian/patches/pngnq-1.1.patch @@ -0,0 +1,56 @@ +Author: Ryan Fogarty +Description: pngnq compile broken for libpng 1.5.X +Forwarded: https://sourceforge.net/p/pngnq/patches/5/ +Bug-Debian: https://bugs.debian.org/826797 + +--- pngnq-1.1-old/src/rwpng.c 2010-05-10 18:42:56.000000000 -0400 ++++ pngnq-1.1/src/rwpng.c 2012-04-09 10:44:16.384272887 -0400 +@@ -32,7 +32,6 @@ + #include + #include + +-#include "png.h" /* libpng header; includes zlib.h */ + #include "rwpng.h" /* typedefs, common macros, public prototypes */ + + /* future versions of libpng will provide this macro: */ +--- pngnq-1.1-old/src/rwpng.h 2010-05-10 18:42:56.000000000 -0400 ++++ pngnq-1.1/src/rwpng.h 2012-04-09 10:53:53.364767196 -0400 +@@ -29,6 +29,15 @@ + + ---------------------------------------------------------------------------*/ + ++#ifndef PNGNQ_RWPNG_H ++#define PNGNQ_RWPNG_H ++ ++#include ++ ++#if defined(PNG_LIBPNG_VER_MINOR) && PNG_LIBPNG_VER_MINOR >= 5 ++# include ++#endif ++ + #ifndef TRUE + # define TRUE 1 + # define FALSE 0 +@@ -65,9 +74,15 @@ + + typedef struct _mainprog_info { + double gamma; ++#if defined(PNG_LIBPNG_VER_MINOR) && PNG_LIBPNG_VER_MINOR >= 5 ++ png_uint_32 width; /* read/write */ ++ png_uint_32 height; /* read/write */ ++ png_uint_32 rowbytes; /* read */ ++#else + ulg width; /* read/write */ + ulg height; /* read/write */ + ulg rowbytes; /* read */ ++#endif + void *png_ptr; /* read/write */ + void *info_ptr; /* read/write */ + rwpng_color palette[256]; /* write */ +@@ -111,3 +126,6 @@ + int rwpng_write_image_row(mainprog_info *mainprog_ptr); + + int rwpng_write_image_finish(mainprog_info *mainprog_ptr); ++ ++#endif // PNGNQ_RWPNG_H ++ --- pngnq-1.0.orig/debian/patches/pngnq.1.patch +++ pngnq-1.0/debian/patches/pngnq.1.patch @@ -0,0 +1,35 @@ +diff -Nur -x '*.orig' -x '*~' pngnq-1.0/pngnq.1 pngnq-1.0.new/pngnq.1 +--- pngnq-1.0/pngnq.1 2009-05-20 09:05:52.000000000 -0300 ++++ pngnq-1.0.new/pngnq.1 2009-10-11 16:49:06.000000000 -0300 +@@ -22,15 +22,15 @@ + .B ] + .SH DESCRIPTION + .B pngnq +-Quantizes a 32-bit RGBA PNG image to an 8 bit RGBA palette PNG ++quantizes a 32-bit RGBA PNG image to an 8 bit RGBA palette PNG + using the neuquant algorithm. The output file name is the +-input file name extended with "-nq8.png" or a specified extension. ++input file name extended with "\-nq8.png" or a specified extension. + + .SH OPTIONS + .IP -v + Verbose mode. Prints status messages. + .IP -f +-Force ovewriting of files. ++Force overwriting of files. + .IP "-s sample factor" + Sample factor. The neuquant algorithm samples pixels stepping by this value. + The default value of 3 gives good results. Higher values sample less +@@ -44,9 +44,9 @@ + .IP "-g gamma" + Set the image gamma correction. If not present, uses the png file's gamma or defaults to 1.0. + .IP "-e extension" +-Specifies the new filename extension. Defaults to "-nq8.png". +-Pngnq drops .png from the original filenames. If you set the argument of the -e option +-to .png and choose the -f option the input file will be overwritten. ++Specifies the new filename extension. Defaults to "\-nq8.png". ++Pngnq drops .png from the original filenames. If you set the argument of the \-e option ++to .png and choose the \-f option the input file will be overwritten. + .IP "-d dir" + Tells pngnq to put output files in a directory other than the one the input files + are in. --- pngnq-1.0.orig/debian/pngcomp.1 +++ pngnq-1.0/debian/pngcomp.1 @@ -0,0 +1,31 @@ +.TH PNGCOMP 1 "Sat, 08 Jul 2006 00:54:16 -0300" +.SH NAME +pngcomp \- PNG (Portable Network Graphics) comparison tool +.SH SYNOPSIS +.B pngcomp +.RI "[-vVh] image1.png image2.png" +.SH DESCRIPTION +.B pngcomp +gives some basic statistics about the difference between two images. It was created as a measure of various color quantization methods. +.PP +.SH OPTIONS +.TP +.B \-v +Verbose, does nothing as yet. +.TP +.B \-V +Version, prints version information. +.TP +.B \-h +Help, prints this message. +.SH NOTES +The stats created by this program are purely based on the Euclidean distance in RGBA space between the pixels of the images. Later versions will include different measures such as CIE color space measurements and filters for perception models. + +The error calculation used reflects the perceived quality of images only roughly. + +To determine what image is better nothing can surpass having a look for yourself! +.SH AUTHOR +pngcomp was written by Stuart Coyle . +.PP +This manual page was written by Nelson A. de Oliveira , +for the Debian project (but may be used by others). --- pngnq-1.0.orig/debian/rules +++ pngnq-1.0/debian/rules @@ -0,0 +1,5 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/simple-patchsys.mk +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/autotools.mk --- pngnq-1.0.orig/debian/watch +++ pngnq-1.0/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/pngnq/pngnq-([\d\.]+)\.tar\.gz