Hello community, here is the log from the commit of package gocr for openSUSE:Factory checked in at Thu Jan 7 20:22:07 CET 2010. -------- --- gocr/gocr.changes 2009-08-03 11:32:59.000000000 +0200 +++ /mounts/work_src_done/STABLE/gocr/gocr.changes 2010-01-07 13:33:01.000000000 +0100 @@ -1,0 +2,90 @@ +Thu Jan 7 12:37:11 CET 2010 - vuntz@opensuse.org + +- Update to version 0.48: + + fix buffer overflow introduced in 0.46 for filenames + + add codabar barcode + + fix bug, removing melted serifs + + i25 barcode recognition + modifications + + fix some false positive numbers "34" (video, gas meter) + + fix problems with 2zZ4 for 10x10 screen font + + better debug output for :;,. + + remove examples, doc and libs part from configure + + remove doc and examples from the (make install) part to reduce + dependencies +- Changes from version 0.47: + + fix database recognition for certainty 100 (-a 100) + + insert spaces with certainty 100 (old: 99) to let -a 100 work + + new option -u string for unrecognized chars + + fix: No contrast in image causes division by zero + + reduced false positive recognition of scanned "a496" + + "d as a" + + add "Windows Pipe Fix" + + improve 7x10, sample 0811qemu1.png + + change black:white from >4:1 to >3.5:1 as criteria of + inversion + + reintroduce static library libPgm2asc.a (make libs) + + add dynamic library (make libs), unused but may help other + projects +- Changes from version 0.46: + + improved context correction (especially helvetica "Il") + + improved recognition of tiny chars "$1", fat "s", "rw" "," + + fix blank spaces problem in filenames + + fix possible problem with database and UTF8 input + + fix hidden bug in pitch/spacing initialization + + reactivate code for output of glued chars and strings + + fix wrong close() call + + remove creation of pgm2asc.a for simplicity +- Changes from version 0.45: + + minor corrections for c and k + + minus sign is filtered by option -C "--" now, ("-" was parsed + badly) + + clean up old unused code for simplicity (api, frontend) + + fix problem with low height barcodes and barcode removing + + fix problem with readpgm (for multiple images) and database + + PACKAGE_VERSION defined by configure.in AC_INIT + gocr.spec +- Changes from version 0.44: + + add volume to boxes (negative means white areas inside black + areas) + + Fix overflow in despeckling routine + + reactivate composed chars, fix merge_boxes + + fix problems with uncertain line detection and not recognized + "7" + + option -a has an effect now for the output + + adaptions to MICR E13-B font + + fix num_boxes in merge_boxes (affects line detection) + + reduce 2 prompts to one per char in database mode + + fix problem with smaller headlines + + fix problems with tall font + + fix includes for non-linux-platforms +- Changes from version 0.43: + + fix problem with dark frame around image + + support multiple images, ex: giftopnm -image=all a.gif | gocr - + + invert if obviously white on black + + improve thresholding for discrete histograms + + speedup for big boxes (especially dark background) + + fix memory leak + + fix uninitialized variables after insert spaces + + fix frame_vector for single pixels +- Changes from version 0.42: + + further parts of recognition engine relaced by vector version + + changed colored debug output for out??.png + + division of glued chars replaced (slower but more accurate) + + fix framing of small font + + fix problem with uninitialized pnm_readpaminit call + + better progress output, new image debug output + + switch to the new improved rotation detection +- Drop gocr-0.41.dif: gnome frontend has been removed. +- Drop gocr-overflow.patch: gnome frontend has been removed. +- Drop gocr-0.41-pgm.patch: fixed upstream. +- Drop gocr-asneeded.patch: fixed upstream. +- Remove gtk1-compat-devel BuildRequires: there's no GTK+ + dependency anymore. +- Split gocr.tcl in a gocr-gui subpackage, so we don't have to + depend on tcl/tk for the command line tool. +- Do not ship library and header: they're not used by anything + else, and the header is not even installed anymore by default. +- Improve summary and description of the package. +- Update gocr.desktop to launch gocr.tcl. +- Clean up packaging. + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- gocr-0.41-pgm.patch gocr-0.41.dif gocr-0.41.tar.bz2 gocr-asneeded.patch gocr-overflow.patch New: ---- gocr-0.48.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gocr.spec ++++++ --- /var/tmp/diff_new_pack.c84vwY/_old 2010-01-07 20:21:42.000000000 +0100 +++ /var/tmp/diff_new_pack.c84vwY/_new 2010-01-07 20:21:42.000000000 +0100 @@ -1,7 +1,7 @@ # -# spec file for package gocr (Version 0.41) +# spec file for package gocr (Version 0.48) # -# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,91 +19,75 @@ Name: gocr -BuildRequires: ghostscript-fonts-other ghostscript-fonts-std ghostscript-x11 gtk1-compat-devel libnetpbm-devel transfig update-desktop-files -Summary: GOCR--Optical Character Recognition -Version: 0.41 -Release: 221 +Version: 0.48 +Release: 1 +Summary: Optical Character Recognition +License: GPLv2+ Group: Productivity/Graphics/Other -Requires: tcl tk -License: GPL v2 or later Url: http://www-e.uni-magdeburg.de/jschulen/ocr/index.html -Source: gocr-%{version}.tar.bz2 +Source: %{name}-%{version}.tar.bz2 Source1: gocr.desktop -Patch0: gocr-%{version}.dif -Patch1: gocr-%{version}-pgm.patch -Patch2: gocr-overflow.patch -Patch3: gocr-asneeded.patch +BuildRequires: ghostscript-fonts-other +BuildRequires: ghostscript-fonts-std +BuildRequires: ghostscript-x11 +BuildRequires: libnetpbm-devel +BuildRequires: transfig +BuildRequires: update-desktop-files BuildRoot: %{_tmppath}/%{name}-%{version}-build %description -GOCR is a free OCR (Optical Character Recognition) project that -provides a library, a command line version, and an X interface. -Although the program is in an early development state, the results are -very impressive. +GOCR is an optical character recognition program. It reads images in +many formats and outputs a text file. It is also able to recognize +and translate barcodes. +%package gui +License: GPLv2+ +Group: Productivity/Graphics/Other +Summary: Optical Character Recognition - Basic Graphical Interface +Requires: %{name} = %{version} +Requires: tcl tk +Supplements: packageand(gocr:tk) +%description gui +GOCR is an optical character recognition program. It reads images in +many formats and outputs a text file. It is also able to recognize +and translate barcodes. -Authors: --------- - J�rg Schulenburg <Joerg.Schulenburg@physik.uni-magdeburg.de>, <jschulen@gmx.de> - Bruno Barberi Gnecco <brunobg@geocities.com> - -%define INSTALL install -m755 -%define INSTALL_SCRIPT install -m755 -%define INSTALL_DIR install -d -m755 -%define INSTALL_DATA install -m644 +This package contains a basic graphical interface for GOCR. %prep -%setup -q -n gocr-%{version} +%setup -q rm -rf */CVS -%patch0 -%patch1 -%patch2 -%patch3 +rm examples/.#Makefile.1.22 %build %configure make make examples make doc -# gnome frontend -cd frontend/gnome -%configure --disable-gtktest -make %install -if [ ! "x" = "x$RPM_BUILD_ROOT" ] ; then - rm -fr $RPM_BUILD_ROOT - %{INSTALL_DIR} $RPM_BUILD_ROOT -fi -# General source install -make install DESTDIR=$RPM_BUILD_ROOT -# install X11-Stuff. -%{INSTALL_DIR} $RPM_BUILD_ROOT/usr/ -%{INSTALL_DIR} $RPM_BUILD_ROOT/usr/bin -%{INSTALL} bin/gocr.tcl $RPM_BUILD_ROOT/usr/bin -%{INSTALL} frontend/gnome/src/gtk-ocr $RPM_BUILD_ROOT/usr/bin/ +%makeinstall +test -x %{buildroot}%{_mandir}/man1/gocr.1 +chmod a-x %{buildroot}%{_mandir}/man1/gocr.1 %suse_update_desktop_file -i gocr Graphics OCR -chmod 644 $RPM_BUILD_ROOT/usr/share/man/man1/* %clean -rm -fr $RPM_BUILD_ROOT +rm -fr %{buildroot} %files %defattr(-,root,root) +%doc AUTHORS BUGS CREDITS HISTORY README TODO gpl.html %doc doc/gocr.html %doc doc/unicode.txt %doc doc/examples.txt -%doc AUTHORS BUGS CREDITS HISTORY README READMEde.txt REMARK.txt REVIEW TODO gocr.spec gpl.html make.bat %doc examples -%doc %{_mandir}/man1/* +%doc %{_mandir}/man?/gocr.* %{_bindir}/gocr -/usr/share/applications/gocr.desktop -/usr/bin/gocr.tcl -/usr/bin/gtk-ocr -%{_libdir}/libPgm2asc.a -%{_includedir}/gocr.h -%defattr(-, root, root) -# spec file ends here + +%files gui +%defattr(-,root,root) +%{_bindir}/gocr.tcl +%{_datadir}/applications/gocr.desktop %changelog ++++++ gocr-0.41.tar.bz2 -> gocr-0.48.tar.bz2 ++++++ ++++ 75181 lines of diff (skipped) ++++++ gocr.desktop ++++++ --- /var/tmp/diff_new_pack.c84vwY/_old 2010-01-07 20:21:43.000000000 +0100 +++ /var/tmp/diff_new_pack.c84vwY/_new 2010-01-07 20:21:43.000000000 +0100 @@ -1,5 +1,5 @@ [Desktop Entry] Type=Application -Exec=gtk-ocr +Exec=gocr.tcl Name=gOCR ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org