!4 Update to 5.3.2
From: @starlet-dx Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
96139a4700
BIN
4.0.0.tar.gz
BIN
4.0.0.tar.gz
Binary file not shown.
BIN
tesseract-5.3.2.tar.gz
Normal file
BIN
tesseract-5.3.2.tar.gz
Normal file
Binary file not shown.
@ -1,11 +1,10 @@
|
||||
Name: tesseract
|
||||
Version: 4.0.0
|
||||
Version: 5.3.2
|
||||
Release: 1
|
||||
Summary: Raw OCR Engine
|
||||
License: Apache 2.0 and BSD-2-Clause
|
||||
URL: https://github.com/tesseract-ocr/%{name}
|
||||
Source0: https://github.com/tesseract-ocr/tesseract/archive/%{version}.tar.gz
|
||||
Patch0: tesseract_datadir.patch
|
||||
Source0: https://github.com/tesseract-ocr/tesseract/archive/5.3.2/tesseract-5.3.2.tar.gz
|
||||
BuildRequires: automake autoconf-archive gcc-c++ libtool libtiff-devel leptonica-devel
|
||||
BuildRequires: cairo-devel libicu-devel pango-devel
|
||||
BuildRequires: tesseract-langpack-eng
|
||||
@ -49,12 +48,9 @@ mkdir -p %{buildroot}/%{_datadir}/%{name}/tessdata/
|
||||
%license LICENSE
|
||||
%doc AUTHORS ChangeLog README.md
|
||||
%{_bindir}/%{name}
|
||||
%dir %{_datadir}/%{name}
|
||||
%dir %{_datadir}/%{name}/tessdata
|
||||
%{_datadir}/%{name}/tessdata/configs/
|
||||
%{_datadir}/%{name}/tessdata/tessconfigs/
|
||||
%{_datadir}/%{name}/tessdata/pdf.ttf
|
||||
%{_libdir}/lib%{name}*.so.4*
|
||||
%{_datadir}/tessdata/
|
||||
%{_datadir}/%{name}/
|
||||
%{_libdir}/lib%{name}.so.*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/%{name}
|
||||
@ -68,19 +64,19 @@ mkdir -p %{buildroot}/%{_datadir}/%{name}/tessdata/
|
||||
%{_bindir}/combine_lang_model
|
||||
%{_bindir}/combine_tessdata
|
||||
%{_bindir}/dawg2wordlist
|
||||
%{_bindir}/language-specific.sh
|
||||
%{_bindir}/lstmeval
|
||||
%{_bindir}/lstmtraining
|
||||
%{_bindir}/merge_unicharsets
|
||||
%{_bindir}/mftraining
|
||||
%{_bindir}/set_unicharset_properties
|
||||
%{_bindir}/shapeclustering
|
||||
%{_bindir}/tesstrain.sh
|
||||
%{_bindir}/tesstrain_utils.sh
|
||||
%{_bindir}/text2image
|
||||
%{_bindir}/unicharset_extractor
|
||||
%{_bindir}/wordlist2dawg
|
||||
|
||||
%changelog
|
||||
* Tue Jul 18 2023 yaoxin <yao_xin001@hoperun.com> - 5.3.2-1
|
||||
- Update to 5.3.2
|
||||
|
||||
* Fri Jan 8 2021 chengzihan <chengzihan2@huawei.com> - 4.0.0-1
|
||||
- Package init
|
||||
|
||||
@ -1,49 +0,0 @@
|
||||
diff -rupN tesseract-4.0.0/src/ccutil/Makefile.am tesseract-4.0.0-new/src/ccutil/Makefile.am
|
||||
--- tesseract-4.0.0/src/ccutil/Makefile.am 2018-10-29 09:53:12.000000000 +0100
|
||||
+++ tesseract-4.0.0-new/src/ccutil/Makefile.am 2018-11-13 15:23:08.331318335 +0100
|
||||
@@ -3,7 +3,7 @@ AM_CXXFLAGS =
|
||||
AM_CPPFLAGS =
|
||||
|
||||
if !NO_TESSDATA_PREFIX
|
||||
-AM_CXXFLAGS += -DTESSDATA_PREFIX=@datadir@
|
||||
+AM_CXXFLAGS += -DTESSDATA_PREFIX=@datadir@/tesseract/
|
||||
endif
|
||||
|
||||
if VISIBILITY
|
||||
diff -rupN tesseract-4.0.0/src/lstm/Makefile.am tesseract-4.0.0-new/src/lstm/Makefile.am
|
||||
--- tesseract-4.0.0/src/lstm/Makefile.am 2018-10-29 09:53:12.000000000 +0100
|
||||
+++ tesseract-4.0.0-new/src/lstm/Makefile.am 2018-11-13 15:23:08.332317564 +0100
|
||||
@@ -12,7 +12,7 @@ SUBDIRS =
|
||||
AM_CXXFLAGS = $(OPENMP_CXXFLAGS)
|
||||
|
||||
if !NO_TESSDATA_PREFIX
|
||||
-AM_CXXFLAGS += -DTESSDATA_PREFIX=@datadir@
|
||||
+AM_CXXFLAGS += -DTESSDATA_PREFIX=@datadir@/tesseract/
|
||||
endif
|
||||
|
||||
if VISIBILITY
|
||||
diff -rupN tesseract-4.0.0/tessdata/configs/Makefile.am tesseract-4.0.0-new/tessdata/configs/Makefile.am
|
||||
--- tesseract-4.0.0/tessdata/configs/Makefile.am 2018-10-29 09:53:12.000000000 +0100
|
||||
+++ tesseract-4.0.0-new/tessdata/configs/Makefile.am 2018-11-13 15:23:08.332317564 +0100
|
||||
@@ -1,3 +1,3 @@
|
||||
-datadir = @datadir@/tessdata/configs
|
||||
+datadir = @datadir@/tesseract/tessdata/configs
|
||||
data_DATA = inter makebox box.train unlv ambigs.train lstm.train lstmdebug api_config kannada box.train.stderr quiet logfile digits hocr tsv linebox pdf rebox strokewidth bigram txt
|
||||
EXTRA_DIST = inter makebox box.train unlv ambigs.train lstm.train lstmdebug api_config kannada box.train.stderr quiet logfile digits hocr tsv linebox pdf rebox strokewidth bigram txt
|
||||
diff -rupN tesseract-4.0.0/tessdata/Makefile.am tesseract-4.0.0-new/tessdata/Makefile.am
|
||||
--- tesseract-4.0.0/tessdata/Makefile.am 2018-10-29 09:53:12.000000000 +0100
|
||||
+++ tesseract-4.0.0-new/tessdata/Makefile.am 2018-11-13 15:23:08.332317564 +0100
|
||||
@@ -1,4 +1,4 @@
|
||||
-datadir = @datadir@/tessdata
|
||||
+datadir = @datadir@/tesseract/tessdata
|
||||
|
||||
data_DATA = pdf.ttf
|
||||
EXTRA_DIST = $(data_DATA)
|
||||
diff -rupN tesseract-4.0.0/tessdata/tessconfigs/Makefile.am tesseract-4.0.0-new/tessdata/tessconfigs/Makefile.am
|
||||
--- tesseract-4.0.0/tessdata/tessconfigs/Makefile.am 2018-10-29 09:53:12.000000000 +0100
|
||||
+++ tesseract-4.0.0-new/tessdata/tessconfigs/Makefile.am 2018-11-13 15:23:08.332317564 +0100
|
||||
@@ -1,3 +1,3 @@
|
||||
-datadir = @datadir@/tessdata/tessconfigs
|
||||
+datadir = @datadir@/tesseract/tessdata/tessconfigs
|
||||
data_DATA = batch batch.nochop nobatch matdemo segdemo msdemo
|
||||
EXTRA_DIST = batch batch.nochop nobatch matdemo segdemo msdemo
|
||||
Loading…
x
Reference in New Issue
Block a user