Merged update from upstream sources

This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/tesseract-tessdata.git#0184996acb0bcf82740b4be904716625b18b98b0
This commit is contained in:
DistroBaker 2021-02-17 22:50:34 +00:00
parent 39171e18a0
commit 3f2ee49e5c
3 changed files with 27 additions and 5 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/tessdata_fast-4.0.0.tar.gz
/tessdata_fast-4.1.0.tar.gz

View File

@ -1 +1 @@
SHA512 (tessdata_fast-4.0.0.tar.gz) = bffb954712c4ae14ba223fb37a4ea5a9a0aa21d735d784a66cbb8d226cf53fed8138132bf9f887d3f740cb7ccb32ab46954ca25e43212872ea172ffe95891a05
SHA512 (tessdata_fast-4.1.0.tar.gz) = d5e3461d262e300ebf21abc39d19471a6aabed442eab8fdee772368a02c4fe0d2e5738701e31b2d0777989778c9db0169a57ea89537266bc66d2228fb96ea63e

View File

@ -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 <manisandro@gmail.com> - 4.1.0-1
- Update to 4.1.0
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild