--- png2html-1.1.orig/debian/rules +++ png2html-1.1/debian/rules @@ -0,0 +1,74 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Apply dpatches in order. +.NOTPARALLEL: + +CFLAGS = -g -Wall + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +# We override upstream's CFLAGS, where libraries are also specified, so +# we need to add them here. +CFLAGS += -lpng -lgd + +build: build-stamp + +build-stamp: patch + dh_testdir + + $(MAKE) all CFLAGS="$(CFLAGS)" + + touch build-stamp + +clean: clean-patched unpatch + +clean-patched: + dh_testdir + dh_testroot + rm -f build-stamp + + -$(MAKE) clean + + dh_clean + +patch: patch-stamp + +patch-stamp: + dpatch apply-all + touch patch-stamp + +unpatch: + dpatch deapply-all + rm -rf patch-stamp debian/patched + +install: build + dh_testdir + dh_testroot + dh_clean -k + + dh_install png2html usr/bin + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs CHANGES + dh_installdocs README + dh_installman debian/png2html.1 + 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 --- png2html-1.1.orig/debian/copyright +++ png2html-1.1/debian/copyright @@ -0,0 +1,39 @@ +This package was originally debianized by William Vera on +Wed, 23 Mar 2005 01:43:46 -0600. + +From Sep 2006 it is being maintained by Jack Grahams . + +It was downloaded from: http://www.engr.mun.ca/~holden/png2html.html + +Upstream Author: Geoff Holden + +Copyright (c) 1999 Geoff Holden + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software Foundation, +Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + +On Debian systems, the complete text of the GNU General Public +License, version 2, can be found in /usr/share/common-licenses/GPL-2. + +debian/png2html.1: + +(C) 2005 William Vera , with modifications +(C) 2006 Jack Grahams . + +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation. + +The Debian packaging, with exception to the above manpage, is (C) 2006, +Jack Grahams and is licensed under the GPL, see +above. --- png2html-1.1.orig/debian/compat +++ png2html-1.1/debian/compat @@ -0,0 +1 @@ +5 --- png2html-1.1.orig/debian/png2html.1 +++ png2html-1.1/debian/png2html.1 @@ -0,0 +1,39 @@ +.\"Created with GNOME Manpages Editor Wizard +.\"http://gmanedit.sourceforge.net +.\"Sergio Rua +.\" +.TH png2html 1 "March 26, 2005" "png2html" + +.SH NAME +png2html \- transforms a PNG image to a web page + +.SH SYNOPSIS +.B png2html +.RI "[ imagefile.png textfile.txt output.html compatibility ]" +.br +Where compatibility is either 0, 1 or 2 +.br +0 = Small Source, but uncompatibile with some browsers +.br +1 = Medium Size, works with almost anything. +.br +2 = Large Source, strict HTML. + +.SH DESCRIPTION +\fBpng2html\fP takes a PNG image and transforms it pixel by pixel to a web page, encoding each pixel as an appropriately coloured letter. +.br +It is decided which letter to encode each pixel as by using a text file supplied by the user. +.SH NOTES +This program assumes that 1 pixel should equal 1 character. +.br +But characters are taller than they are wide, so you may want to resize the image first, else the output image will be taller than the original. Resizing is also advisable as letters are larger than pixels. +.br +Setting the output file to be "-", will direct the output to stdout; setting the text file to "-" will cause the program to read from stdin. + + +.SH AUTHOR +Png2Html written by Geoff Holden +.br +This manual page was written by William Vera for the Debian system (but may be used by others) and has been updated by Jack Grahams . +.br +Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation. --- png2html-1.1.orig/debian/control +++ png2html-1.1/debian/control @@ -0,0 +1,17 @@ +Source: png2html +Section: graphics +Priority: extra +Maintainer: Jack Grahams +Build-Depends: debhelper (>= 5.0.0), dpatch, libgd2-noxpm-dev +Standards-Version: 3.7.2 + +Package: png2html +Architecture: any +Depends: ${shlibs:Depends} +Description: transforms a PNG image to a web page + Png2html takes a PNG image and transforms it pixel by pixel to a web page, + encoding each pixel as an appropriately coloured letter. It is decided which + letter to encode each pixel as by using a text file supplied by the user. An + example can be found on the project's homepage. + . + Homepage: http://www.geoffholden.com/content/projects/png2html/ --- png2html-1.1.orig/debian/changelog +++ png2html-1.1/debian/changelog @@ -0,0 +1,62 @@ +png2html (1.1-5build1) saucy; urgency=low + + * Rebuild for libgd3. + + -- Colin Watson Mon, 20 May 2013 00:30:07 +0100 + +png2html (1.1-5) unstable; urgency=low + + * New maintainer (Closes: #387477). + * Removed broken URLs and rewrote package descriptions in debian/control + and png2html.1 manpage (Closes: #388602). + * Added notes about using stdin/stdout for input/output for png2html to + png2html.1 manpage, added some clarification, and updated authors. + * Updated Debian Policy to 3.7.2. + * Corrected copyright in debian/copyright. + * Switched packaging to dpatch. + * debian/rules: + - Added dpatch targets, and .NOTPARALLEL flag. + - Added dh_installdocs and dh_installman file locations. + - Removed redundant dh_* templates, and tidied up file. + - Added correct CFLAGS override. + - Switched install method from patched Makefile to dh_install. + * Set debhelper compatibility level to 5. + * Removed now redundant debian/ files: dirs, docs, manpages. + * Removed duplicate copy of png2html.1 manpage. + * Incorporated NMU fixes from 1.1-4.1 (Closes: #343915, #335659). + * 01_truecolorfix - patches png2html.c to use gdImageRed etc. macros + to support truecolor images - sent to upstream (Closes: #338971). + + -- Jack Grahams Sat, 23 Sep 2006 02:39:18 +0100 + +png2html (1.1-4.1) unstable; urgency=high + + * Non-maintainer upload. + * Update gd2 build-dep to libgd2-noxpm-dev (Closes: #343915, #335659). + + -- Luk Claes Sat, 31 Dec 2005 15:37:21 +0100 + +png2html (1.1-4) unstable; urgency=low + + * Migrate the build-depend to libgd-dev version 2 (Closes: #314317) + + -- William Vera Sun, 18 Sep 2005 22:03:08 -0500 + +png2html (1.1-3) unstable; urgency=low + + * Removed dependency on libgd-dev (Closes: #304010). + + -- William Vera Sun, 10 Apr 2005 20:25:19 -0500 + +png2html (1.1-2) unstable; urgency=low + + * Fixed maintainer's email address + * Fixed priority (graphics - extra) + + -- William Vera Fri, 8 Apr 2005 21:44:31 -0500 + +png2html (1.1-1) unstable; urgency=low + + * Initial Release (Closes:#301585). + + -- William Vera Wed, 23 Mar 2005 01:43:46 -0600 --- png2html-1.1.orig/debian/patches/00list +++ png2html-1.1/debian/patches/00list @@ -0,0 +1 @@ +01_truecolorfix --- png2html-1.1.orig/debian/patches/01_truecolorfix.dpatch +++ png2html-1.1/debian/patches/01_truecolorfix.dpatch @@ -0,0 +1,23 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_truecolorfix.dpatch by Jack Grahams +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fixes segfault on truecolor images, Bug #338971. Patch sent upstream. + +@DPATCH@ +diff -urNad png2html-1.1~/png2html.c png2html-1.1/png2html.c +--- png2html-1.1~/png2html.c 1999-11-13 22:42:36.000000000 +0000 ++++ png2html-1.1/png2html.c 2006-09-23 17:17:21.000000000 +0100 +@@ -96,9 +96,9 @@ + for (y=0;yred[c]; +- g1 = im->green[c]; +- b1 = im->blue[c]; ++ r1 = gdImageRed(im, c); ++ g1 = gdImageGreen(im, c); ++ b1 = gdImageBlue(im, c); + if ((r1 != r2) || (g1 != g2) || (b1 != b2)) { + if (code != 0) + if (needclosefont) {