debian/0000755000000000000000000000000011662730467007202 5ustar debian/copyright0000644000000000000000000000243011662725547011137 0ustar This work was packaged for Debian by: Cosimo Alfarano on Fri, 19 Mar 2010 13:42:43 +0000 It was downloaded from: http://jocr.sourceforge.net/ Upstream Author(s): Joerg Schulenburg Copyright: Copyright (C) 2000-2010 Joerg Schulenburg License: 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 Street, 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". The Debian packaging is: Copyright (C) 2010 Cosimo Alfarano and is licensed under the GPL version 2, see above. debian/gocr.docs0000644000000000000000000000014511662730347011003 0ustar BUGS README READMEde.txt READMEde.txt REMARK.txt TODO doc/gocr.html doc/examples.txt doc/unicode.txt debian/changelog0000644000000000000000000002141511662730463011053 0ustar gocr (0.49-1) unstable; urgency=low * New upstream release. * Using dpkg-source --commit and quilt, Fixes: #643141 * README.Debian moved to NEWS.DEbian, Fixes: #596855 * Removed some confusing examples, Fixes: #596863 -- Cosimo Alfarano Tue, 22 Nov 2011 13:09:35 +0000 gocr (0.48-1) unstable; urgency=low * New upstream version * Repackaged using a newer debhelper infrastructure * using debian/source/format 3.0 (quilt) -- Cosimo Alfarano Mon, 19 Mar 2010 12:40:04 +0000 gocr (0.46-2.1) unstable; urgency=low * Non-maintainer upload. * Pass --mandir to ./configure (Closes: #553095) -- David Paleino Mon, 09 Nov 2009 22:40:04 +0100 gocr (0.46-2) unstable; urgency=low * Fixed /usr/man usage for manpages updating files from /usr/share/misc/config.{guess,sub} (Closes: #505621) * added Debian revision number and orig file -- Cosimo Alfarano Thu, 13 Nov 2008 21:02:24 -0200 gocr (0.46) unstable; urgency=low * New upstream release * Fixed bug with space in filename (Closes: #316511,#433900) -- Cosimo Alfarano Sat, 08 Nov 2008 12:36:55 -0200 gocr (0.45-2) unstable; urgency=low * Fixed typos in manpages (Closes: #409580) * new upstream wishbug bug not previouly closed (Closes: #405957) -- Cosimo Alfarano Fri, 18 Jul 2008 12:08:37 -0400 gocr (0.45-1) unstable; urgency=low * set Prority to optional * Closes: #402799 -- Cosimo Alfarano Sat, 05 Jul 2008 04:46:28 -0400 gocr (0.45-0) unstable; urgency=low * New Version upload -- Cosimo Alfarano Fri, 04 Jul 2008 20:42:31 -0400 gocr (0.41-1) unstable; urgency=low * new upstream version Closes: #388217 * fixed gnome-frontend (frontend/gnome/src/functions.c) string quoting (debian/patches/gnome-frontend-functions.c.patch_allow_spaces) * fixed gnome-frontend showing button (debian/patches/gnome-frontend-functions.c.patch_show_buttons) * applied debian/patches/gocr-0.41-pgm.patch from upstream * quoted dashes in gocr.1 man page Closes: #272590 -- Cosimo Alfarano Thu, 9 Nov 2006 14:08:47 +0100 gocr (0.39-5) unstable; urgency=high * security fix for http://www.overflow.pl/adv/gocr.txt Closes: #305068 * copied src/pnm.c from 0.40 and patched gocr.c according to upstream, it's the best way to backport the fix from 0.40 -- Cosimo Alfarano Wed, 20 Apr 2005 00:12:48 +0200 gocr (0.39-4) unstable; urgency=low * recommends libjpeg-progs, bzip2, netpbm, transfig in control (see pnm.c for list of autoinvoked command) Closes: #272282 -- Cosimo Alfarano Sun, 19 Sep 2004 23:07:05 +0200 gocr (0.39-3) unstable; urgency=low * apply patches by Nicolas Fran\347ois for gocr-gtk that fix a problem with opening file with spaces and opening two files Closes: #197827,#197814 -- Cosimo Alfarano Mon, 26 Jul 2004 18:19:33 +0200 gocr (0.39-2) unstable; urgency=low * debian/control: added Suggests: gocr-doc to gocr closes: Bug#254827 -- Cosimo Alfarano Thu, 15 Jul 2004 00:47:52 +0200 gocr (0.39-1) unstable; urgency=low * New upstream release closes: Bug#244223 -- Cosimo Alfarano Sat, 17 Apr 2004 15:19:09 +0200 gocr (0.38-4) unstable; urgency=low * fixes the previous entry, that was upload by mistake without updating it :( * built against libnetpbm10 (Build-Depends updated) closes: Bug#211258 -- Cosimo Alfarano Thu, 25 Mar 2004 22:27:14 +0100 gocr (0.38-3) unstable; urgency=low * libnetpbm10 -- Cosimo Alfarano Thu, 25 Mar 2004 21:44:35 +0100 gocr (0.38-2) unstable; urgency=low * removed tk8.4-dev from Build-Depends, thanks to Florent Rougon closes: Bug#227533 * suggesting xsane to goct-tk, since it can scan a document from GUI -- Cosimo Alfarano Tue, 23 Mar 2004 11:02:54 +0100 gocr (0.38-1) unstable; urgency=low * New Upstream Release -- Cosimo Alfarano Wed, 24 Dec 2003 19:37:25 +0100 gocr (0.37-3) unstable; urgency=low * debian/rules: ignore errorcode of find if CVS dir and some other files are not found during clean target execution closes: Bug#199933 -- Cosimo Alfarano Fri, 4 Jul 2003 16:06:26 +0200 gocr (0.37-2) unstable; urgency=low * added autoconf in Build-Depends closes: Bug#199756 * binary-arch target now depends on install target. it was forgot in some way closes: Bug#191633 -- Cosimo Alfarano Thu, 3 Jul 2003 21:16:34 +0200 gocr (0.37-1) unstable; urgency=low * reuploading the old debian 0.3.7-1 version with the real upstream version fixed. it's 0.37! * changed deps of gocr-tk to respect current sid's tk version. (closes: Bug#194794) -- Cosimo Alfarano Tue, 27 May 2003 15:19:14 +0200 gocr (0.3.7-1) unstable; urgency=low * New Upstream Version (closes: #173595) * Installed new gocr man page from sources (closes: Bug#174182,Bug#151736) -- Cosimo Alfarano Fri, 27 Dec 2002 19:29:24 +0100 gocr (0.3.4-10) unstable; urgency=low * fixed some typos in debian/control (closes: #142504,#142735) -- Cosimo Alfarano Tue, 16 Apr 2002 14:07:04 +0200 gocr (0.3.4-9) unstable; urgency=low * fixed gtk-ocr segfault during setting (closes: Bug#136913) modified line are tagged "//KA" -- Cosimo Alfarano Tue, 5 Mar 2002 16:47:56 +0100 gocr (0.3.4-8) unstable; urgency=low * arch-dep and arch-indep packages splitted in debian/rules -- Cosimo Alfarano Fri, 22 Feb 2002 19:18:53 +0100 gocr (0.3.4-7) unstable; urgency=low * fixed a type in Description (closes: Bug#125619) * added gsfonts and tk8.0-dev to Build-Depends: (closes: Bug#126284) -- Cosimo Alfarano Sun, 23 Dec 2001 22:55:20 +0100 gocr (0.3.4-6) unstable; urgency=low * fixed section of gocr-doc in debian/control (from graphic to doc) * replaced gv with gs to Build-Depends: (closes: Bug#116882) -- Cosimo Alfarano Wed, 24 Oct 2001 21:40:22 +0000 gocr (0.3.4-5) unstable; urgency=low * Completly rewritten all Descriptions (closes: Bug#116796) * patching frontend/gnome/src/function.c In saving file. s/+1/+2/ allocing memory for filename $HOME/.gtk_ocr (closes: Bug#116670) -- Cosimo Alfarano Tue, 23 Oct 2001 22:38:30 +0000 gocr (0.3.4-4) unstable; urgency=low * patched frontend/gnome/src/functions.c (segfault) * removed all config.{status,cache} (debian/rules clean) * changed path to common-licenses in copyright file * patched exaple/Makefile clean targed (more file removed) -- Cosimo Alfarano Tue, 22 Oct 2001 21:35:43 +0000 gocr (0.3.4-3) unstable; urgency=low * controlled and fixed all Descriptions (closes: #101781) -- Cosimo Alfarano Fri, 19 Oct 2001 17:09:37 +0200 gocr (0.3.4-2) unstable; urgency=low * orig.tgz created.... debian release 1 missing it -- Cosimo Alfarano Fri, 19 Oct 2001 00:25:03 +0000 gocr (0.3.4-1) unstable; urgency=low * New upstream release * Patched examples/Makefile -> in target examples added text.ps font.ps * Patched frontend/Makefile -> in target all added $(MAKE) -C src all -- Cosimo Alfarano Thu, 18 Oct 2001 23:29:03 +0000 gocr (0.3.3-1) unstable; urgency=low * new upstream version (closes: #87979) * changed /usr/X11/bin/wish to /usr/bin/wish * changed $(CURDIR)/frontend/Makefile to compile gnome frontend. Now I can do make frontend from root dir. * changed path of frontend/gnome/mkinstalldirs in frontend/gnome/Makefile.in and frontend/gnome/src/Makefile.in, it pointed to a wrong dir -- Cosimo Alfarano Wed, 1 Aug 2001 01:12:23 +0100 gocr (0.3.2-1) unstable; urgency=low * new upstream version (never uploaded to ftp-master) -- Cosimo Alfarano Fri, 30 Mar 2001 18:22:23 +0100 gocr (0.2.7-4) unstable; urgency=low * indented list items in debian/control description field (closes: #79478) -- Cosimo Alfarano Fri, 15 Dec 2000 15:35:12 +0100 gocr (0.2.7-3) unstable; urgency=low * Written an initial manpages gocr.1 gocr.tcl.1 -- Cosimo Alfarano Wed, 6 Dec 2000 00:18:48 +0100 gocr (0.2.7-2) unstable; urgency=low * Changed wish dependece from Depend: to Recommends: -- Cosimo Alfarano Fri, 29 Aug 2000 22:20:00 +0200 gocr (0.2.7-1) unstable; urgency=low * Initial Release. -- Cosimo Alfarano Fri, 25 Aug 2000 00:21:56 +0200 Local variables: mode: debian-changelog End: debian/docs0000644000000000000000000000006611662715777010066 0ustar BUGS README READMEde.txt READMEde.txt REMARK.txt TODO debian/source/0000755000000000000000000000000011662715777010511 5ustar debian/source/format0000644000000000000000000000001411662715777011717 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000104311662721663010256 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 override_dh_install: mv $(CURDIR)/debian/tmp/bin/gocr.tcl $(CURDIR)/debian/tmp/bin/gocr-tk dh_install %: dh $@ debian/gocr-tk.install0000644000000000000000000000013011662717356012134 0ustar # only used to rename, refer to .install files for any other files bin/gocr-tk usr/bin/ debian/compat0000644000000000000000000000000211662715777010407 0ustar 8 debian/control0000644000000000000000000000241311662724727010607 0ustar Source: gocr Section: graphics Priority: optional Maintainer: Cosimo Alfarano Build-Depends: debhelper (>= 8.0.0), autotools-dev Standards-Version: 3.9.2 Homepage: http://jocr.sourceforge.net/ #Vcs-Git: git://git.debian.org/collab-maint/gocr.git #Vcs-Browser: http://git.debian.org/?p=collab-maint/gocr.git;a=summary Package: gocr Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Recommends: libjpeg-progs, bzip2, netpbm, transfig Description: Command line OCR gocr is a multi-platform OCR (Optical Character Recognition) program. . It can read pnm, pbm, pgm, ppm, some pcx and tga image files. . Currently the program should be able to handle well scans that have their text in one column and do not have tables. Font sizes of 20 to 60 pixels are supported. . If you want to write your own OCR, libgocr is provided in a separate package. Documentation and graphical wrapper are provided in separated packages, too. Package: gocr-tk Architecture: all Depends: gocr, tk8.5 | wish, ${misc:Depends} Suggests: xsane Description: tcl/tk wrapper around gocr gocr is a multi-platform OCR (Optical Character Recognition) program. . It can read pnm, pbm, pgm, ppm, some pcx and tga image files. . It is a tlc/tk GUI to gocr (a command line program). debian/NEWS.Debian0000644000000000000000000000042611662730003011046 0ustar gocr (0.48-1) unstable; urgency=low The former gocr.tcl script is now called gocr-tk according to the Debian Policy Manual section 10.4: http://www.debian.org/doc/debian-policy/ch-files.html#s-scripts -- Cosimo Alfarano Fri, 19 Mar 2010 13:42:43 +0000 debian/patches/0000755000000000000000000000000011662726725010633 5ustar debian/patches/upstream_cleanup0000644000000000000000000000625011662726725014130 0ustar Description: Fix upstream installation paths Author: Cosimo Alfarano Upstream provides some Makefiles. Fix upstream patch which are wrong for Debian Generated with "dpkg-source --commit" Forwarded: not-needed Last-Update: Tue Nov 22 13:50:56 GMT 2011 --- gocr-0.49.orig/Makefile +++ gocr-0.49/Makefile @@ -10,9 +10,9 @@ # make install DESTDIR=$RPM_BUILD_ROOT # -prefix = /usr/local +prefix = /usr #bindir = $(prefix)/bin -bindir = /usr/local${exec_prefix}/bin +bindir = /usr${exec_prefix}/bin SHELL = /bin/sh # this does not work on SuSE 6.0, why? (autoconf 2.12 do not set /bin/sh ?) @@ -21,7 +21,7 @@ INSTALL = /usr/bin/install -c CC = gcc CFLAGS = -g -O2 # following DEFs are not used, but I play with it for training -CPPFLAGS = -Wall -g -fexceptions -DDO_DEBUG=1 +CPPFLAGS = DEFS = -DHAVE_CONFIG_H includedir = ${prefix}/include # @@ -100,7 +100,7 @@ help: # you can override this variable by: make install DESTDIR=yourpath -DESTDIR=/usr/local +DESTDIR=/usr .PHONY : install uninstall test examples install: $(MAKE) -C src install --- gocr-0.49.orig/include/config.h +++ gocr-0.49/include/config.h @@ -1,36 +1,37 @@ +/* include/config.h. Generated by configure. */ /* include/config.h.in. Generated automatically from configure.in by autoheader. */ /* Define to empty if the keyword does not work. */ -#undef const +/* #undef const */ /* Define if the setvbuf function takes the buffering type as its second argument and the buffer pointer as the third, as on System V before release 3. */ -#undef SETVBUF_REVERSED +/* #undef SETVBUF_REVERSED */ /* Define if you have the ANSI C header files. */ -#undef STDC_HEADERS +#define STDC_HEADERS 1 /* Define if you have the gettimeofday function. */ -#undef HAVE_GETTIMEOFDAY +#define HAVE_GETTIMEOFDAY 1 /* Define if you have the popen function. */ -#undef HAVE_POPEN +#define HAVE_POPEN 1 /* Define if you have the wcschr function. */ -#undef HAVE_WCSCHR +#define HAVE_WCSCHR 1 /* Define if you have the wcsdup function. */ -#undef HAVE_WCSDUP +#define HAVE_WCSDUP 1 /* Define if you have the header file. */ -#undef HAVE_PAM_H +#define HAVE_PAM_H 1 /* Define if you have the header file. */ -#undef HAVE_PNM_H +#define HAVE_PNM_H 1 /* Define if you have the header file. */ -#undef HAVE_UNISTD_H +#define HAVE_UNISTD_H 1 /* Define if you have the header file. */ -#undef HAVE_WCHAR_H +#define HAVE_WCHAR_H 1 --- gocr-0.49.orig/src/Makefile +++ gocr-0.49/src/Makefile @@ -55,7 +55,7 @@ INSTALL=/usr/bin/install -c SHELL=/bin/sh DEFS=-DHAVE_CONFIG_H -CPPFLAGS=-Wall -g -fexceptions -DDO_DEBUG=1 +CPPFLAGS= # to see the config.h CFLAGS=-g -O2 $(CPPFLAGS) -I../include $(DEFS) LDFLAGS=-lm @@ -60,7 +60,7 @@ CPPFLAGS= CFLAGS=-g -O2 $(CPPFLAGS) -I../include $(DEFS) LDFLAGS=-lm LIBS=-lnetpbm -DESTDIR=/usr/local +DESTDIR=/usr .SUFFIXES: .s .o .c .h # do not look for files if help (etc) is given --- gocr-0.49.orig/man/Makefile +++ gocr-0.49/man/Makefile @@ -4,10 +4,10 @@ PROGRAM = gocr -mandir = ${prefix}/man +mandir = ${prefix}/share/man INSTALL=/usr/bin/install -c -DESTDIR=/usr/local +DESTDIR=/usr default: all debian/patches/series0000644000000000000000000000002111662726162012034 0ustar upstream_cleanup debian/patches/a0000644000000000000000000000404711662726001010766 0ustar Description: TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. . gocr (0.49-1) unstable; urgency=low . * New upstream release. Author: Cosimo Alfarano --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: http://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- gocr-0.49.orig/Makefile +++ gocr-0.49/Makefile @@ -10,9 +10,9 @@ # make install DESTDIR=$RPM_BUILD_ROOT # -prefix = /usr/local +prefix = /usr #bindir = $(prefix)/bin -bindir = /usr/local${exec_prefix}/bin +bindir = /usr${exec_prefix}/bin SHELL = /bin/sh # this does not work on SuSE 6.0, why? (autoconf 2.12 do not set /bin/sh ?) @@ -100,7 +100,7 @@ help: # you can override this variable by: make install DESTDIR=yourpath -DESTDIR=/usr/local +DESTDIR=/usr .PHONY : install uninstall test examples install: $(MAKE) -C src install --- gocr-0.49.orig/src/Makefile +++ gocr-0.49/src/Makefile @@ -60,7 +60,7 @@ CPPFLAGS= CFLAGS=-g -O2 $(CPPFLAGS) -I../include $(DEFS) LDFLAGS=-lm LIBS=-lnetpbm -DESTDIR=/usr/local +DESTDIR=/usr .SUFFIXES: .s .o .c .h # do not look for files if help (etc) is given --- gocr-0.49.orig/man/Makefile +++ gocr-0.49/man/Makefile @@ -4,10 +4,10 @@ PROGRAM = gocr -mandir = ${prefix}/man +mandir = ${prefix}/share/man INSTALL=/usr/bin/install -c -DESTDIR=/usr/local +DESTDIR=/usr default: all debian/gocr.install0000644000000000000000000000004411662717356011524 0ustar bin/gocr usr/bin share/* usr/share