--- jp2a-1.0.6.orig/debian/compat +++ jp2a-1.0.6/debian/compat @@ -0,0 +1 @@ +7 --- jp2a-1.0.6.orig/debian/README.source +++ jp2a-1.0.6/debian/README.source @@ -0,0 +1,2 @@ +This package uses dpatch to fix some errors. +To know more about dpatch see /usr/share/doc/dpatch/README.source.gz file. --- jp2a-1.0.6.orig/debian/watch +++ jp2a-1.0.6/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/jp2a/jp2a-(.*)\.tar\.gz --- jp2a-1.0.6.orig/debian/rules +++ jp2a-1.0.6/debian/rules @@ -0,0 +1,70 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +# export DH_VERBOSE=1 + +include /usr/share/dpatch/dpatch.make + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +config.status: configure + dh_testdir +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" + +build: build-stamp + +build-stamp: config.status + dh_testdir + $(MAKE) + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp config.guess config.sub + if [ -e Makefile ]; then $(MAKE) distclean; fi + dh_clean + +install: build patch-stamp + dh_testdir + dh_testroot + dh_prep + dh_installdirs + $(MAKE) DESTDIR=$(CURDIR)/debian/jp2a install + +binary: binary-arch + +binary-arch: install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs debian/README.source + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-indep: + +.PHONY: build clean binary-indep binary-arch binary install --- jp2a-1.0.6.orig/debian/changelog +++ jp2a-1.0.6/debian/changelog @@ -0,0 +1,49 @@ +jp2a (1.0.6-3) unstable; urgency=low + + * Added patch directory and patch 01 to fix man page. + * Updated debhelper version from 5 to 7. + * Used dpatch to manage patches. + + * debian/control: + - Added libncurses5-dev to Build-Depends field to avoid a warning from + configure script. + - Updated Standards-Version from 3.7.2 to 3.8.3. + - Updated Vcs-Svn and Vcs-Browser from debian-br-team/unstable/jp2a to + debian-br-team/packages/jp2a. + + * debian/copyright: + - Changed, in packaging copyright information, from the expression "(C)" + to word "Copyright". + - Updated path of the local GPL text. + - Updated packaging copyright from 2007 to 2007-2009. + + * debian/docs: + - Removed. The README file tells about program compilation. The + man/jp2a.html file has the same content of the man page. + + * debian/rules: + - Added /debian/README.source reference to dh_installdocs. + - Changed from "dh_clean -k" to "dh_prep" in install target. + - Removed comments about binary-indep and binary-arch. + - Removed build redundancy from binary-arch target. + - Removed binary-indep from binary target. + - Removed unused dh_installman from binary-arch target. + - Removed some whitespaces at end of lines. + + -- Joao Eriberto Mota Filho Tue, 25 Aug 2009 13:07:46 -0300 + +jp2a (1.0.6-2) unstable; urgency=low + + * Fixed debian/rules to don't ignore make clean errors. + * Changed XS-X-Vcs-Svn to Vcs-Svn in debian/control. + * Added Homepage and Vcs-Browser fields in debian/control. + * Added Screenshot in long description. + * Removed NEWS from debian/docs. + + -- Joao Eriberto Mota Filho Sun, 09 Sep 2007 12:09:26 -0300 + +jp2a (1.0.6-1) unstable; urgency=low + + * Initial release (Closes: #409639) + + -- Joao Eriberto Mota Filho Fri, 16 Mar 2007 11:40:04 -0300 --- jp2a-1.0.6.orig/debian/copyright +++ jp2a-1.0.6/debian/copyright @@ -0,0 +1,39 @@ +This package was debianized by Joao Eriberto Mota Filho + on Fri, 16 Mar 2007 11:40:04 -0300. + +It was downloaded from http://sourceforge.net/projects/jp2a + +Upstream Author: Christian Stigen Larsen + +Copyright: 2006, Christian Stigen Larsen + +License: + + This package 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 package 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 package; 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 can be found in `/usr/share/common-licenses/'. + +jp2a uses some libraries and the source distribution does not include any +source-code from these. However, the win32 version comes with precompiled +library files. Please see bellow where to find those licenses: + + - JPEG library: /usr/share/doc/libjpeg62; + - libcurl: /usr/share/doc/libcurl4; + - zlib.dll (for win32 binary distribution): http://www.zlib.org; + - OpenSSL binaries (for win32 binary distribution): http://www.openssl.org. + +The Debian packaging is Copyright 2007-2009, Joao Eriberto Mota Filho + and is licensed under the GPL2 or later. --- jp2a-1.0.6.orig/debian/control +++ jp2a-1.0.6/debian/control @@ -0,0 +1,18 @@ +Source: jp2a +Section: graphics +Priority: optional +Maintainer: Joao Eriberto Mota Filho +Build-Depends: debhelper (>= 7), autotools-dev, libjpeg62-dev, libcurl4-dev, libncurses5-dev, dpatch +Standards-Version: 3.8.3 +Vcs-Svn: svn://svn.debian.org/svn/debian-br-team/packages/jp2a +Vcs-Browser: http://svn.debian.org/wsvn/debian-br-team/packages/jp2a +Homepage: http://csl.sublevel3.org/jp2a + +Package: jp2a +Architecture: any +Depends: ${shlibs:Depends} +Description: converts jpg images to ascii + Small utility that converts JPG images to ASCII using libjpeg. + jp2a is very flexible. It can use ANSI colors and html in output. + . + Screenshot: http://www.eriberto.pro.br/debian/screenshots/jp2a.jpg --- jp2a-1.0.6.orig/debian/patches/00list +++ jp2a-1.0.6/debian/patches/00list @@ -0,0 +1 @@ +01-fix_man_page.dpatch --- jp2a-1.0.6.orig/debian/patches/01-fix_man_page.dpatch +++ jp2a-1.0.6/debian/patches/01-fix_man_page.dpatch @@ -0,0 +1,69 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01-fix_man_page.dpatch by Joao Eriberto Mota Filho (eriberto) +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix mistakes in upstream man page. + +@DPATCH@ +diff -urNad jp2a-1.0.6~/man/jp2a.1 jp2a-1.0.6/man/jp2a.1 +--- jp2a-1.0.6~/man/jp2a.1 2006-09-04 08:49:46.000000000 -0300 ++++ jp2a-1.0.6/man/jp2a.1 2009-08-25 21:00:55.000000000 -0300 +@@ -19,7 +19,7 @@ + .TP + .B \-\-background=light \-\-background=dark + If you don't want to mess with \-\-invert all the time, just use these instead. +-If you are using white characters on a black display, then use --background=dark, ++If you are using white characters on a black display, then use \-\-background=dark, + and vice versa. + .TP + .B \-b \-\-border +@@ -27,7 +27,7 @@ + .TP + .BI \-\-chars= ... + Use the given characters when producing the output ASCII image. Default is " ...',;:clodxkO0KXNWM". +-.Tp ++.TP + .BI \-\-colors + Use ANSI color for text output and CSS color for HTML output. + .TP +@@ -50,11 +50,11 @@ + When used with \-\-html and \-\-color, then color each output character's background color. For instance, + if you want to use fill-output on a light background, do + +-jp2a --color --html --html-fill --background=light somefile.jpg --output=dark.html ++jp2a \-\-color \-\-html \-\-html-fill \-\-background=light somefile.jpg \-\-output=dark.html + + To do the same on a light background: + +-jp2a --color --html --html-fill --background=dark somefile.jpg --output=light.html ++jp2a \-\-color \-\-html \-\-html-fill \-\-background=dark somefile.jpg \-\-output=light.html + + The default is to have fill disabled. + .TP +@@ -65,7 +65,7 @@ + Flip output image vertically + .TP + .BI \-\-height= N +-Set output height. If only --height is specified, then output width will ++Set output height. If only \-\-height is specified, then output width will + be calculated according to the source images aspect ratio. + .TP + .B \-h \-\-help +@@ -142,7 +142,7 @@ + Output picture.jpg and picture2.jpg, each 80x25 characters, using the characters " ...ooxx@@" for output: + .PP + .B jp2a +-\-\-size=80x25 --chars=" ...ooxx@@" picture.jpg picture2.jpg ++\-\-size=80x25 \-\-chars=" ...ooxx@@" picture.jpg picture2.jpg + .PP + Output image.jpg using 76 columns, height is automatically calculated from aspect ratio of image.jpg + .PP +@@ -188,7 +188,7 @@ + You can extract the red channel by doing this: + + .B jp2a +-somefile.jpg --red=1.0 --green=0.0 --blue=0.0 ++somefile.jpg \-\-red=1.0 \-\-green=0.0 \-\-blue=0.0 + + This will calculate luminance based on Y = R*1.0 + G*0.0 + B*0.0. The default + values is to use Y = R*0.2989 + G*0.5866 + B*0.1145.