forked from pool/ocrad
144 lines
4.4 KiB
RPMSpec
144 lines
4.4 KiB
RPMSpec
|
#
|
||
|
# spec file for package ocrad (Version 0.16)
|
||
|
#
|
||
|
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||
|
# This file and all modifications and additions to the pristine
|
||
|
# package are under the same license as the package itself.
|
||
|
#
|
||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||
|
#
|
||
|
|
||
|
# norootforbuild
|
||
|
|
||
|
Name: ocrad
|
||
|
BuildRequires: gcc-c++
|
||
|
URL: https://savannah.gnu.org/projects/ocrad/
|
||
|
Summary: GNU Ocrad--Optical Character Recognition Program
|
||
|
Version: 0.16
|
||
|
Release: 1
|
||
|
Group: Productivity/Graphics/Other
|
||
|
#Requires:
|
||
|
#Provides:
|
||
|
License: GNU General Public License (GPL) - all versions
|
||
|
# URL:
|
||
|
Source0: ocrad-%{version}.tar.bz2
|
||
|
# Patch: ocrad-%{version}.dif
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
|
||
|
%description
|
||
|
GNU Ocrad is an OCR (Optical Character Recognition) program implemented
|
||
|
as a filter and based on a feature extraction method. It reads a bitmap
|
||
|
image in PBM format and outputs text in the ISO-8859-1 (Latin-1)
|
||
|
charset. It can be used as a stand-alone console application or as a
|
||
|
back-end to other programs.
|
||
|
|
||
|
gocr is another interesting command line OCR tool. Both can be plugged
|
||
|
into Kooka, the KDE scan and OCR program.
|
||
|
|
||
|
|
||
|
|
||
|
Authors:
|
||
|
--------
|
||
|
Antonio Diaz Diaz
|
||
|
|
||
|
%define INSTALL install -m755 -s
|
||
|
%define INSTALL_SCRIPT install -m755
|
||
|
%define INSTALL_DIR install -d -m755
|
||
|
%define INSTALL_DATA install -m644
|
||
|
%prep
|
||
|
%setup -n ocrad-%{version}
|
||
|
# %patch
|
||
|
|
||
|
%build
|
||
|
./configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man
|
||
|
make CXXFLAGS='${RPM_OPT_FLAGS}'
|
||
|
|
||
|
%install
|
||
|
if [ ! "x" = "x$RPM_BUILD_ROOT" ] ; then
|
||
|
rm -fr $RPM_BUILD_ROOT
|
||
|
%{INSTALL_DIR} $RPM_BUILD_ROOT
|
||
|
fi
|
||
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||
|
make install-man DESTDIR=$RPM_BUILD_ROOT
|
||
|
|
||
|
%clean
|
||
|
rm -fr $RPM_BUILD_ROOT
|
||
|
|
||
|
%files
|
||
|
%defattr(-, root, root)
|
||
|
/usr/bin/ocrad
|
||
|
/usr/share/info/ocrad*
|
||
|
%doc %{_mandir}/man1/*
|
||
|
%doc AUTHORS COPYING ChangeLog INSTALL README NEWS TODO
|
||
|
%doc examples
|
||
|
# spec file ends here
|
||
|
|
||
|
%changelog -n ocrad
|
||
|
* Mon Oct 23 2006 - freitag@suse.de
|
||
|
- update to version 0.16:
|
||
|
* Version 0.16 released.
|
||
|
* Added new option `--filter'.
|
||
|
* Better algorithm for vertical space detection (blank lines).
|
||
|
* Some fixes made to `configure' script.
|
||
|
* Added two new debug levels.
|
||
|
* Improvements in character recognition.
|
||
|
* Thu Aug 10 2006 - freitag@suse.de
|
||
|
- update to version 0.15:
|
||
|
* Added new argument parser that replaces `getopt_long'.
|
||
|
* Fixed a bug that prevented compilation with GCC 4.1.
|
||
|
and some benefits from 0.14:
|
||
|
* Ocrad is now able to read ppm files.
|
||
|
* Added new class `Page_image' (256-level greymap).
|
||
|
* Added automatic and adaptive binarization by Otsu's method.
|
||
|
* Added new option `--crop'.
|
||
|
* Added two new chapters `Image Format Conversion' and
|
||
|
`Algorithm' to the texinfo file.
|
||
|
* Target `check' added to Makefile.
|
||
|
* Changed `ocrad.png' icon to color, one line.
|
||
|
* Wed Jan 25 2006 - mls@suse.de
|
||
|
- converted neededforbuild to BuildRequires
|
||
|
* Fri Jan 20 2006 - freitag@suse.de
|
||
|
- added a patch that fixes a namespace problem on ppc and s390
|
||
|
* Wed Nov 02 2005 - dmueller@suse.de
|
||
|
- don't build as root
|
||
|
* Tue Oct 18 2005 - freitag@suse.de
|
||
|
- update to version 0.13:
|
||
|
* ability to read pgm files
|
||
|
* better space detection in tables
|
||
|
* better number recognition
|
||
|
* Wed Jun 08 2005 - max@suse.de
|
||
|
- update to version 0.12:
|
||
|
* Text inside tables of solid lines is now recognized.
|
||
|
* Improvements in character recognition.
|
||
|
* Fixed possible integer overflow when loading pbm file.
|
||
|
* Mon Feb 21 2005 - freitag@suse.de
|
||
|
- update to version 0.11:
|
||
|
* Improved algorithms again
|
||
|
* bugfixes
|
||
|
* Thu Dec 16 2004 - freitag@suse.de
|
||
|
- update to version 0.10:
|
||
|
* Improved algorithms
|
||
|
* orf file changes
|
||
|
* Wed Jun 23 2004 - freitag@suse.de
|
||
|
- update to version 0.8:
|
||
|
* Better algorithm for line detection.
|
||
|
* New feature -x - (export ORF file to stdout).
|
||
|
* Small improvements in image elimination.
|
||
|
* Tue Feb 10 2004 - freitag@suse.de
|
||
|
- update to version 0.7:
|
||
|
* manpage added
|
||
|
* utf8 output
|
||
|
* better detection
|
||
|
* Wed Jan 28 2004 - freitag@suse.de
|
||
|
- update to version 0.6
|
||
|
* Mon Sep 08 2003 - freitag@suse.de
|
||
|
- update to version 0.4 - much better recognition results, better
|
||
|
Makefile etc.
|
||
|
* Mon Aug 18 2003 - freitag@suse.de
|
||
|
- resetted version to original 0.3 version official from the author.
|
||
|
I tried to convince him to use autoconf, but he does not want yet.
|
||
|
In order to distribute the original package, I reverted my auto-
|
||
|
conf version.
|
||
|
* Thu Jul 24 2003 - freitag@suse.de
|
||
|
- initial package
|