debian/0000775000000000000000000000000011745566766007217 5ustar debian/vrms/0000775000000000000000000000000011560337522010163 5ustar debian/vrms/cuneiform0000664000000000000000000000031611560337522012075 0ustar cuneiform: No source code for linguistic data. cuneiform-common: No source code for linguistic data. libcuneiform-dev: No source code for linguistic data. libcuneiform0: No source code for linguistic data. debian/compat0000664000000000000000000000000211656542064010377 0ustar 8 debian/cuneiform.docs0000664000000000000000000000002611560337521012032 0ustar issues.txt readme.txt debian/cuneiform.install0000664000000000000000000000001111645362126012545 0ustar /usr/bin debian/control0000664000000000000000000000555611745351706010617 0ustar Source: cuneiform Section: non-free/graphics Priority: optional Maintainer: Jakub Wilk Build-Depends: debhelper (>= 8.1.3), dpkg-dev (>= 1.16), cmake (>= 2.8.2), libgraphicsmagick++1-dev, pkg-config Standards-Version: 3.9.3 Homepage: http://launchpad.net/cuneiform-linux/ XS-Autobuild: yes Package: cuneiform Architecture: any Multi-Arch: foreign Pre-Depends: dpkg (>= 1.15.6) Depends: ${shlibs:Depends}, ${misc:Depends} Breaks: ocrodjvu (<< 0.4.2) Description: multi-language OCR system Cuneiform is an OCR system. In addition to text recognition it also does layout analysis and text format recognition. . The following languages are supported: Bulgarian, Croatian, Czech, Danish, Dutch, English, Estonian, French, German, Hungarian, Italian, Latvian, Lithuanian, Polish, Portuguese, Romanian, Russian, Serbian, Slovenian, Spanish, Swedish, Turkish and Ukrainian. Package: cuneiform-common Architecture: all Multi-Arch: foreign Pre-Depends: dpkg (>= 1.15.6) Depends: ${misc:Depends} Description: multi-language OCR system (common) Cuneiform is an OCR system. In addition to text recognition it also does layout analysis and text format recognition. . The following languages are supported: Bulgarian, Croatian, Czech, Danish, Dutch, English, Estonian, French, German, Hungarian, Italian, Latvian, Lithuanian, Polish, Portuguese, Romanian, Russian, Serbian, Slovenian, Spanish, Swedish, Turkish and Ukrainian. . This package contains the common files. Package: libcuneiform-dev Section: non-free/libdevel Architecture: any Multi-Arch: same Pre-Depends: dpkg (>= 1.15.6) Depends: ${misc:Depends}, libcuneiform0 (= ${binary:Version}) Description: multi-language OCR system (development) Cuneiform is an OCR system. In addition to text recognition it also does layout analysis and text format recognition. . The following languages are supported: Bulgarian, Croatian, Czech, Danish, Dutch, English, Estonian, French, German, Hungarian, Italian, Latvian, Lithuanian, Polish, Portuguese, Romanian, Russian, Serbian, Slovenian, Spanish, Swedish, Turkish and Ukrainian. . This package contains the development support files. Package: libcuneiform0 Section: non-free/libs Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends}, dpkg (>= 1.15.6) Depends: ${misc:Depends}, ${shlibs:Depends}, cuneiform-common Breaks: cuneiform (<< 1.0.0+dfsg-3~) Replaces: cuneiform (<< 1.0.0+dfsg-3~) Description: multi-language OCR system (shared library) Cuneiform is an OCR system. In addition to text recognition it also does layout analysis and text format recognition. . The following languages are supported: Bulgarian, Croatian, Czech, Danish, Dutch, English, Estonian, French, German, Hungarian, Italian, Latvian, Lithuanian, Polish, Portuguese, Romanian, Russian, Serbian, Slovenian, Spanish, Swedish, Turkish and Ukrainian. . This package contains the shared library. debian/patches/0000775000000000000000000000000011745342741010627 5ustar debian/patches/libm.diff0000664000000000000000000000117111745342733012405 0ustar Description: link the leo and r35 libraries with libm Author: Dmitrijs Ledkovs , Jakub Wilk Forwarded: no Last-Update: 2012-04-23 --- a/cuneiform_src/Kern/leo/CMakeLists.txt +++ b/cuneiform_src/Kern/leo/CMakeLists.txt @@ -23,6 +23,7 @@ msk32 r3532 std32 +m ) library_hook(leo32) --- a/cuneiform_src/Kern/r35/CMakeLists.txt +++ b/cuneiform_src/Kern/r35/CMakeLists.txt @@ -3,6 +3,6 @@ set_property(TARGET r3532 PROPERTY COMPILE_DEFINITIONS __R35__) -target_link_libraries(r3532 mmx32 std32 cfcompat) +target_link_libraries(r3532 mmx32 std32 cfcompat m) library_hook(r3532) debian/patches/series0000664000000000000000000000005411604420453012032 0ustar graphicsmagick.diff libm.diff c-assert.diff debian/patches/c-assert.diff0000664000000000000000000000404611745342741013206 0ustar Description: use the standard C assert() macro Use the standard C assert() macro, rather than custom Cuneiform one. Author: Jakub Wilk Forwarded: no Last-Update: 2012-04-23 --- a/cuneiform_src/Kern/lns32/src/myassert.h +++ b/cuneiform_src/Kern/lns32/src/myassert.h @@ -60,6 +60,8 @@ BC++, v3.1 was used as base */ +#include + #ifdef __MYASSERT_H # Error: Do not specify MYASSERT.H directly - use SLANG.H. Postnikov. #else @@ -73,45 +75,3 @@ #else # define WRONG() (assert(0),FALSE) #endif - -#ifdef __cplusplus -extern "C" { -#endif - -#ifndef MY_DEBUG_LEVEL - void __assertfail( char *__msg, - char *__cond, - char *__file, - int __line); -#else - void my_assert_fail(const char *cond, const char *__file, int __line); -#endif - - -#ifdef __cplusplus -} -#endif - -#undef assert - -#ifdef NDEBUG -# define assert(p) ((void)0) -#else -# ifdef _Windows -# define _ENDL -# else -# define _ENDL "\n" -# endif - #ifdef MY_DEBUG_LEVEL - # define assert(p) \ - ((p)) ? \ - (void)0 : \ - (void) my_assert_fail( #p, __FILE__, __LINE__) - #else - # define assert(p) \ - ((p) ? \ - (void)0 : \ - (void) __assertfail( "Assertion failed: %s, file %s, line %d" _ENDL, \ - #p, __FILE__, __LINE__ ) ) - #endif -#endif --- a/cuneiform_src/Kern/std/CMakeLists.txt +++ b/cuneiform_src/Kern/std/CMakeLists.txt @@ -3,7 +3,6 @@ add_library(std32 ${LIBTYPE} src/std.cpp #src/Std.rc -src/stdassrt.cpp src/stdbits.cpp src/stdconsl.cpp src/stderror.cpp --- a/cuneiform_src/Kern/lns32/CMakeLists.txt +++ b/cuneiform_src/Kern/lns32/CMakeLists.txt @@ -14,7 +14,6 @@ src/lns.cpp src/lnscheck.cpp src/lnsini.cpp -src/myassert.cpp src/procline.cpp src/puanso.cpp src/rbambuk.cpp debian/patches/graphicsmagick.diff0000664000000000000000000000301211745342735014434 0ustar Description: use GraphicsMagick instead of ImageMagick Author: Jakub Wilk Forwarded: not-needed Last-Update: 2012-04-23 --- a/cuneiform_src/cli/cuneiform-cli.cpp +++ b/cuneiform_src/cli/cuneiform-cli.cpp @@ -341,6 +341,10 @@ Magick::InitializeMagick(""); #endif +#ifdef USE_MAGICK + Magick::InitializeMagick(""); +#endif + dib = read_file(infilename); if(!dib) // Error msg is already printed so just get out. return 1; --- a/cuneiform_src/CMakeLists.txt +++ b/cuneiform_src/CMakeLists.txt @@ -34,15 +34,16 @@ add_definitions(-D_USE_RVERLINE_) -find_package(ImageMagick COMPONENTS Magick++) -if(ImageMagick_Magick++_FOUND) +include(FindPkgConfig) +pkg_check_modules(GraphicsMagick QUIET GraphicsMagick++) +if(GraphicsMagick_FOUND) set(USE_MAGICK TRUE) - include_directories(${ImageMagick_Magick++_INCLUDE_DIR}) - message(STATUS "ImageMagick++ found at ${ImageMagick_Magick++_INCLUDE_DIR}.") - set(cli_ext_libs ${ImageMagick_Magick++_LIBRARY}) + include_directories(${GraphicsMagick_INCLUDE_DIRS}) + message(STATUS "GraphicsMagick++ found at ${GraphicsMagick_INCLUDE_DIRS}.") + set(cli_ext_libs ${GraphicsMagick_LIBRARIES}) else() set(USE_MAGICK FALSE) - message(STATUS "ImageMagick++ not found. Only uncompressed BMP images supported.") + message(STATUS "GraphicsMagick++ not found. Only uncompressed BMP images supported.") endif() configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Kern/include/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/Kern/include/config.h) debian/copyright0000664000000000000000000000557411724222504011135 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Cuneiform Linux Upstream-Contact: cuneiform@lists.launchpad.net Source: https://launchpad.net/cuneiform-linux/ Disclaimer: This package is not part of the Debian GNU/Linux distribution. . Cuneiform is licensed under the terms of the BSD license. However, there are OCR dictionaries for which upstream does not have the source code and thus are shipped as binaries only. Due to this partial lack of source code, Cuneiform does not fulfil the Debian Free Software Guidelines and cannot be distributed in main. See bug #496264 for more information. . The following files/directories were removed the upstream tarball because of unclear copyright/licensing: . * cuneiform_src/Addfiles/ * cuneiform_src/icrashreport/ Files: * Copyright: 1990-2008, Cognitive Technologies License: BSD Files: cuneiform_src/Kern/hhh/crashrpt.h Copyright: 2003, Michael Carruth 1990-2008, Cognitive Technologies License: BSD Files: cuneiform_src/cli/* cuneiform_src/Kern/cfcompat/cfcompat.c cuneiform_src/Kern/include/* Copyright: 2008-2009, Jussi Pakkanen License: BSD Files: cuneiform_src/Kern/itigerole/sources/tiger/h/tgcall.h Copyright: 1990, CTL 1990-2008, Cognitive Technologies License: BSD Files: debian/* Copyright: 2008-2009, Daniel Baumann 2010, 2011, Jakub Wilk License: BSD License: BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . * Neither the name of the Cognitive Technologies nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/watch0000664000000000000000000000026511605365534010234 0ustar version=3 opts=dversionmangle=s/\+dfsg// \ http://launchpad.net/cuneiform-linux \ http://launchpad.net/cuneiform-linux/[0-9.]+/.*/[+]download/cuneiform-linux-([0-9.]+)[.]tar[.]bz2 debian/libcuneiform-dev.install0000664000000000000000000000001611645362126014015 0ustar /usr/include/ debian/manpages/0000775000000000000000000000000011560337522010767 5ustar debian/manpages/cuneiform.10000664000000000000000000000543411560337522013046 0ustar .TH CUNEIFORM 1 "2010-09-14" "1.0.0" "multi-language OCR system" .SH NAME cuneiform \- multi-language OCR system .SH SYNOPSIS \fBcuneiform\fR [\-\-dotmatrix] [\-\-fax] [\-\-singlecolumn] [\-f \fIformat\fR] [\-l \fIlanguage\fR] [\-o \fIoutput\fR] \fIinput\fR .SH DESCRIPTION Cuneiform is an OCR system. In addition to text recognition it also does layout analysis and text format recognition. Cuneiform supports several languages. .SH OPTIONS .IP "\fB\-\-dotmatrix\fR" 4 Use recognition mode optimized for text printed with a dot matrix printer. .IP "\fB\-\-fax\fR" 4 Use recognition mode optimized for text that has been faxed. .IP "\fB\-\-singlecolumn\fR" 4 Disable page layout analysis and assumes that the image consists of only one column of text. .IP "\fB\-f\fR \fIformat\fR" 4 Select output format. The following formats are available: \fBhtml\fR (HTML format), \fBhocr\fR (hOCR HTML format), \fBnative\fR (native Cuneiform 2000), \fBrtf\fR (RTF format), \fBsmarttext\fR (plain text with TeX paragraphs), \fBtext\fR (plain text). The default is plain text. .IP "\fB\-l\fR \fIlanguage\fR" 4 By default Cuneiform recognizes English text. To change the language use the command line switch \fB\-l\fR followed by a language code (typically an ISO 639-2 three-letter code). The following languages are supported: .TS ll. T{ \fBbul\fR T} T{ Bulgarian T} T{ \fBcze\fR T} T{ Czech T} T{ \fBdan\fR T} T{ Danish T} T{ \fBdut\fR T} T{ Dutch T} T{ \fBeng\fR T} T{ English T} T{ \fBest\fR T} T{ Estonian T} T{ \fBfra\fR T} T{ French T} T{ \fBger\fR T} T{ German T} T{ \fBhrv\fR T} T{ Croatian T} T{ \fBhun\fR T} T{ Hungarian T} T{ \fBita\fR T} T{ Italian T} T{ \fBlav\fR T} T{ Latvian T} T{ \fBlit\fR T} T{ Lithuanian T} T{ \fBpol\fR T} T{ Polish T} T{ \fBpor\fR T} T{ Portugese T} T{ \fBrum\fR T} T{ Romanian T} T{ \fBrus\fR T} T{ Russian T} T{ \fBruseng\fR T} T{ mixed Russian/English T} T{ \fBslv\fR T} T{ Slovenian T} T{ \fBspa\fR T} T{ Spanish T} T{ \fBsrp\fR T} T{ Serbian T} T{ \fBswe\fR T} T{ Swedish T} T{ \fBtur\fR T} T{ Turkish T} T{ \fBukr\fR T} T{ Ukrainian T} .TE . .IP "\fB\-o\fR \fIoutput\fR" 4 If you do not define an output file with the \fB\-o\fR switch, Cuneiform writes the result to a file \[oq]cuneiform-out.\fIformat\fR\[cq]. The file extension depends on your output format. .SH INPUT FORMAT Cuneiform can process any single-page image that GraphicsMagick knows how to open. Please consult the \fBgm\fR(1) manual page for the comprehensive list of supported image formats. .SH HOMEPAGE More information about cuneiform can be found at <\fIhttp://launchpad.net/cuneiform-linux/\fR>. .SH AUTHOR cuneiform was written by Cognitive Technologies and Jussi Pakkanen <\fIjpakkane@gmail.com\fR>. .PP This manual page was written by Daniel Baumann <\fIdaniel@debian.org\fR>, for the Debian project (but may be used by others). debian/changelog0000664000000000000000000002150411745566766011073 0ustar cuneiform (1.1.0+dfsg-4) unstable; urgency=low * Improve the test suite: + Don't rely on TMPDIR being empty or unset. + Print “FAIL” instead of “ERROR” in case of test failure. + Better error handling. -- Jakub Wilk Tue, 24 Apr 2012 20:16:21 +0200 cuneiform (1.1.0+dfsg-3) unstable; urgency=low * Bump minimum required debhelper version to 8.1.3 (for multi-arch support). * Bump debhelper compatibility level to 8. + Exclude private libraries from being processed by dh_makeshlibs. * Use $() construct (rather than backticks) in the get-orig-source script. * Bump standards version to 3.9.3. + Update debian/copyright URI. * Drop lintian overrides for binary-or-shlib-defines-rpath; not needed anymore. * Update patch headers. * Move most testing logic from debian/rules to debian/tests/. Implement DEP-8 tests. -- Jakub Wilk Tue, 24 Apr 2012 00:13:05 +0200 cuneiform (1.1.0+dfsg-2) unstable; urgency=low * Bump minimum required version of cmake to 2.8.2 (closes: #628732). Our GraphicsMagick patch requires pkg_check_modules to support the QUIET option, which was added in cmake 2.8.2 RC 1. Thanks to Marc Straub for the bug report. * Remove bogus debian/tests/include-binaries. * Overhaul debian/rules. Stop using dh. * Adjust *.install files, so that it's possible to build the cuneiform-common package without building any code. * Drop Vcs-* fields. * Link the r35 library with libm. * Compress binary packages with xz. + Add pre-dependency on dpkg >= 1.15.6. * Multi-archify: + Make cuneiform and cuneiform-common ‘Multi-Arch: foreign’. + Make libcuneiform0 and libcuneiform-dev ‘Multi-Arch: same’. + Add ‘Pre-Depends: ${misc:Pre-Depends}’ to libcuneiform0. + Install shared libraries to /usr/lib/$(DEB_HOST_MULTIARCH) rather than /usr/lib. + Install lintian override for binary-or-shlib-defines-rpath (see bug #646817). + Bump minimum required version of dpkg-dev to 1.16. * Pass CPPFLAGS (get from dpkg-buildflags) to cmake * Call dpkg-buildflags lazily. * Use versioned URL for copyright file format. -- Jakub Wilk Thu, 27 Oct 2011 16:51:13 +0200 cuneiform (1.1.0+dfsg-1) unstable; urgency=low * Upload to unstable. * New upstream release. + Drop patches: c-assert.diff, cuneiform.h-rename-*.diff, slovenian-slv.diff, soname.diff, swapytes.diff. All applied upstream. + Refresh the remaining patches. + Update *.install files. + Fix incorrect use of va_list (closes: #596917). * Re-add c-assert.diff to fix another instance of custom assert() macro. * Use stricter check level for dpkg-gensymbols. * Bump standards version to 3.9.2 (no changes needed). -- Jakub Wilk Sat, 30 Apr 2011 13:16:24 +0200 cuneiform (1.0.0+dfsg-3) experimental; urgency=low * Backport upstream patch to change SONAME to ‘libcuneiform.so.0’. [soname.diff] * Backport upstream patches to rename various names in order to prevent name collisions. [cuneiform.h-rename-*.diff] * Remove trailing whitespace in debian/control. * New binary packages: libcuneiform-dev, libcuneiform0 (closes: #598616). + Move dependency on cuneiform-common from cuneiform to libcuneiform0. + Move /usr/lib files from cuneiform to libcuneiform0. + Move libcuneiform.so.* from /usr/lib/cuneiform/ to /usr/lib/. + No longer disable call to dh_makeshlibs. + Add symbols file. + Add new packages to vrms reasons file. -- Jakub Wilk Mon, 28 Feb 2011 21:12:01 +0100 cuneiform (1.0.0+dfsg-2) unstable; urgency=low * Upload to unstable. * Explicitly build-depend on pkg-config. Thanks to Stefano Rivera for the bug report. * Add Vcs-* fields. * Use the standard C assert() macro, rather than custom Cuneiform one. [c-assert.diff] * Pass CFLAGS, CXXFLAGS and LDFLAGS (get from dpkg-buildflags) to cmake (closes: #608345). Thanks to Sami Liedes for the bug report. + Build depend on dpkg-dev (>= 1.15.7). * Pass --parallel to dh. + Bump debhelper minimum version to 7.4.10. * Update debian/copyright to the latest DEP-5 version. * Bump year in debian/copyright. * Explicitly link to GraphicsMagick (rather than via the ImageMagick compatibility layer). * Don't ship /usr/lib/cuneiform/*.so symlinks. These libraries are considered private, at least until #598616 is fixed. * Rename some private variables in debian/rules to make them lowercase. * Update patch headers. * Provide proper ‘build-arch’ and ‘build-indep’ targets in debian/rules. * Document input format in the manual page (closes: #572061). Thanks to Janusz S. Bień for the bug report. * Use ‘slv’ (rather than ‘slo’) as language code for Slovenian. [slovenian-slv.diff] * Fix package description: Slovenian is supported, Slovak is not. * Improve documentation of the language (-l) option (closes: #602512). Thanks to Jari Aalto for the bug report. * Install reasons file for vrms. -- Jakub Wilk Wed, 26 Jan 2011 21:53:07 +0100 cuneiform (1.0.0+dfsg-1) experimental; urgency=low * New upstream release (closes: #575419). * New maintainer (closes: #543893). * Document in README.source how to repackage upstream tarball. * Update debian/copyright. + Document that the package is auto-buildable. + Document which files were stripped from the upstream tarball. + Convert to the DEP-5 format. * Drop README.Debian, no longer needed. * Rewrite debian/rules from scratch using dh. + Bump debhelper minimum version to 7.4.4 (for cmake support). + Turn on MAKE_VERBOSE_MAKEFILE. + Disable call to dh_makeshlibs to avoid creation of spurious calls to ldconfig in postrm/postinst. + Add get-orig-source target. * Remove unused overrides. * Link to GraphicsMagick rather than ImageMagick: + Build-depend on graphicsmagick-libmagick-dev-compat. + Add patch to properly initialize the library. [graphicsmagick.diff] * Bump standards version to 3.9.1 (no changes needed). * Force upgrade of ocrodjvu to at least 0.4.2; earlier versions of ocrodjvu don't support this version of Cuneiform. * List all the supported languages in the package description. * Update the manual page. + Document --dotmatrix, --fax and --singlecolumn options. + Document all output formats. + Don't use hyphen as minus sign. + Fix a few formatting issues. * Drop Vcs-* fields. * Add watch file. * Add patch from Dmitrijs Ledkovs to link the lao library with libm. [libm.diff] * Add patch for a for a more portable function to swap byte order. [swapbytes.diff] * Set Architecture to any; there's no good reason to limit it. * Run rudimentary tests at build time. -- Jakub Wilk Tue, 14 Sep 2010 15:53:54 +0200 cuneiform (0.7.0+dfsg.1-1) unstable; urgency=low * QA upload * Repacked upstream tarball without cuneiform_src/Kern/rout/wtypes.h since its licence has been doubted, and since it isn't used anyway. (closes: #583603). Removed mention of that file from debian/copyright. * Recompiled against libmagick++3 (closes: #575420). * Bumped dependency on debhelper to >= 7.0.50~. * Source format 3.0 (quilt): no change -- Ralf Treinen Tue, 29 Jun 2010 20:12:53 +0200 cuneiform (0.7.0+dfsg-5) unstable; urgency=low * Updating package to standards version 3.8.3. * Removing vcs fields. * Orphaning package. -- Daniel Baumann Thu, 27 Aug 2009 10:42:31 +0200 cuneiform (0.7.0+dfsg-4) unstable; urgency=low * Minimalizing rules file. -- Daniel Baumann Wed, 29 Jul 2009 21:44:01 +0200 cuneiform (0.7.0+dfsg-3) unstable; urgency=low * Avoiding circular depends (Closes: #531707). * Updating standards version to 3.8.2. * Adding README.Debian with a note about non-free. -- Daniel Baumann Fri, 10 Jul 2009 17:58:10 +0200 cuneiform (0.7.0+dfsg-2) unstable; urgency=low * Adding Autobuild field in control (Closes: #531363). * Updating version and date in manpage. * Building binaries with optimization. -- Daniel Baumann Mon, 01 Jun 2009 09:18:01 +0200 cuneiform (0.7.0+dfsg-1) unstable; urgency=low * Using correct rfc-2822 date formats in changelog. * Updating to standards 3.8.1. * Merging upstream version 0.7.0+dfsg. * Passing libdir to cmake (Closes: #531277). -- Daniel Baumann Sun, 31 May 2009 19:54:52 +0200 cuneiform (0.6.0+dfsg-1) unstable; urgency=low * Initial release (Closes: #496264). * Rebuild upstream tarball without win32 binaries. * The source for the .dat files is unknown, therefore uploading to non-free, see comments in http://bugs.debian.org/496264 from Jussi Pakkanen. -- Daniel Baumann Mon, 06 Apr 2009 02:38:00 +0200 debian/get-orig-source.sh0000664000000000000000000000126111660236452012544 0ustar #!/bin/sh set -e export TAR_OPTIONS="--owner root --group root --mode a+rX" pwd=$(pwd) version="$1" if [ -z "$version" ] then printf 'Usage: %s \n' "$0" exit 1 fi cd "$(dirname "$0")/../" tmpdir=$(mktemp -d get-orig-source.XXXXXX) uscan --noconf --force-download --rename --download-version="$version" --destdir="$tmpdir" cd "$tmpdir" tar -xjf cuneiform_*.orig.tar.bz2 rm *.tar.bz2 # Remove documentation without source: rm -Rf cuneiform-*/cuneiform_src/Addfiles/ rm -Rf cuneiform-*/cuneiform_src/Kern/icrashreport/ mv cuneiform-*/ "cuneiform-$version.orig" tar -cjf "$pwd/cuneiform_$version+dfsg.orig.tar.bz2" cuneiform-*.orig/ cd .. rm -Rf "$tmpdir" # vim:ts=4 sw=4 et debian/cuneiform-common.install0000664000000000000000000000011511645362127014041 0ustar datafiles/*.dat /usr/share/cuneiform/ debian/vrms/* /usr/share/vrms/reasons/ debian/clean0000664000000000000000000000001511560337521010174 0ustar images/*.out debian/cuneiform.manpages0000664000000000000000000000002211560337521012671 0ustar debian/manpages/* debian/source/0000775000000000000000000000000011604420566010474 5ustar debian/source/format0000664000000000000000000000001411560337522011702 0ustar 3.0 (quilt) debian/libcuneiform0.symbols0000664000000000000000000000134611560337522013350 0ustar libcuneiform.so.0 libcuneiform0 #MINVER# PUMA_Done@Base 1.0 PUMA_EnumCodes@Base 1.0 PUMA_EnumFormatMode@Base 1.0 PUMA_EnumFormats@Base 1.0 PUMA_EnumLanguages@Base 1.0 PUMA_EnumPicture@Base 1.0 PUMA_EnumTable@Base 1.0 PUMA_GetExportData@Base 1.0 PUMA_GetReturnCode@Base 1.0 PUMA_GetReturnString@Base 1.0 PUMA_GetSpecialBuffer@Base 1.0 PUMA_Init@Base 1.0 PUMA_RenameImageName@Base 1.0 PUMA_Save@Base 1.0 PUMA_SaveToMemory@Base 1.0 PUMA_SetImportData@Base 1.0 PUMA_SetSpecialProject@Base 1.0 PUMA_XClose@Base 1.0 PUMA_XFinalRecognition@Base 1.0 PUMA_XGetRotateDIB@Base 1.0 PUMA_XGetTemplate@Base 1.0 PUMA_XOpen@Base 1.0 PUMA_XOpenClbk@Base 1.0 PUMA_XPageAnalysis@Base 1.0 PUMA_XSave@Base 1.0 PUMA_XSetTemplate@Base 1.0 debian/rules0000775000000000000000000000576411745347632010300 0ustar #!/usr/bin/make -f here = $(dir $(firstword $(MAKEFILE_LIST)))/.. upstream_version = $(shell cd $(here) && dpkg-parsechangelog | sed -n -r -e '/^Version: ([0-9.]+)([+]dfsg).*/ { s//\1/; p; q; }') DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) CFLAGS = $(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) CXXFLAGS = $(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed cmake_options = \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_VERBOSE_MAKEFILE=ON \ -DCMAKE_BUILD_TYPE=relwithdebinfo \ -DCMAKE_C_FLAGS_RELWITHDEBINFO="$(CFLAGS)" \ -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="$(CXXFLAGS)" \ -DCMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO="$(LDFLAGS)" \ -DCMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO="$(LDFLAGS)" \ -DCMAKE_INSTALL_RPATH=/usr/lib/$(DEB_HOST_MULTIARCH)/cuneiform parallel = -j$(or $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))),1) # These don't need to be exported and if they are we'll get the flags # duplicated in the command line. unexport CFLAGS unexport CXXFLAGS unexport LDFLAGS export DPKG_GENSYMBOLS_CHECK_LEVEL = 4 # build and build-{arch,indep} targets # ==================================== .PHONY: build build-arch build-indep build: build-arch build-indep build-indep: # Nothing to do here. build-arch: obj/build-stamp obj/test-stamp obj/CMakeCache.txt: dh_testdir mkdir -p obj cd obj && cmake .. $(cmake_options) obj/build-stamp: obj/CMakeCache.txt dh_testdir $(MAKE) $(parallel) -C obj touch $(@) obj/test-stamp: dh_testdir ifeq "$(filter nocheck,$(DEB_BUILD_OPTIONS))" "" CF_DATADIR=$(CURDIR)/datafiles/ debian/tests/ground-truth obj/cuneiform endif touch $(@) # binary and binary-{arch,indep} targets # ====================================== .PHONY: binary binary-arch binary-indep binary: binary-arch binary-indep binary-arch: build-arch dh_testdir dh_testroot dh_prep -a $(MAKE) -C obj install DESTDIR=$(CURDIR)/debian/tmp/ dh_install -p libcuneiform-dev '/usr/lib*/libcuneiform.so' /usr/lib/$(DEB_HOST_MULTIARCH)/ dh_install -p libcuneiform0 '/usr/lib*/lib*.so.*' /usr/lib/$(DEB_HOST_MULTIARCH)/cuneiform/ cd debian/libcuneiform0/usr/lib/$(DEB_HOST_MULTIARCH)/cuneiform/ && mv -t ../ libcuneiform.so.* dh_install -a dh_installdocs -a dh_installchangelogs -a dh_installman -a dh_compress -a dh_fixperms -a dh_strip -a dh_makeshlibs -a -X/cuneiform/ dh_shlibdeps -a dh_installdeb -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a -- -Zxz binary-indep: build-indep dh_testdir dh_testroot dh_prep -i -X tmp dh_install -i dh_installdocs -i dh_installchangelogs -i dh_compress -i dh_fixperms -i dh_installdeb -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i -- -Zxz # clean target # ============ .PHONY: clean clean: dh_testdir dh_clean rm -rf obj # get-orig-source target # ====================== .PHONY: get-orig-source get-orig-source: sh $(here)/debian/get-orig-source.sh $(upstream_version) # vim:ts=4 sw=4 noet debian/tests/0000775000000000000000000000000011745566344010351 5ustar debian/tests/control0000664000000000000000000000010111745343370011734 0ustar Tests: ground-truth Features: no-build-needed Depends: cuneiform debian/tests/ground-truth0000775000000000000000000000122411745566344012740 0ustar #!/bin/sh # Usage: # debian/tests/ground-truth [path-to-cuneiform] set -e -u cuneiform=${1:-cuneiform} tmpdir=$(mktemp -t -d cuneiform.test.XXXXXXXX) rc=0 for groundtruth in images/*.*.txt do image=${groundtruth%.txt} result="$tmpdir/${image#images/}.out" diff="$tmpdir/${image#images/}.diff" echo -n "$image ... " : > "$result" cc=0 "$cuneiform" "$image" -o "$result" >/dev/null || cc=1 if diff -u "$groundtruth" "$result" > "$diff" && [ $cc = 0 ] then echo ok else echo FAIL cat "$diff" >&2 rc=1 fi rm "$result" "$diff" done rm -rf "$tmpdir" exit $rc # vim:ts=4 sw=4 et