--- giftrans-1.12.2.orig/debian/rules +++ giftrans-1.12.2/debian/rules @@ -0,0 +1,50 @@ +#!/usr/bin/make -f + +include /usr/share/quilt/quilt.make + +CFLAGS=-g -Wall -Werror -pedantic-errors -Wfatal-errors -Wwrite-strings \ + -ftrapv -fno-merge-constants -fstrict-aliasing +ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O2 +else + CFLAGS += -O0 +endif + +build: $(QUILT_STAMPFN) build-stamp +build-stamp: + dh_testdir + $(CC) $(CFLAGS) -ogiftrans giftrans.c + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + dh_install + +binary-indep: + +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installman + dh_installchangelogs + 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 unpatch --- giftrans-1.12.2.orig/debian/changelog +++ giftrans-1.12.2/debian/changelog @@ -0,0 +1,146 @@ +giftrans (1.12.2-14ubuntu1) intrepid; urgency=low + + * Sync with Debian unstable (LP: #241270), additional changes required. + * Patch giftrans.c to get result from fwrite. Fixes FTBFS with + warn_unused_result. + * Modify Maintainer value to match the DebianMaintainerField + specification. + + -- Iain Lane Tue, 24 Jun 2008 14:21:54 +0100 + +giftrans (1.12.2-14) unstable; urgency=medium + + * New maintainer (Closes: #485058). + * Rework packaging to use debhelper and quilt + - Fixes bashism in debian/rules (Closes: #478385) + - Stricter warnings when compiling + * Move debian/copyright to the machine-parsable format + * debian/control: + - Add debhelper and quilt to Build-Depends + - Add ${misc:Depends} to binary package Depends + - Bump Standards-Version to 3.8.0 + - Add Vcs-{Git,Browser} fields + + -- Chris Lamb Sun, 08 Jun 2008 04:08:16 +0100 + +giftrans (1.12.2-13ubuntu2) hardy; urgency=low + + * Replace xrgb with x11-common again, since xrgb is being removed from + the archive, and x11-common ships rgb.txt. + + -- Timo Aaltonen Tue, 20 Nov 2007 10:37:38 +0200 + +giftrans (1.12.2-13ubuntu1) gutsy; urgency=low + + * Merge from Debian unstable, remaining changes: + - Replace x11-common with xrgb (/etc/X11/rgb.txt is in the ubuntu + package xrgb instead of x11-common). + - Update maintainer field in debian/control. + + -- Michele Angrisano Mon, 13 Aug 2007 19:25:06 +0200 + +giftrans (1.12.2-13) unstable; urgency=low + + * Cope with DEB_BUILD_OPTIONS=nostrip. Closes: #436984 + * Remove postinst - /usr/doc is gone + * Update Standards-Version + + -- Steve McIntyre <93sam@debian.org> Sun, 12 Aug 2007 22:58:58 +0100 + +giftrans (1.12.2-12ubuntu1) edgy; urgency=low + + * Merge newer debian version, only change left: + - replace x11-common with xrgb (/etc/X11/rgb.txt is in the ubuntu + package xrgb instead of x11-common) + + -- Stefan Potyra Fri, 30 Jun 2006 03:38:18 +0200 + +giftrans (1.12.2-12) unstable; urgency=low + + * Update Depends: to cope with new xorg-provided x11-common. Closes: #362905 + * Updated to latest Standards-Version and fixed several lintian warnings. + + -- Steve McIntyre <93sam@debian.org> Wed, 26 Apr 2006 23:58:58 +0100 + +giftrans (1.12.2-11) unstable; urgency=low + + * Add a warning to the manpage about needing to escape # characters when + specifying colours. Closes: #270499. + * Updated to latest Standards-Version and fixed several lintian warnings. + + -- Steve McIntyre <93sam@debian.org> Sun, 12 Dec 2004 02:50:05 +0000 + +giftrans (1.12.2-10) unstable; urgency=low + + * Fix handling of gif files with local colour tables. Thanks to John + Lightsey for the patch! Closes: 20715 + * Updated to latest Standards-Version and fixed several lintian warnings. + + -- Steve McIntyre <93sam@debian.org> Tue, 22 Jul 2003 00:09:05 +0100 + +giftrans (1.12.2-9) unstable; urgency=low + + * Now depends on xfree86-common for rgb.txt instead of xserver-common. Closes: #129852 + + -- Steve McIntyre <93sam@debian.org> Fri, 18 Jan 2002 19:46:03 -0000 + +giftrans (1.12.2-8) unstable; urgency=low + + * Updated Standards-Version. + * Fixed lintian warnings. + * New Maintainer address. + + -- Steve McIntyre <93sam@debian.org> Sun, 13 Jan 2002 01:46:03 -0000 + +giftrans (1.12.2-7) unstable; urgency=low + + * Now depends on xserver-common for rgb.txt. Fixes: Bug#76197 + * Now copes with comments in rgb.txt. Thanks to Dave Carrigan for the patch. Fixes: Bug#76951 + + -- Steve McIntyre Tue, 16 May 2000 02:03:40 +0100 + +giftrans (1.12.2-6) unstable; urgency=low + + * Removed backup (*~) files - reduces diff size. Closes Bug#62601. + * Fixed several warnings from lintian + * FIxed two compilation warnings. + + -- Steve McIntyre Tue, 16 May 2000 02:03:40 +0100 + +giftrans (1.12.2-5) frozen unstable; urgency=low + + * Fixed shlibdeps problem. Fixes Bug #52324. + * Updated Standards-Version. + + -- Steve McIntyre Sun, 13 Feb 2000 16:03:40 +0000 + +giftrans (1.12.2-4) unstable; urgency=low + + * New (old) maintainer. See Bug#24341 for details. + + -- Steve McIntyre Sat, 11 Jul 1998 13:23:23 +0100 + +giftrans (1.12.2-3) unstable; urgency=low + + * Re-build, since previous uploads seem to have disappeared. No changes + to source except this changelog entry. + + -- Lars Wirzenius Wed, 8 Jul 1998 18:24:23 +0300 + +giftrans (1.12.2-2) unstable; urgency=low + + * Moved from /usr/X11R6 to /usr (I'd copied the script from a package + with X programs...). + * Compiled using glibc2. + + -- Lars Wirzenius Mon, 20 Oct 1997 05:19:23 +0300 + +giftrans (1.12.2-1) unstable; urgency=low + + * Converted to new Debian packaging format, using new upstream version + and Erick Branderhorst's (branderhorst@heel.fgg.eur.nl) old version. + * Moved from section non-free to unstable/graphics, because it is GPL'd, + and does not do any compression, so there is no need for it not to + be in the main part of the distribution. + + -- Lars Wirzenius Fri, 4 Jul 1997 22:10:05 +0300 --- giftrans-1.12.2.orig/debian/manpages +++ giftrans-1.12.2/debian/manpages @@ -0,0 +1 @@ +giftrans.1 --- giftrans-1.12.2.orig/debian/install +++ giftrans-1.12.2/debian/install @@ -0,0 +1 @@ +giftrans usr/bin --- giftrans-1.12.2.orig/debian/copyright +++ giftrans-1.12.2/debian/copyright @@ -0,0 +1,39 @@ +Author: Andreas Ley +Download: ftp://ftp.rz.uni-karlsruhe.de/pub/net/www/tools/giftrans/ + +Files: * +Copyright: (C) 1994 Andreas Ley +License: GPL-2+ + 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, see . + +Files: debian/* +Copyright: (C) 2008 Chris Lamb +License: GPL-2+ + 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, see . + +On Debian systems, the complete text of the GNU General Public License +can be found in the /usr/share/common-licenses/GPL-2 file. + +The GIF file format was designed by Compuserve. --- giftrans-1.12.2.orig/debian/control +++ giftrans-1.12.2/debian/control @@ -0,0 +1,16 @@ +Source: giftrans +Section: graphics +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Chris Lamb +Build-Depends: debhelper (>= 5), quilt +Standards-Version: 3.8.0 +Vcs-Git: git://git.chris-lamb.co.uk/pkg-giftrans.git +Vcs-Browser: http://git.chris-lamb.co.uk/?p=pkg-giftrans.git + +Package: giftrans +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, x11-common | xfree86-common +Description: Convert any GIF file into a GIF89a + Allows for setting the transparent or background color, changing colors, + adding or removing comments. Also code to analyze GIF contents. --- giftrans-1.12.2.orig/debian/prerm +++ giftrans-1.12.2/debian/prerm @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + +case "$1" in + upgrade|remove) + if -L /usr/doc/giftrans + then + rm -f /usr/doc/giftrans + fi + ;; +esac --- giftrans-1.12.2.orig/debian/compat +++ giftrans-1.12.2/debian/compat @@ -0,0 +1 @@ +5 --- giftrans-1.12.2.orig/debian/dirs +++ giftrans-1.12.2/debian/dirs @@ -0,0 +1 @@ +usr/bin --- giftrans-1.12.2.orig/debian/patches/13_check_file_access_result.diff +++ giftrans-1.12.2/debian/patches/13_check_file_access_result.diff @@ -0,0 +1,340 @@ +Index: giftrans-1.12.2/giftrans.c +=================================================================== +--- giftrans-1.12.2.orig/giftrans.c 2008-06-19 12:12:08.152671697 +0100 ++++ giftrans-1.12.2/giftrans.c 2008-06-19 12:16:13.844171848 +0100 +@@ -270,16 +270,17 @@ + size_t len; + { + unsigned char size; ++ size_t nbytes; + + while (len) { + size=len<256?len:255; +- (void)fwrite((void *)&size,1,1,dest); +- (void)fwrite((void *)data,(size_t)size,1,dest); ++ nbytes = fwrite((void *)&size,1,1,dest); ++ nbytes = fwrite((void *)data,(size_t)size,1,dest); + data+=size; + len-=size; + } + size=0; +- (void)fwrite((void *)&size,1,1,dest); ++ nbytes = fwrite((void *)&size,1,1,dest); + } + + +@@ -287,15 +288,16 @@ + FILE *src; + { + unsigned char size,buffer[256]; ++ size_t nbytes; + + do { + pos=ftell(src); +- (void)fread((void *)&size,1,1,src); ++ nbytes = fread((void *)&size,1,1,src); + if (debug) + dump(pos,&size,1); + if (debug) { + pos=ftell(src); +- (void)fread((void *)buffer,(size_t)size,1,src); ++ nbytes = fread((void *)buffer,(size_t)size,1,src); + dump(pos,buffer,(size_t)size); + } + else +@@ -309,19 +311,20 @@ + FILE *dest; + { + unsigned char size,buffer[256]; ++ size_t nbytes; + + pos=ftell(src); +- (void)fread((void *)&size,1,1,src); ++ nbytes = fread((void *)&size,1,1,src); + if (debug) + dump(pos,&size,1); + if (output) +- (void)fwrite((void *)&size,1,1,dest); ++ nbytes = fwrite((void *)&size,1,1,dest); + pos=ftell(src); +- (void)fread((void *)buffer,(size_t)size,1,src); ++ nbytes = fread((void *)buffer,(size_t)size,1,src); + if (debug) + dump(pos,buffer,(size_t)size); + if (output) +- (void)fwrite((void *)buffer,(size_t)size,1,dest); ++ nbytes = fwrite((void *)buffer,(size_t)size,1,dest); + } + + +@@ -329,13 +332,13 @@ + FILE *src; + { + unsigned char size,buffer[256]; +- size_t i; ++ size_t i,nbytes; + + pos=ftell(src); +- (void)fread((void *)&size,1,1,src); ++ nbytes = fread((void *)&size,1,1,src); + if (debug) + dump(pos,&size,1); +- (void)fread((void *)buffer,(size_t)size,1,src); ++ nbytes = fread((void *)buffer,(size_t)size,1,src); + if (debug) + dump(pos+1,buffer,(size_t)size); + for (i=0; i<(size_t)size; i++) +@@ -360,20 +363,21 @@ + FILE *dest; + { + unsigned char size,buffer[256]; ++ size_t nbytes; + + do { + pos=ftell(src); +- (void)fread((void *)&size,1,1,src); ++ nbytes = fread((void *)&size,1,1,src); + if (debug) + dump(pos,&size,1); + if (output) +- (void)fwrite((void *)&size,1,1,dest); ++ nbytes = fwrite((void *)&size,1,1,dest); + pos=ftell(src); +- (void)fread((void *)buffer,(size_t)size,1,src); ++ nbytes = fread((void *)buffer,(size_t)size,1,src); + if (debug) + dump(pos,buffer,(size_t)size); + if (output) +- (void)fwrite((void *)buffer,(size_t)size,1,dest); ++ nbytes = fwrite((void *)buffer,(size_t)size,1,dest); + } while (!feof(src)&&size>0); + } + +@@ -385,11 +389,11 @@ + unsigned char buffer[3*256],lsd[7],gct[3*256],gce[5]; + unsigned int cnt,cols,size,gct_size=0,gct_delay,gce_present; + struct entry *rgbptr; +- ++ size_t nbytes; + + /* Header */ + pos=ftell(src); +- (void)fread((void *)buffer,6,1,src); ++ nbytes = fread((void *)buffer,6,1,src); + if (strncmp((char *)buffer,"GIF",3)) { + (void)fprintf(stderr,"No GIF file!\n"); + return(1); +@@ -403,12 +407,12 @@ + if (output) { + if (!strncmp((char *)buffer,"GIF87a",6)) + buffer[4]='9'; +- (void)fwrite((void *)buffer,6,1,dest); ++ nbytes = fwrite((void *)buffer,6,1,dest); + } + + /* Logical Screen Descriptor */ + pos=ftell(src); +- (void)fread((void *)lsd,7,1,src); ++ nbytes = fread((void *)lsd,7,1,src); + if (verbose) { + (void)fprintf(stderr,"Logical Screen Descriptor:\n"); + (void)fprintf(stderr,"\tLogical Screen Width: %d pixels\n",readword(lsd)); +@@ -431,7 +435,7 @@ + if (lsd[4]&0x80) { + gct_size=2<<(lsd[4]&0x7); + pos=ftell(src); +- (void)fread((void *)gct,gct_size,3,src); ++ nbytes = fread((void *)gct,gct_size,3,src); + if (go.index==RGB) + for(cnt=0;cnt=0||gce_present) { + if (!gce_present) { +@@ -515,18 +519,18 @@ + gct[3*tc.index+2]=tn.blue; + } + if (output&&gct_delay) { +- (void)fwrite((void *)gct,gct_size,3,dest); ++ nbytes = fwrite((void *)gct,gct_size,3,dest); + gct_delay=FALSE; + } + if (output) { + (void)fputs("\041\371\004",dest); +- (void)fwrite((void *)gce,5,1,dest); ++ nbytes = fwrite((void *)gce,5,1,dest); + } + } + if (output&&gct_delay) { + if (verbose) + (void)fprintf(stderr,"Warning: Global Color Table has not been modified as no Transparent Color Index has been set\n"); +- (void)fwrite((void *)gct,gct_size,3,dest); ++ nbytes = fwrite((void *)gct,gct_size,3,dest); + gct_delay=FALSE; + } + /* Write Image Descriptor */ +@@ -545,12 +549,12 @@ + if (debug) + dump(pos,buffer,10); + if (output) +- (void)fwrite((void *)buffer,10,1,dest); ++ nbytes = fwrite((void *)buffer,10,1,dest); + /* Local Color Table */ + if (buffer[9]&0x80) { + size=2<<(buffer[9]&0x7); + pos=ftell(src); +- (void)fread((void *)buffer,size,3,src); ++ nbytes = fread((void *)buffer,size,3,src); + if (verbose) { + (void)fprintf(stderr,"Local Color Table:\n"); + for(cnt=0;cnt>2); + switch (gce[0]&0x1c>>2) { +@@ -646,7 +650,7 @@ + dump(pos+3,gce,size); + } + pos=ftell(src); +- (void)fread((void *)buffer,1,1,src); ++ nbytes = fread((void *)buffer,1,1,src); + if (debug) + dump(pos,buffer,1); + gce_present=TRUE; +@@ -665,11 +669,11 @@ + if (output&&gct_delay) { + if (verbose) + (void)fprintf(stderr,"Warning: Global Color Table has not been modified due to a Comment Extension\n"); +- (void)fwrite((void *)gct,gct_size,3,dest); ++ nbytes = fwrite((void *)gct,gct_size,3,dest); + gct_delay=FALSE; + } + if (output) +- (void)fwrite((void *)buffer,2,1,dest); ++ nbytes = fwrite((void *)buffer,2,1,dest); + transdata(src,dest); + } + break; +@@ -677,7 +681,7 @@ + if (output&&gct_delay) { + if (verbose) + (void)fprintf(stderr,"Warning: Global Color Table has not been modified due to a Application Extension\n"); +- (void)fwrite((void *)gct,gct_size,3,dest); ++ nbytes = fwrite((void *)gct,gct_size,3,dest); + gct_delay=FALSE; + } + if (verbose) +@@ -685,7 +689,7 @@ + if (debug) + dump(pos,buffer,2); + if (output) +- (void)fwrite((void *)buffer,2,1,dest); ++ nbytes = fwrite((void *)buffer,2,1,dest); + transblock(src,dest); + transdata(src,dest); + break; +@@ -693,7 +697,7 @@ + if (output&&gct_delay) { + if (verbose) + (void)fprintf(stderr,"Warning: Global Color Table has not been modified due to an unknown Extension\n"); +- (void)fwrite((void *)gct,gct_size,3,dest); ++ nbytes = fwrite((void *)gct,gct_size,3,dest); + gct_delay=FALSE; + } + if (verbose) +@@ -701,7 +705,7 @@ + if (debug) + dump(pos,buffer,2); + if (output) +- (void)fwrite((void *)buffer,2,1,dest); ++ nbytes = fwrite((void *)buffer,2,1,dest); + transblock(src,dest); + transdata(src,dest); + break; --- giftrans-1.12.2.orig/debian/patches/series +++ giftrans-1.12.2/debian/patches/series @@ -0,0 +1,8 @@ +01_relocate_rgb.diff +10_local_colour_tables.diff +11_ignore_comments.diff +12_initialise_gct_size.diff +13_check_file_access_result.diff +20_manpage_escape_warning.diff +21_manpage_hyphens.diff +22_manpage_remove_distribution_section.diff --- giftrans-1.12.2.orig/debian/patches/11_ignore_comments.diff +++ giftrans-1.12.2/debian/patches/11_ignore_comments.diff @@ -0,0 +1,26 @@ +--- giftrans-1.12.2.orig/giftrans.c ++++ giftrans-1.12.2/giftrans.c +@@ -811,10 +813,12 @@ + + image=argv[0]; + root=NULL; +- if (*rgb) ++ if (*rgb) { + if ((src=fopen(rgb,"r"))!=NULL) { + next= &root; + while (fgets(line,sizeof(line),src)) { ++ if (line[0] == '!') ++ continue; + *next=(struct entry *)malloc(sizeof(struct entry)); + for (ptr=line;strchr(" \t",*ptr);ptr++); + for (nptr=ptr;!strchr(" \t",*ptr);ptr++); +@@ -847,7 +851,7 @@ + *rgb='\0'; + #endif + } +- ++ } + bc.index=NONE; + tc.index=NONE; + tn.index=NONE; + --- giftrans-1.12.2.orig/debian/patches/12_initialise_gct_size.diff +++ giftrans-1.12.2/debian/patches/12_initialise_gct_size.diff @@ -0,0 +1,15 @@ + + Initialise gct_size with a default value, to prevent a build failure + with -O2. + +--- giftrans-1.12.2.orig/giftrans.c ++++ giftrans-1.12.2/giftrans.c +@@ -383,7 +383,7 @@ + FILE *dest; + { + unsigned char buffer[3*256],lsd[7],gct[3*256],gce[5]; +- unsigned int cnt,cols,size,gct_size,gct_delay,gce_present; ++ unsigned int cnt,cols,size,gct_size=0,gct_delay,gce_present; + struct entry *rgbptr; + + --- giftrans-1.12.2.orig/debian/patches/10_local_colour_tables.diff +++ giftrans-1.12.2/debian/patches/10_local_colour_tables.diff @@ -0,0 +1,24 @@ + +(Re. Debian Bug #20715) + + This bug is caused by the local color table in the image not being + parsed. The patch below fixes giftrans for images with local color + tables. + + John Lightsey + john@nixnuts.net + +--- giftrans-1.12.2.orig/giftrans.c ++++ giftrans-1.12.2/giftrans.c +@@ -547,8 +547,8 @@ + if (output) + (void)fwrite((void *)buffer,10,1,dest); + /* Local Color Table */ +- if (buffer[8]&0x80) { +- size=2<<(buffer[8]&0x7); ++ if (buffer[9]&0x80) { ++ size=2<<(buffer[9]&0x7); + pos=ftell(src); + (void)fread((void *)buffer,size,3,src); + if (verbose) { + --- giftrans-1.12.2.orig/debian/patches/20_manpage_escape_warning.diff +++ giftrans-1.12.2/debian/patches/20_manpage_escape_warning.diff @@ -0,0 +1,32 @@ + + giftrans (1.12.2-11) unstable; urgency=low + + * Add a warning to the manpage about needing to escape # characters when + specifying colours. Closes: #270499. + + [...] + + -- Steve McIntyre <93sam@debian.org> Sun, 12 Dec 2004 02:50:05 +0000 + +--- giftrans-1.12.2.orig/giftrans.1 ++++ giftrans-1.12.2/giftrans.1 +@@ -6,7 +6,7 @@ + .fi + .in -.5i + .. +-.TH GIFTRANS l local ++.TH GIFTRANS 1 + .SH NAME + .PP + giftrans \- transform gif from gif87 to gif89, making one color transparent +@@ -51,7 +51,9 @@ + .IP -e + Redirect stderr to a file + .PP +-Colors may be specified as index, as rgb.txt entry or in the #rrggbb form. ++Colors may be specified as index, as rgb.txt entry or in the #rrggbb ++form. Of course, beware that shells will often consider the # ++character to start a comment and so you may have to escape it! + .SH EXAMPLE + .PP + To convert the white background of a gif file to transparent, use --- giftrans-1.12.2.orig/debian/patches/21_manpage_hyphens.diff +++ giftrans-1.12.2/debian/patches/21_manpage_hyphens.diff @@ -0,0 +1,94 @@ +--- giftrans-1.12.2.orig/giftrans.1.orig ++++ giftrans-1.12.2/giftrans.1 +@@ -59,26 +59,26 @@ + To convert the white background of a gif file to transparent, use + .sp + .DS +-giftrans -t #ffffff file.gif > transparentfile.gif ++giftrans \-t #ffffff file.gif > transparentfile.gif + .DE + .SH BUGS + .PP + This program has been tested on a HP9000/720 with HP-UX A.08.07 +-In this environment, neither lint -u nor gcc -Wall produce any messages. ++In this environment, neither lint \-u nor gcc \-Wall produce any messages. + If you encounter any errors or need to make any changes to port it + to another platform, please contact me. + .PP + Known bugs: + .IP +--B flag won't work if there's an Extension between the Global Color +-Table and the Image Descriptor (or Graphic Control Extension). If -V ++\-B flag won't work if there's an Extension between the Global Color ++Table and the Image Descriptor (or Graphic Control Extension). If \-V + has been specified, a Warning Message will be displayed. + Will be fixed in 2.0 + .IP + Always outputs GIF89a. Shouldn't do this if version is newer. + .IP +--D option may output changed data instead of original data, use +-with caution, best only with then -L option. ++\-D option may output changed data instead of original data, use ++with caution, best only with then \-L option. + .SH COPYRIGHT + .PP + Copyright (c) 24.2.94 by Andreas Ley +@@ -95,30 +95,30 @@ + .br + Incorporated MS-DOS port by enzo@hk.net (Enzo Michelangeli) + .br +-Added -o and -e options to redirect stdout and stderr ++Added \-o and \-e options to redirect stdout and stderr + .br +-Added -D debug flag +-.IP "Version 1.10.2 - 22.6.94" +-Support for -DRGBTXT flag +-.IP "Version 1.10.1 - 21.6.94" ++Added \-D debug flag ++.IP "Version 1.10.2 \- 22.6.94" ++Support for \-DRGBTXT flag ++.IP "Version 1.10.1 \- 21.6.94" + Different rgb.txt file FreeBSD/386BSD +-.IP "Version 1.10 - 19.6.94" ++.IP "Version 1.10 \- 19.6.94" + Added option to change a color in the global color table + .br + Added option to change the color for the transparent color index +-.IP "Version 1.9.1 - 7.6.94" ++.IP "Version 1.9.1 \- 7.6.94" + Different rgb.txt files for X11 and Open Windows +-.IP "Version 1.9 - 1.6.94" ++.IP "Version 1.9 \- 1.6.94" + Fixed a bug which caused color names to be rejected. +-.IP "Version 1.8 - 30.5.94" ++.IP "Version 1.8 \- 30.5.94" + Accept #rrggbb style arguments. + .br + Do nothing if rgb-color not found in GIF. +-.IP "Version 1.7 - 16.5.94" +-Added -l option to only list the color table. ++.IP "Version 1.7 \- 16.5.94" ++Added \-l option to only list the color table. + .br +-Added -L option for verbose output without creating a gif. +-Added -b option to change the background color index. ++Added \-L option for verbose output without creating a gif. ++Added \-b option to change the background color index. + .br + Display all matching color names for color table entries. + .br +@@ -128,11 +128,11 @@ + Doesn't use strdup anymore. + .br + Fixed =& bug on dec machines. +-.IP "Version 1.6 - 5.4.94" ++.IP "Version 1.6 \- 5.4.94" + Added color names recognition. +-.IP "Version 1.5 - 15.3.94" ++.IP "Version 1.5 \- 15.3.94" + Added basic verbose output to analyze GIFs. +-.IP "Version 1.4 - 8.3.94" ++.IP "Version 1.4 \- 8.3.94" + Fixed off-by-one bug in Local Color table code. + .br + Added option to add or remove a comment. --- giftrans-1.12.2.orig/debian/patches/22_manpage_remove_distribution_section.diff +++ giftrans-1.12.2/debian/patches/22_manpage_remove_distribution_section.diff @@ -0,0 +1,26 @@ + + We remove the distribution information from the manpage as it is already + covered in debian/copyright and the long URLs make groff cry. + + -- Chris Lamb Sun, 08 Jun 2008 04:59:02 +0100 + +--- giftrans/giftrans.1.orig ++++ giftrans/giftrans.1 +@@ -176,17 +176,6 @@ + john@charles.CS.UNLV.EDU (John Kilburg) + .IP + enzo@hk.net (Enzo Michelangeli) +-.SH DISTRIBUTION +-.IP "Original distribution site is" +-ftp://ftp.rz.uni-karlsruhe.de/pub/net/www/tools/giftrans/giftrans.c +-.IP "To compile for MS-DOS, you need getopt:" +-ftp://ftp.rz.uni-karlsruhe.de/pub/net/www/tools/giftrans/getopt.c +-.IP "MS-DOS executable can be found at" +-ftp://ftp.rz.uni-karlsruhe.de/pub/net/www/tools/giftrans/giftrans.exe +-.IP "A template rgb.txt for use with the MS-DOS version can be found at" +-ftp://ftp.rz.uni-karlsruhe.de/pub/net/www/tools/giftrans/rgb.txt +-.IP "Additional info can be found on" +-http://melmac.corp.harris.com/transparent_images.html + .SH SEE ALSO + .PP + xv(1), giftoppm(1), ppmtogif(1) --- giftrans-1.12.2.orig/debian/patches/01_relocate_rgb.diff +++ giftrans-1.12.2/debian/patches/01_relocate_rgb.diff @@ -0,0 +1,11 @@ +--- giftrans-1.12.2.orig/giftrans.c ++++ giftrans-1.12.2/giftrans.c +@@ -169,7 +169,7 @@ + + #ifndef RGBTXT + #ifdef X11 +-#define RGBTXT "/usr/lib/X11/rgb.txt" ++#define RGBTXT "/etc/X11/rgb.txt" + #else /* X11 */ + #ifdef OPENWIN + #define RGBTXT "/usr/openwin/lib/rgb.txt"