debian/0000755000000000000000000000000012227237666007203 5ustar debian/compat0000644000000000000000000000000212162367241010370 0ustar 7 debian/ocrad.install0000644000000000000000000000005012162367241011645 0ustar usr/bin/ usr/share/man/ usr/share/info/ debian/libocrad-dev.docs0000644000000000000000000000000712162367641012400 0ustar README debian/ocrad.info0000644000000000000000000000001712162367241011135 0ustar doc/ocrad.info debian/control0000644000000000000000000000241412162367705010603 0ustar Source: ocrad Section: graphics Priority: optional Maintainer: Jakub Wilk Build-Depends: debhelper (>= 7), dpkg-dev (>= 1.16) Standards-Version: 3.9.4 Homepage: http://www.gnu.org/software/ocrad/ocrad.html XS-Testsuite: autopkgtest Package: ocrad Architecture: any Multi-Arch: foreign Depends: ${shlibs:Depends}, ${misc:Depends} Description: optical character recognition program GNU Ocrad is an OCR (Optical Character Recognition) program based on a feature extraction method. It reads a bitmap image in pgm/pbm format and produces text in byte (8-bit) or UTF-8 formats. . Ocrad includes a layout analyzer able to separate the columns or blocks of text normally found on printed pages. . This package includes the command-line tool. Package: libocrad-dev Architecture: any Multi-Arch: same Section: libdevel Depends: ${shlibs:Depends}, ${misc:Depends} Description: optical character recognition library GNU Ocrad is an OCR (Optical Character Recognition) program based on a feature extraction method. It reads a bitmap image in pgm/pbm format and produces text in byte (8-bit) or UTF-8 formats. . Ocrad includes a layout analyzer able to separate the columns or blocks of text normally found on printed pages. . This package includes the static library. debian/copyright0000644000000000000000000000365112162367641011136 0ustar This package was debianized by Miguel Gea Milvaques on Tue, 16 Nov 2004 22:09:32 +0100. It was downloaded from http://ftp.gnu.org/gnu/ocrad/ Copyright © 2003-2013 Antonio Diaz 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 3 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 `/usr/share/common-licenses/GPL-3'. Some files have a different license: * docs/ocrad.*info: This manual is free documentation: you have unlimited permission to copy, distribute and modify it. * INSTALL, README: This file is free documentation: you have unlimited permission to copy, distribute and modify it. * rational.cc, rational.h: This library is free software: you have unlimited permission to copy, distribute and modify it. This library 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. * ocrcheck.cc: This program is free software: you have unlimited permission to copy, distribute and modify it. * testsuite/check.sh: This script is free software: you have unlimited permission to copy, distribute and modify it. * configure: This configure script is free software: you have unlimited permission to copy, distribute and modify it. debian/watch0000644000000000000000000000020112162367470010220 0ustar version=3 opts="uversionmangle=s/-(rc|pre)/~$1/" \ http://download.savannah.gnu.org/releases/ocrad/ocrad-(.*)[.]tar[.](?:bz2|lz) debian/manpages0000644000000000000000000000001412162367241010703 0ustar doc/ocrad.1 debian/ocrad.docs0000644000000000000000000000000712162367641011135 0ustar README debian/changelog0000644000000000000000000001477312227237666011071 0ustar ocrad (0.22-1) unstable; urgency=low * Upload to unstable. * New upstream release. -- Jakub Wilk Tue, 15 Oct 2013 15:14:28 +0200 ocrad (0.22~rc3-1) experimental; urgency=low * New upstream release candidate. * Add “XS-Testsuite: autopkgtest”. * Start package synopses with lowercase letters. -- Jakub Wilk Tue, 25 Jun 2013 21:06:18 +0200 ocrad (0.22~rc2-1) experimental; urgency=low * New upstream release candidate. + Don't install TODO file, as it's no longer included upstream. * Update debian/copyright. * Modernize DEP-8 tests: + Use $ADTTMP. + Remove “Features: no-build-needed”; it's the default now. * Refactor debian/rules: + Put “-W -Wall” only in CPPFLAGS; don't duplicate it in CXXFLAGS. + Don't use dh_testroot in the clean target. There's a good chance that root privileges are not needed (e.g. because binary target was run under fakeroot), and even if they are actually needed, the target will fail quickly. + Make the “binary-arch” target depend on “build-stamp” rather than “build”. + Merge the “install” target into “binary-arch”. + Get rid of circular dependency between configure and configure-stamp. + Drop some no-op commands. * Bump standards version to 3.9.4 (no changes needed). -- Jakub Wilk Wed, 29 May 2013 21:13:28 +0200 ocrad (0.22~rc1-2) unstable; urgency=low * Upload to unstable. * Bump standards version to 3.9.3 (no changes needed). * Add DEP-8 tests. * Really remove patches. -- Jakub Wilk Tue, 24 Apr 2012 21:34:21 +0200 ocrad (0.22~rc1-1) experimental; urgency=low * New upstream release candidate. + Remove patches, applied upstream. + Update year range in debian/copyright. * Fix debian/watch to handle upstream “-rcN” versions correctly. -- Jakub Wilk Mon, 23 Jan 2012 17:07:54 +0100 ocrad (0.21-3) unstable; urgency=low * Pass CPPFLAGS (taken from dpkg-buildflags) to configure. * Multi-archify: + Make ocrad ‘Multi-Arch: foreign’. + Make libocrad-dev ‘Multi-Arch: same’. + Install static libraries to /usr/lib/$(DEB_HOST_MULTIARCH) rather than /usr/lib. + Bump minimum required version of dpkg-dev to 1.16. * Fix OCRAD_scale prototype, so that ocradlib.h can be included in C code (ocradlib-fix-ocrad-scale-prototype.diff). -- Jakub Wilk Thu, 27 Oct 2011 17:42:36 +0200 ocrad (0.21-2) unstable; urgency=low * Add build-arch and build-indep targets. * debian/rules: move .PHONY declarations near the actual target definitions. * Pass CXXFLAGS and LDFLAGS (taken from dpkg-buildflags) to configure. + Build depend on dpkg-dev (>= 1.15.7). * Bump standards version to 3.9.2 (no changes needed). -- Jakub Wilk Sat, 23 Jul 2011 16:52:43 +0200 ocrad (0.21-1) unstable; urgency=low * New upstream release. + Bump year in debian/copyright. -- Jakub Wilk Tue, 11 Jan 2011 20:11:34 +0100 ocrad (0.21~pre2-1) experimental; urgency=low * New upstream release. -- Jakub Wilk Thu, 16 Dec 2010 13:32:23 +0100 ocrad (0.21~pre1-1) experimental; urgency=low * New upstream release (closes: #585166, #566997). * New maintainer (closes: #595550). * Update debian/watch. * Update debian/copyright. * Don't install examples, they are not very helpful. * Don't install the NEWS file. * Remove useless debian/dirs. * Remove unused comments from debian/rules. * Bump debhelper compatibility level to 7. + Use dh_prep instead of dh_clean -k. * Bump standards version to 3.9.1. + Rebuild with new debhelper (closes: #567004). Thanks to Josue Abarca for the bug report. * Remove /usr/share/info/dir after ‘make install’ (closes: #596992). * Ship the Ocrad library (closes: #583595). Thanks to Dmitry Katsubo for the bug report and the initial patch. + New binary package: libocrad-dev. * Run test suite at build time. -- Jakub Wilk Wed, 15 Sep 2010 22:01:23 +0200 ocrad (0.17-4) unstable; urgency=low * Added cstdio include header to avoid FTBFS with gcc 4.4 (Closes: #504957) * Bumped Standars-version -- Miguel Gea Milvaques Mon, 16 Feb 2009 21:32:30 +0100 ocrad (0.17-3) unstable; urgency=low * Added cstring include header to avoid FTBFS (Closes:455679) * Updated policy version * Moved Homepage from description. -- Miguel Gea Milvaques Thu, 27 Dec 2007 10:55:31 +0100 ocrad (0.17-2) unstable; urgency=low * Modified Changelog. Now License is GPL-3 * Added missing includes (Closes: #417456) -- Miguel Gea Milvaques Sun, 22 Jul 2007 13:02:53 +0200 ocrad (0.17-1) unstable; urgency=low * New upstream release -- Miguel Gea Milvaques Sun, 22 Jul 2007 12:31:27 +0200 ocrad (0.16-1) unstable; urgency=low * New upstream release * Updated NAME section in manual pages * Updated Standards-Version * Modified rules file to avoid ocrad to be build twice. * Updated copyright file. -- Miguel Gea Milvaques Mon, 23 Oct 2006 23:18:49 +0200 ocrad (0.15-1) unstable; urgency=low * New upstream release. Closes: #357717 (FTBFS with g++ 4.1) * Changed Maintainer in control file. -- Miguel Gea Milvaques Thu, 20 Apr 2006 21:36:34 +0200 ocrad (0.14-1) unstable; urgency=low * New upstream release -- Miguel Gea Milvaques Sun, 19 Feb 2006 09:28:21 +0100 ocrad (0.13-1) unstable; urgency=low * New upstream release -- Miguel Gea Milvaques Sat, 22 Oct 2005 16:08:16 +0200 ocrad (0.12-2) unstable; urgency=low * Correct mistake on description * Updated Standard-Version to 3.6.2.1 -- Miguel Gea Milvaques Sat, 2 Jul 2005 00:20:17 +0200 ocrad (0.12-1) unstable; urgency=low * New upstream release -- Miguel Gea Milvaques Sat, 11 Jun 2005 00:34:43 +0200 ocrad (0.11-3) unstable; urgency=low * More dependences removal. (Closes: #304292) -- Miguel Gea Milvaques Tue, 12 Apr 2005 09:01:20 +0200 ocrad (0.11-2) unstable; urgency=low * Removes not necessary dependences. -- Miguel Gea Milvaques Mon, 11 Apr 2005 17:24:52 +0200 ocrad (0.11-1) unstable; urgency=low * Initial Release. * closes: #197551 (ITP) -- Miguel Gea Milvaques Wed, 17 Nov 2004 11:36:58 +0100 debian/libocrad-dev.install0000644000000000000000000000003012162367437013115 0ustar usr/lib/*/ usr/include/ debian/source/0000755000000000000000000000000012162367241010472 5ustar debian/source/format0000644000000000000000000000001412162367241011700 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000241012162367642010254 0ustar #!/usr/bin/make -f CXXFLAGS = $(shell dpkg-buildflags --get CXXFLAGS) CPPFLAGS = -W -Wall $(shell dpkg-buildflags --get CPPFLAGS) LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS) DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) .PHONY: build build-indep build-arch build: build-indep build-arch build-arch: build-stamp build-stamp: configure-stamp Makefile $(MAKE) all ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),) $(MAKE) check endif touch $(@) configure-stamp: configure dh_testdir ./configure \ --prefix=/usr \ --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \ --mandir=\$${prefix}/share/man \ --infodir=\$${prefix}/share/info \ CXXFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" touch $(@) .PHONY: binary binary-indep binary-arch binary: binary-indep binary-arch binary-arch: build-stamp dh_testroot dh_prep dh_installdirs $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp rm -f debian/tmp/usr/share/info/dir dh_install dh_installchangelogs ChangeLog dh_installdocs dh_installinfo dh_installman dh_link dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb .PHONY: clean clean: debian/control dh_clean [ ! -f Makefile ] || $(MAKE) distclean # vim:ts=4 sw=4 noet debian/tests/0000755000000000000000000000000012162367643010342 5ustar debian/tests/control0000644000000000000000000000005712162367643011747 0ustar Tests: tests Depends: ocrad, g++, libocrad-dev debian/tests/tests0000755000000000000000000000050512162367640011427 0ustar #!/bin/sh set -e -u testdir=$(readlink -f testsuite/) version=$(ocrad --version | sed -n -e '/GNU Ocrad \(.*\)/ { s//\1/p }') ln -sf "$(which ocrad)" "$ADTTMP/" g++ -g -O2 -Wall -DPROGVERSION="\"$version\"" ocrcheck.cc -locrad -o "$ADTTMP/ocrcheck" cd "$ADTTMP" "$testdir/check.sh" "$testdir" "$version" # vim:ts=4 sw=4 et