Update to v3.0.0
This commit is contained in:
parent
9fe33f1531
commit
bd519b6c08
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,4 @@
|
||||
tesseract-2.04.tar.gz
|
||||
tesseract-2.00.eng.tar.gz
|
||||
/tesseract-3.00.tar.gz
|
||||
/eng.traineddata.gz
|
||||
|
||||
4
sources
4
sources
@ -1,2 +1,2 @@
|
||||
b44eba1a9f4892ac62e484c807fe0533 tesseract-2.04.tar.gz
|
||||
b8291d6b3a63ce7879d688e845e341a9 tesseract-2.00.eng.tar.gz
|
||||
cc812a261088ea0c3d2da735be35d09f tesseract-3.00.tar.gz
|
||||
d91041ad156cf2db36664e91ef799451 eng.traineddata.gz
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
Name: tesseract
|
||||
Version: 2.04
|
||||
Version: 3.00
|
||||
Release: 1%{?dist}
|
||||
Summary: Raw OCR Engine
|
||||
|
||||
@ -7,7 +7,7 @@ Group: Applications/File
|
||||
License: ASL 2.0
|
||||
URL: http://code.google.com/p/tesseract-ocr/
|
||||
Source0: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.tar.gz
|
||||
Source1: http://tesseract-ocr.googlecode.com/files/%{name}-2.00.eng.tar.gz
|
||||
Source1: http://tesseract-ocr.googlecode.com/files/eng.traineddata.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: libtiff-devel
|
||||
|
||||
@ -15,7 +15,6 @@ BuildRequires: libtiff-devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Provides: %{name}-static = %{version}-%{release}
|
||||
|
||||
%description
|
||||
A commercial quality OCR engine originally developed at HP between 1985 and
|
||||
@ -27,41 +26,52 @@ The %{name}-devel package contains header file for
|
||||
developing applications that use %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -a 1
|
||||
%setup -q
|
||||
gzip -dc %{SOURCE1} > eng.traineddata
|
||||
|
||||
%build
|
||||
sed -i 's#-DTESSDATA_PREFIX=@datadir@/#-DTESSDATA_PREFIX=@datadir@/%{name}/##' ccutil/Makefile.*
|
||||
sed -i 's/#include <iostream>/#include <iostream>\n#include <cstdio>/' viewer/svutil.cpp
|
||||
%configure
|
||||
%configure --disable-static
|
||||
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*la
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/tesseract
|
||||
mv $RPM_BUILD_ROOT%{_datadir}/tessdata $RPM_BUILD_ROOT%{_datadir}/tesseract
|
||||
rm $RPM_BUILD_ROOT%{_datadir}/%{name}/tessdata/{deu,fra,ita,nld,spa}*
|
||||
|
||||
mv $RPM_BUILD_ROOT%{_datadir}/tessdata $RPM_BUILD_ROOT%{_datadir}/%{name}
|
||||
install -m 0644 eng.traineddata $RPM_BUILD_ROOT%{_datadir}/%{name}/tessdata
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/%{name}
|
||||
%{_bindir}/combine_tessdata
|
||||
%{_bindir}/*training
|
||||
%{_bindir}/unicharset_extractor
|
||||
%{_bindir}/wordlist2dawg
|
||||
%{_datadir}/%{name}
|
||||
%{_libdir}/lib%{name}*.so.*
|
||||
|
||||
%doc AUTHORS ChangeLog COPYING eurotext.tif NEWS phototest.tif README
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_includedir}/%{name}
|
||||
%{_libdir}/lib%{name}*
|
||||
%{_libdir}/lib%{name}*.so
|
||||
|
||||
%changelog
|
||||
* Tue Nov 16 2010 Karol Trzcionka <karlikt at gmail.com> - 3.00-1
|
||||
- Update to v3.00
|
||||
- Remove static libs and add dynamic
|
||||
|
||||
* Wed Oct 21 2009 Karol Trzcionka <karlikt at gmail.com> - 2.04-1
|
||||
- Update to v2.04
|
||||
- Add static libraries to -devel subpackage
|
||||
|
||||
Loading…
Reference in New Issue
Block a user