Upgrade to v2.00

This commit is contained in:
Karol Trzcionka 2007-08-24 14:34:28 +00:00
parent 65e5c7a93e
commit baf40e99d0
3 changed files with 17 additions and 13 deletions

View File

@ -1 +1,2 @@
tesseract-1.04.tar.gz
tesseract-2.00.eng.tar.gz
tesseract-2.00.tar.gz

View File

@ -1 +1,2 @@
c39bd7b465c37a3863140e88d51cd839 tesseract-1.04.tar.gz
b8291d6b3a63ce7879d688e845e341a9 tesseract-2.00.eng.tar.gz
6d68d940ed15c61300cb04019c30f46c tesseract-2.00.tar.gz

View File

@ -1,21 +1,20 @@
Name: tesseract
Version: 1.04
Version: 2.00
Release: 1%{?dist}
Summary: Raw OCR Engine
Group: Applications/File
License: Apache License
License: ASL 2.0
URL: http://code.google.com/p/tesseract-ocr/
Source0: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.tar.gz
Patch0: %{name}-1.04-compilefix.patch
Patch1: %{name}-1.04-upstreampatch.patch
Source1: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.eng.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libtiff-devel
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description
A commercial quality OCR engine originally developed at HP between 1985 and
@ -27,9 +26,7 @@ The %{name}-devel package contains header file for
developing applications that use %{name}.
%prep
%setup -q
%patch0
%patch1 -p1
%setup -q -a 1
%build
sed -i 's#-DTESSDATA_PREFIX=@datadir@/#-DTESSDATA_PREFIX=@datadir@/%{name}/##' ccutil/Makefile.*
@ -42,17 +39,20 @@ make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/tesseract
mv $RPM_BUILD_ROOT%{_datadir}/tessdata $RPM_BUILD_ROOT%{_datadir}/tesseract
rm -rf $RPM_BUILD_ROOT%{_libdir}
rm $RPM_BUILD_ROOT%{_datadir}/%{name}/tessdata/{deu,fra,ita,nld,spa}*
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%{_bindir}/*training
%{_bindir}/unicharset_extractor
%{_bindir}/wordlist2dawg
%{_datadir}/%{name}
%{_datadir}/%{name}/tessdata/eng*
%doc AUTHORS ChangeLog COPYING NEWS phototest.tif README
@ -61,6 +61,8 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/%{name}
%changelog
* Tue Aug 21 2007 Karol Trzcionka <karlikt at gmail.com> - 2.00-1
- Upgrade to v2.00
* Thu Mar 22 2007 Karol Trzcionka <karlikt at gmail.com> - 1.04-1
- Change url and source
- Update to v1.04