[packages/tesseract] initial update to 3.04.00
gotar
gotar at pld-linux.org
Thu Aug 6 17:58:51 CEST 2015
commit 6f6070270e42cde61f138741a9a66330eb55daa0
Author: Tomasz Pala <gotar at pld-linux.org>
Date: Thu Aug 6 17:58:11 2015 +0200
initial update to 3.04.00
format-security.patch | 11 -----------
tesseract.spec | 18 ++++++++----------
2 files changed, 8 insertions(+), 21 deletions(-)
---
diff --git a/tesseract.spec b/tesseract.spec
index 6e5ef97..a14c119 100644
--- a/tesseract.spec
+++ b/tesseract.spec
@@ -3,18 +3,16 @@
Summary: Tesseract Open Source OCR Engine
Summary(pl.UTF-8): Tesseract - silnik OCR o otwartych źródłach
Name: tesseract
-Version: 3.02.02
-Release: 7
+Version: 3.04.00
+Release: 0.1
License: Apache v2.0
Group: Applications/Graphics
-#Source0Download: http://code.google.com/p/tesseract-ocr/downloads/list
-Source0: http://tesseract-ocr.googlecode.com/files/%{name}-ocr-%{version}.tar.gz
-# Source0-md5: 26adc8154f0e815053816825dde246e6
-Patch0: format-security.patch
+Source0: https://github.com/tesseract-ocr/tesseract/archive/%{version}.tar.gz
+# Source0-md5: 078130b9c7d28c558a0e49d432505864
URL: http://code.google.com/p/tesseract-ocr/
BuildRequires: autoconf >= 2.50
BuildRequires: automake
-BuildRequires: leptonlib-devel
+BuildRequires: leptonlib-devel >= 1.71
BuildRequires: libstdc++-devel
BuildRequires: libtool
Suggests: tesseract-data >= 3
@@ -59,8 +57,7 @@ Static Tesseract libraries.
Statyczne biblioteki Tesseracta.
%prep
-%setup -q -n %{name}-ocr
-%patch0 -p1
+%setup -q
%build
%{__libtoolize}
@@ -79,6 +76,8 @@ rm -rf $RPM_BUILD_ROOT
# test program?
%{__rm} $RPM_BUILD_ROOT%{_bindir}/classifier_tester
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libtesseract.la
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -117,7 +116,6 @@ rm -rf $RPM_BUILD_ROOT
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libtesseract.so
-%{_libdir}/libtesseract.la
%{_includedir}/%{name}
%{_pkgconfigdir}/tesseract.pc
%{_mandir}/man5/unicharambigs.5*
diff --git a/format-security.patch b/format-security.patch
deleted file mode 100644
index 8c85e9c..0000000
--- a/format-security.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- tesseract-ocr/dict/permdawg.cpp~ 2012-09-02 22:08:43.000000000 +0200
-+++ tesseract-ocr/dict/permdawg.cpp 2013-07-14 16:06:15.545850330 +0200
-@@ -205,7 +205,7 @@
- STRING word_str;
- word->string_and_lengths(&word_str, NULL);
- word_str += " ";
-- fprintf(output_ambig_words_file_, word_str.string());
-+ fprintf(output_ambig_words_file_, "%s", word_str.string());
- }
- WERD_CHOICE *adjusted_word = word;
- WERD_CHOICE hyphen_tail_word(&getUnicharset());
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/tesseract.git/commitdiff/6f6070270e42cde61f138741a9a66330eb55daa0
More information about the pld-cvs-commit
mailing list