--- gocr-0.46.orig/Makefile +++ gocr-0.46/Makefile @@ -10,9 +10,9 @@ # make install DESTDIR=$RPM_BUILD_ROOT # -prefix = /usr/local +prefix = /home/kalfa/gocr-0.46/debian/gocr/usr #bindir = $(prefix)/bin -bindir = /usr/local${exec_prefix}/bin +bindir = /home/kalfa/gocr-0.46/debian/gocr/usr${exec_prefix}/bin SHELL = /bin/sh # this does not work on SuSE 6.0, why? (autoconf 2.12 do not set /bin/sh ?) @@ -26,8 +26,8 @@ includedir = ${prefix}/include # # -pedantic -ansi -Wall -LDFLAGS = -lm -LIBS = -lnetpbm +LDFLAGS = -lm -Wl,-z,defs +LIBS = #RANLIB = @RANLIB@ #AR = @AR@ @@ -98,7 +98,7 @@ # you can override this variable by: make install DESTDIR=yourpath -DESTDIR=/usr/local +DESTDIR=/home/kalfa/gocr-0.46/debian/gocr/usr .PHONY : install uninstall test examples install: $(MAKE) -C src install --- gocr-0.46.orig/debian/compat +++ gocr-0.46/debian/compat @@ -0,0 +1 @@ +7 --- gocr-0.46.orig/debian/README.Debian +++ gocr-0.46/debian/README.Debian @@ -0,0 +1,9 @@ +gocr for Debian +---------------------- + +This is Debian package of gocr. +Some patched has been applied and some others only suggested + +Please, read README* + + -- Cosimo Alfarano , Fri, 26 Aug 2000 17:44:00 +0200 --- gocr-0.46.orig/debian/control +++ gocr-0.46/debian/control @@ -0,0 +1,35 @@ +Source: gocr +Section: graphics +Priority: optional +Maintainer: Cosimo Alfarano +Build-Depends: debhelper (>= 7), autotools-dev +Standards-Version: 3.8.0 +Homepage: http://jocr.sourceforge.net/ + +Package: gocr +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Recommends: libjpeg-progs, bzip2, netpbm, transfig +Description: A 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 +Suggests: xsane +Description: A 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). --- gocr-0.46.orig/debian/copyright +++ gocr-0.46/debian/copyright @@ -0,0 +1,21 @@ +This package was debianized by Cosimo Alfarano +on Sun, 25 Jun 2000 17:52:35 +0200. + + +It was downloaded from http://jocr.sf.net/ + +Upstream Authors: + + Joerg Schulenburg + Bruno Barberi Gnecco + +Copyright: + + Copyright (C) 2000-2007 Joerg Schulenburg + +License: + + Gocr is under GNU GPL, the GNU General Public License. + +The Debian packaging is (C) 2008, Cosimo Alfarano and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- gocr-0.46.orig/debian/rules +++ gocr-0.46/debian/rules @@ -0,0 +1,130 @@ +#!/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. +# +# Modified to make a template file for a multi-binary package with separated +# build-arch and build-indep targets by Bill Allombert 2001 + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +# This has to be exported to make some magic below work. +export DH_OPTIONS + +# 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) +ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) +CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +else +CROSS= --build $(DEB_BUILD_GNU_TYPE) +endif + + + + + +config.status: configure + dh_testdir + # Add here commands to configure the package. +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 $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" + ./configure $(CROSS) --prefix=$(CURDIR)/debian/gocr/usr --mandir=\$${prefix}/share/man CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" + + +#Architecture +build: build-arch build-indep + +build-arch: build-arch-stamp +build-arch-stamp: config.status + dh_clean -k + + # Add here commands to compile the arch part of the package. + $(MAKE) #DESTDIR="$(CURDIR)/debian/gocr/usr" + touch $@ + +build-indep: build-indep-stamp +build-indep-stamp: config.status + + # Add here commands to compile the indep part of the package. + #$(MAKE) DESTDIR="$(CURDIR)/debian/gocr" doc + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-arch-stamp build-indep-stamp + + # Add here commands to clean up after the build process. + [ ! -f Makefile ] || $(MAKE) distclean + rm -f config.sub config.guess + + dh_clean + +install-arch: install +install-indep: install +install: build install-stamp +install-stamp: + dh_testdir + dh_testroot + dh_installdirs -p gocr + dh_installdirs -p gocr-tk + + $(MAKE) install DESTDIR="$(CURDIR)/debian/gocr/usr" + + mv $(CURDIR)/debian/gocr/usr/bin/gocr.tcl $(CURDIR)/debian/gocr-tk/usr/bin/ + touch $@ + + +# Must not depend on anything. This is to be called by +# binary-arch/binary-indep +# in another 'make' thread. +binary-common: + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb +# Build architecture independant packages using the common target. +binary-indep: build-indep install-indep + $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common + +# Build architecture dependant packages using the common target. +binary-arch: build-arch install-arch + $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common + +binary: binary-arch binary-indep +.PHONY: build clean binary-indep binary-arch binary install install-arch install-indep --- gocr-0.46.orig/debian/gocr-tk.dirs +++ gocr-0.46/debian/gocr-tk.dirs @@ -0,0 +1 @@ +usr/bin --- gocr-0.46.orig/debian/dirs +++ gocr-0.46/debian/dirs @@ -0,0 +1 @@ +usr/bin --- gocr-0.46.orig/debian/gocr.install +++ gocr-0.46/debian/gocr.install @@ -0,0 +1,2 @@ +usr usr +share share --- gocr-0.46.orig/debian/docs +++ gocr-0.46/debian/docs @@ -0,0 +1,8 @@ +BUGS +README +READMEde.txt +REMARK.txt +TODO +doc/gocr.html +doc/examples.txt +doc/unicode.txt --- gocr-0.46.orig/debian/gocr-tk.install +++ gocr-0.46/debian/gocr-tk.install @@ -0,0 +1 @@ +usr/bin/gocr.tcl usr/bin/tk-gocr --- gocr-0.46.orig/debian/changelog +++ gocr-0.46/debian/changelog @@ -0,0 +1,271 @@ +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: --- gocr-0.46.orig/src/Makefile +++ gocr-0.46/src/Makefile @@ -48,8 +48,8 @@ CPPFLAGS= # to see the config.h CFLAGS=-g -O2 $(CPPFLAGS) -I../include $(DEFS) -LDFLAGS=-lm -lnetpbm -L. -DESTDIR=/usr/local +LDFLAGS=-lm -Wl,-z,defs -L. +DESTDIR=/home/kalfa/gocr-0.46/debian/gocr/usr .c.o: gocr.h pgm2asc.h ../include/config.h $(CC) $(CFLAGS) -c -o $*.o $< --- gocr-0.46.orig/include/config.h +++ gocr-0.46/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 +/* #undef HAVE_PAM_H */ /* Define if you have the header file. */ -#undef HAVE_PNM_H +/* #undef HAVE_PNM_H */ /* 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.46.orig/man/Makefile +++ gocr-0.46/man/Makefile @@ -7,7 +7,7 @@ mandir = ${prefix}/man INSTALL=/usr/bin/install -c -DESTDIR=/usr/local +DESTDIR=/home/kalfa/gocr-0.46/debian/gocr/usr default: all