From 0184996acb0bcf82740b4be904716625b18b98b0 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Wed, 17 Feb 2021 23:26:37 +0100 Subject: [PATCH] Update to 4.1.0 --- .gitignore | 1 + sources | 2 +- tesseract-tessdata.spec | 29 +++++++++++++++++++++++++---- 3 files changed, 27 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 1ecd61a..4ad7661 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /tessdata_fast-4.0.0.tar.gz +/tessdata_fast-4.1.0.tar.gz diff --git a/sources b/sources index e9f4427..894e012 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (tessdata_fast-4.0.0.tar.gz) = bffb954712c4ae14ba223fb37a4ea5a9a0aa21d735d784a66cbb8d226cf53fed8138132bf9f887d3f740cb7ccb32ab46954ca25e43212872ea172ffe95891a05 +SHA512 (tessdata_fast-4.1.0.tar.gz) = d5e3461d262e300ebf21abc39d19471a6aabed442eab8fdee772368a02c4fe0d2e5738701e31b2d0777989778c9db0169a57ea89537266bc66d2228fb96ea63e diff --git a/tesseract-tessdata.spec b/tesseract-tessdata.spec index f7597ad..f70f2b1 100644 --- a/tesseract-tessdata.spec +++ b/tesseract-tessdata.spec @@ -4,8 +4,8 @@ #global pre beta.1 Name: tesseract-tessdata -Version: 4.0.0 -Release: 10%{?pre:.%pre}%{?commit:.git%{shortcommit}}%{?dist} +Version: 4.1.0 +Release: 1%{?pre:.%pre}%{?commit:.git%{shortcommit}}%{?dist} Summary: Trained models for the Tesseract Open Source OCR Engine BuildArch: noarch @@ -42,6 +42,16 @@ Requires: %{name}-doc = %{version}-%{release} Orientation & Script Detection data for the Tesseract Open Source OCR Engine. +%package -n tesseract-equ +Summary: Equation traineddata for tesseract +BuildArch: noarch +Requires: tesseract +Requires: %{name}-doc = %{version}-%{release} + +%description -n tesseract-equ +Data for processing images of mathematics with the Tesseract Open Source OCR Engine. + + # define lang_subpkg macro # m: 3 letter macrolanguage code # l: langcode used in Provides and Supplements tags @@ -273,19 +283,30 @@ mkdir -p %{buildroot}/%{_datadir}/tesseract/tessdata/ cp -a * %{buildroot}/%{_datadir}/tesseract/tessdata/ # Install these through %%license and %%doc -rm -f %{buildroot}/%{_datadir}/tesseract/tessdata/COPYING +rm -f %{buildroot}/%{_datadir}/tesseract/tessdata/LICENSE rm -f %{buildroot}/%{_datadir}/tesseract/tessdata/README.md +# https://github.com/tesseract-ocr/tessdata_fast/issues/27 +rm -f %{buildroot}/%{_datadir}/tesseract/tessdata/configs +rm -f %{buildroot}/%{_datadir}/tesseract/tessdata/pdf.ttf + + %files doc -%license COPYING +%license LICENSE %doc README.md %files -n tesseract-osd %{_datadir}/tesseract/tessdata/osd.traineddata +%files -n tesseract-equ +%{_datadir}/tesseract/tessdata/equ.traineddata + %changelog +* Wed Feb 17 2021 Sandro Mani - 4.1.0-1 +- Update to 4.1.0 + * Wed Jan 27 2021 Fedora Release Engineering - 4.0.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild