Compare commits
68 Commits
Author | SHA1 | Date |
---|---|---|
|
cf4bc8fb8b | |
|
4718c5afe5 | |
|
763d5ebb2d | |
|
23a2d78a2b | |
|
a7c7f0112f | |
|
e917b156dd | |
|
51ab91d575 | |
|
7cabe1c16d | |
|
c53b79b4dd | |
|
f671966b22 | |
|
1c7b1feb9b | |
|
0e28f1f953 | |
|
5604e29486 | |
|
7d573208d5 | |
|
d57de79962 | |
|
b72178e0a5 | |
|
622725d184 | |
|
169b89268f | |
|
c20ad5eae6 | |
|
ba095eadde | |
|
2de82b3be1 | |
|
cf495ac5b5 | |
|
e6f7f8f417 | |
|
3361cdfe52 | |
|
60e83f645c | |
|
999433700a | |
|
7e0070b2c1 | |
|
b7e7f1cc99 | |
|
e2dbb60141 | |
|
5c612220ed | |
|
93771ebc51 | |
|
9b0d582ec6 | |
|
e03fa52be2 | |
|
7ae0e18c8f | |
|
343cdd3feb | |
|
59b0b60939 | |
|
6ac7d5466f | |
|
09f048f53d | |
|
f2f956e8f0 | |
|
4893d4d69f | |
|
14fa6becb5 | |
|
d899335c37 | |
|
92e80a5364 | |
|
a561bd7ebe | |
|
0351a9b33f | |
|
aef288d068 | |
|
2219448c09 | |
|
cb1ed802d9 | |
|
f8e7153fee | |
|
d03a18822e | |
|
5446131ba0 | |
|
6c889ff8b4 | |
|
cf9391b180 | |
|
272c1938d8 | |
|
1171554806 | |
|
0e44327426 | |
|
8d0d91befd | |
|
14db2429c6 | |
|
1ca682cecb | |
|
078622bf8a | |
|
a260ccd278 | |
|
67abbbc39b | |
|
6bc6e1f4c8 | |
|
cede9092c8 | |
|
22e2b7faa5 | |
|
4828498098 | |
|
33ccb2f22b | |
|
733cd95439 |
|
@ -10,3 +10,17 @@ tesseract-2.00.eng.tar.gz
|
|||
/tesseract-3.03-rc1.tar.gz
|
||||
/tesseract-3.04.00.tar.gz
|
||||
/tessdata-3.04.00.tar.gz
|
||||
/tesseract-3.04.01.tar.gz
|
||||
/tesseract-3.05.00.tar.gz
|
||||
/tesseract-3.05.01.tar.gz
|
||||
/tesseract-3.05.02.tar.gz
|
||||
/tessdata_fast-4.0.0.tar.gz
|
||||
/tesseract-4.0.0.tar.gz
|
||||
/tesseract-4.1.0.tar.gz
|
||||
/tesseract-4.1.1.tar.gz
|
||||
/tesseract-4.1.3.tar.gz
|
||||
/tesseract-5.0.0.tar.gz
|
||||
/tesseract-5.0.1.tar.gz
|
||||
/tesseract-5.1.0.tar.gz
|
||||
/tesseract-5.2.0.tar.gz
|
||||
/tesseract-5.3.0.tar.gz
|
||||
|
|
3
sources
3
sources
|
@ -1,2 +1 @@
|
|||
078130b9c7d28c558a0e49d432505864 tesseract-3.04.00.tar.gz
|
||||
b25e830d203af5c863081af3f684b53a tessdata-3.04.00.tar.gz
|
||||
SHA512 (tesseract-5.3.0.tar.gz) = fc0cfda980059390b7d6d3d8e475b4ecc9dcfee1abc3b16fc9ffc8904db0a0847a5f6f1b32bd2e1f6f5a714a8c4df0fb3dc7c6aa25ece6162bf52fe86b4d0f34
|
||||
|
|
560
tesseract.spec
560
tesseract.spec
|
@ -1,22 +1,74 @@
|
|||
#global pre beta.4
|
||||
|
||||
%if 0%{?rhel}
|
||||
%bcond_with mingw
|
||||
%else
|
||||
%bcond_without mingw
|
||||
%endif
|
||||
|
||||
Name: tesseract
|
||||
Version: 3.04.00
|
||||
Release: 3%{?dist}
|
||||
Version: 5.3.0
|
||||
Release: 6%{?dist}
|
||||
Summary: Raw OCR Engine
|
||||
|
||||
License: ASL 2.0
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/tesseract-ocr/%{name}
|
||||
Source0: https://github.com/tesseract-ocr/tesseract/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
Source1: https://github.com/tesseract-ocr/tessdata/archive/%{version}.tar.gz#/tessdata-%{version}.tar.gz
|
||||
Source0: https://github.com/tesseract-ocr/tesseract/archive/%{version}%{?pre:-%pre}/%{name}-%{version}%{?pre:-%pre}.tar.gz
|
||||
|
||||
# Tweak location of tessdata folder
|
||||
Patch0: tesseract_datadir.patch
|
||||
# Fix library name case
|
||||
# Fix shared library version suffix
|
||||
# Honour TESSDATA_PREFIX
|
||||
# Build training libs statically
|
||||
Patch0: tesseract_cmake.patch
|
||||
# Generate correct libdir path in /usr/lib64/pkgconfig/tesseract.pc
|
||||
# Already merged upstream, can be dropped at next release
|
||||
# https://github.com/tesseract-ocr/tesseract/commit/5e116fa5cad249b8a08d22af652cf52f44fbb8cd
|
||||
Patch1: tesseract_libdir.patch
|
||||
# Fixed FTBFS under GCC 13:
|
||||
# https://github.com/tesseract-ocr/tesseract/commit/2025b53de6b3d97285d7c5f80497493007c586c3
|
||||
Patch2: tesseract_gcc13.patch
|
||||
|
||||
BuildRequires: libtiff-devel
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: giflib-devel
|
||||
BuildRequires: leptonica-devel
|
||||
BuildRequires: cairo-devel
|
||||
BuildRequires: libicu-devel
|
||||
BuildRequires: libjpeg-turbo-devel
|
||||
BuildRequires: libtool
|
||||
BuildRequires: libtiff-devel
|
||||
BuildRequires: libwebp-devel
|
||||
BuildRequires: pango-devel
|
||||
BuildRequires: automake libtool
|
||||
BuildRequires: /usr/bin/asciidoc
|
||||
BuildRequires: /usr/bin/xsltproc
|
||||
|
||||
%if %{with mingw}
|
||||
BuildRequires: mingw32-filesystem >= 95
|
||||
BuildRequires: mingw32-gcc
|
||||
BuildRequires: mingw32-giflib
|
||||
BuildRequires: mingw32-binutils
|
||||
BuildRequires: mingw32-icu
|
||||
BuildRequires: mingw32-leptonica
|
||||
BuildRequires: mingw32-libgomp
|
||||
BuildRequires: mingw32-libjpeg-turbo
|
||||
BuildRequires: mingw32-libtiff
|
||||
BuildRequires: mingw32-libwebp
|
||||
BuildRequires: mingw32-pango
|
||||
|
||||
BuildRequires: mingw64-filesystem >= 95
|
||||
BuildRequires: mingw64-gcc
|
||||
BuildRequires: mingw64-giflib
|
||||
BuildRequires: mingw64-binutils
|
||||
BuildRequires: mingw64-icu
|
||||
BuildRequires: mingw64-leptonica
|
||||
BuildRequires: mingw64-libgomp
|
||||
BuildRequires: mingw64-libjpeg-turbo
|
||||
BuildRequires: mingw64-libtiff
|
||||
BuildRequires: mingw64-libwebp
|
||||
BuildRequires: mingw64-pango
|
||||
%endif
|
||||
|
||||
Requires: tesseract-langpack-eng
|
||||
|
||||
|
||||
%description
|
||||
|
@ -34,206 +86,348 @@ The %{name}-devel package contains header file for
|
|||
developing applications that use %{name}.
|
||||
|
||||
|
||||
%package osd
|
||||
Summary: Orientation & Script Detection Data for %{name}
|
||||
%package tools
|
||||
Summary: Training tools for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description osd
|
||||
Orientation & Script Detection Data for %{name}
|
||||
%description tools
|
||||
The %{name}-tools package contains tools for training %{name}.
|
||||
|
||||
# define lang_subpkg macro
|
||||
# m: 3 letter macrolanguage code
|
||||
# l: langcode used in Provides and Supplements tags
|
||||
# n: language name
|
||||
# -m and -n is needed for subpackages, -l is optional
|
||||
#
|
||||
%define lang_subpkg(l:m:n:) \
|
||||
%define macrolang %{-m:%{-m*}}%{!-m:%{error:3 letter Language code not defined}} \
|
||||
%define langcode %{-l:%{-l*}}%{!-l:%{error:Language code not defined}} \
|
||||
%define langname %{-n:%{-n*}}%{!-n:%{error:Language name not defined}} \
|
||||
\
|
||||
%package langpack-%{macrolang}\
|
||||
Summary: %{langname} language data for %{name}\
|
||||
BuildArch: noarch\
|
||||
Requires: %{name} = %{version}-%{release}\
|
||||
%{-l:Provides: %{name}-langpack-%{langcode} = %{version}-%{release}\
|
||||
Supplements: (%{name} = %{version}-%{release} and langpacks-%{langcode})}\
|
||||
\
|
||||
%description langpack-%{macrolang}\
|
||||
%{langname} language data for %{name}.\
|
||||
\
|
||||
%files langpack-%{macrolang}\
|
||||
%{_datadir}/%{name}/tessdata/%{macrolang}.*
|
||||
|
||||
# see https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
|
||||
# and https://en.wikipedia.org/wiki/ISO_639_macrolanguage
|
||||
%lang_subpkg -m afr -l af -n Afrikaans
|
||||
%lang_subpkg -m amh -l an -n Amharic
|
||||
%lang_subpkg -m ara -l ar -n Arabic
|
||||
%lang_subpkg -m asm -l as -n Assamese
|
||||
%lang_subpkg -m aze -l az -n Azerbaijani
|
||||
%lang_subpkg -m aze_cyrl -n "Azerbaijani (Cyrilic)"
|
||||
%lang_subpkg -m bel -l bel -n Belarusian
|
||||
%lang_subpkg -m ben -l bn -n Bengali
|
||||
%lang_subpkg -m bod -l bo -n "Tibetan (Standard)"
|
||||
%lang_subpkg -m bos -l bs -n Bosnian
|
||||
%lang_subpkg -m bul -l bg -n Bulgarian
|
||||
%lang_subpkg -m cat -l ca -n Catalan
|
||||
%lang_subpkg -m ceb -n Cebuano
|
||||
%lang_subpkg -m ces -l cs -n Czech
|
||||
%lang_subpkg -m chi_sim -l zh_CN -n "Chinese (Simplified)"
|
||||
%lang_subpkg -m chi_tra -l zh_TW -n "Chinese (Traditional)"
|
||||
%lang_subpkg -m chr -n Cherokee
|
||||
%lang_subpkg -m cym -l cy -n Welsh
|
||||
%lang_subpkg -m dan -l da -n Danish
|
||||
%lang_subpkg -m dan_frak -n "Danish (Fraktur)"
|
||||
%lang_subpkg -m deu -l de -n German
|
||||
%lang_subpkg -m deu_frak -n "German (Fraktur)"
|
||||
%lang_subpkg -m dzo -n Dzongkha
|
||||
%lang_subpkg -m ell -l el -n Greek
|
||||
%lang_subpkg -m enm -n "Middle English (1100-1500)"
|
||||
%lang_subpkg -m epo -l eo -n Esperanto
|
||||
%lang_subpkg -m equ -n "Math / equation"
|
||||
%lang_subpkg -m est -l et -n Estonian
|
||||
%lang_subpkg -m eus -l eu -n Basque
|
||||
%lang_subpkg -m fas -l fa -n "Persian (Farsi)"
|
||||
%lang_subpkg -m fin -l fi -n Finnish
|
||||
%lang_subpkg -m fra -l fr -n French
|
||||
%lang_subpkg -m frk -n Frankish
|
||||
%lang_subpkg -m frm -n "Middle French (ca. 1400-1600)"
|
||||
%lang_subpkg -m gle -l ga -n Irish
|
||||
%lang_subpkg -m glg -l gl -n Galician
|
||||
%lang_subpkg -m grc -n "Ancient Greek"
|
||||
%lang_subpkg -m guj -l gu -n Gujarati
|
||||
%lang_subpkg -m hat -l ht -n Haitian
|
||||
%lang_subpkg -m heb -l he -n Hebrew
|
||||
%lang_subpkg -m hin -l hi -n Hindi
|
||||
%lang_subpkg -m hrv -l hr -n Croatian
|
||||
%lang_subpkg -m hun -l hu -n Hungarian
|
||||
%lang_subpkg -m iku -l iu -n Inuktitut
|
||||
%lang_subpkg -m ind -l id -n Indonesian
|
||||
%lang_subpkg -m isl -l is -n Icelandic
|
||||
%lang_subpkg -m ita -l it -n Italian
|
||||
%lang_subpkg -m ita_old -n "Italian (Old)"
|
||||
%lang_subpkg -m jav -l jav -n Javanese
|
||||
%lang_subpkg -m jpn -l ja -n Japanese
|
||||
%lang_subpkg -m kan -l kn -n Kannada
|
||||
%lang_subpkg -m kat -l ka -n Georgian
|
||||
%lang_subpkg -m kat_old -n "Georgian (Old)"
|
||||
%lang_subpkg -m kaz -l kk -n Kazakh
|
||||
%lang_subpkg -m khm -l km -n Khmer
|
||||
%lang_subpkg -m kir -l ky -n Kyrgyz
|
||||
%lang_subpkg -m kor -l ko -n Korean
|
||||
%lang_subpkg -m kur -l ku -n Kurdish
|
||||
%lang_subpkg -m lao -l lo -n Lao
|
||||
%lang_subpkg -m lat -l lat -n Latin
|
||||
%lang_subpkg -m lav -l lv -n Latvian
|
||||
%lang_subpkg -m lit -l lt -n Lithuanian
|
||||
%lang_subpkg -m mal -l ml -n Malayalam
|
||||
%lang_subpkg -m mar -l mr -n Marathi
|
||||
%lang_subpkg -m mkd -l mk -n Macedonian
|
||||
%lang_subpkg -m mlt -l mt -n Maltese
|
||||
%lang_subpkg -m msa -l ms -n Malay
|
||||
%lang_subpkg -m mya -l my -n Burmese
|
||||
%lang_subpkg -m nep -l ne -n Nepali
|
||||
%lang_subpkg -m nld -l nl -n Dutch
|
||||
%lang_subpkg -m nor -l no -n Norwegian
|
||||
%lang_subpkg -m ori -l or -n Oriya
|
||||
%lang_subpkg -m pan -l pa -n Panjabi
|
||||
%lang_subpkg -m pol -l pl -n Polish
|
||||
%lang_subpkg -m por -l pt -n Portuguese
|
||||
%lang_subpkg -m pus -l ps -n Pashto
|
||||
%lang_subpkg -m ron -l ro -n Romanian
|
||||
%lang_subpkg -m rus -l ru -n Russian
|
||||
%lang_subpkg -m san -l sa -n Sanskrit
|
||||
%lang_subpkg -m sin -l si -n Sinhala
|
||||
%lang_subpkg -m slk -l sk -n Slovakian
|
||||
%lang_subpkg -m slk_frak -n "Slovakian (Fraktur)"
|
||||
%lang_subpkg -m slv -l sl -n Slovenian
|
||||
%lang_subpkg -m spa -l es -n Spanish
|
||||
%lang_subpkg -m spa_old -n "Spanish (Old)"
|
||||
%lang_subpkg -m sqi -l sq -n Albanian
|
||||
%lang_subpkg -m srp -l sr -n Serbian
|
||||
%lang_subpkg -m srp_latn -n "Serbian (Latin)"
|
||||
%lang_subpkg -m swa -l sw -n Swahili
|
||||
%lang_subpkg -m swe -l sv -n Swedish
|
||||
%lang_subpkg -m syr -l ar_SY -n Syriac
|
||||
%lang_subpkg -m tam -l ta -n Tamil
|
||||
%lang_subpkg -m tel -l te -n Telugu
|
||||
%lang_subpkg -m tgk -l tg -n Tajik
|
||||
%lang_subpkg -m tgl -l tl -n Tagalog
|
||||
%lang_subpkg -m tha -l th -n Thai
|
||||
%lang_subpkg -m tir -l ti -n Tigrinya
|
||||
%lang_subpkg -m tur -l tr -n Turkish
|
||||
%lang_subpkg -m uig -l ug -n Uyghur
|
||||
%lang_subpkg -m ukr -l uk -n Ukrainian
|
||||
%lang_subpkg -m urd -l ur -n Urdu
|
||||
%lang_subpkg -m uzb -l uz -n Uzbek
|
||||
%lang_subpkg -m uzb_cyrl -n "Uzbek (Cyrillic)"
|
||||
%lang_subpkg -m vie -l vi -n Vietnamese
|
||||
%lang_subpkg -m yid -l yi -n Yiddish
|
||||
%package -n mingw32-%{name}
|
||||
Summary: MinGW Windows tesseract-ocr library
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n mingw32-%{name}
|
||||
MinGW Windows tesseract-ocr library.
|
||||
|
||||
|
||||
%package -n mingw32-%{name}-tools
|
||||
Summary: MinGW Windows tesseract-ocr library tools
|
||||
Requires: mingw32-%{name} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n mingw32-%{name}-tools
|
||||
MinGW Windows tesseract-ocr library tools.
|
||||
|
||||
|
||||
%package -n mingw64-%{name}
|
||||
Summary: MinGW Windows tesseract-ocr library
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n mingw64-%{name}
|
||||
MinGW Windows tesseract-ocr library.
|
||||
|
||||
|
||||
%package -n mingw64-%{name}-tools
|
||||
Summary: MinGW Windows tesseract-ocr library tools
|
||||
Requires: mingw64-%{name} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n mingw64-%{name}-tools
|
||||
MinGW Windows tesseract-ocr library tools.
|
||||
|
||||
|
||||
%{?mingw_debug_package}
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version} -a1
|
||||
%patch0 -p1
|
||||
%autosetup -p1 -n %{name}-%{version}%{?pre:-%pre}
|
||||
|
||||
|
||||
%build
|
||||
autoreconf -ifv
|
||||
%configure --disable-static
|
||||
# Native build
|
||||
%cmake -DCMAKE_INSTALL_LIBDIR=%{_lib} -DTESSDATA_PREFIX=%{_datadir}/%{name}
|
||||
%cmake_build
|
||||
|
||||
make %{?_smp_mflags}
|
||||
make %{?_smp_mflags} training
|
||||
# Manually build manfiles, cmake does not build them
|
||||
man_xslt=http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
|
||||
for file in doc/*.asc; do
|
||||
asciidoc -b docbook -d manpage -o - $file | XML_CATALOG_FILES=%{_sysconfdir}/xml/catalog xsltproc --nonet -o ${file/.asc/} $man_xslt -
|
||||
done
|
||||
|
||||
%if %{with mingw}
|
||||
# MinGW build
|
||||
MINGW32_CMAKE_ARGS=-DTESSDATA_PREFIX=%{mingw32_datadir}/%{name} \
|
||||
MINGW64_CMAKE_ARGS=-DTESSDATA_PREFIX=%{mingw64_datadir}/%{name}
|
||||
%mingw_cmake -DSW_BUILD=OFF
|
||||
%mingw_make_build
|
||||
%endif
|
||||
|
||||
|
||||
%install
|
||||
%make_install
|
||||
%make_install training-install
|
||||
%cmake_install
|
||||
mkdir -p %{buildroot}%{_mandir}/{man1,man5}/
|
||||
cp -a doc/*.1 %{buildroot}%{_mandir}/man1/
|
||||
cp -a doc/*.5 %{buildroot}%{_mandir}/man5/
|
||||
|
||||
find %{buildroot}%{_libdir} -type f -name '*.la' -delete
|
||||
|
||||
install -pm 0644 tessdata-%{version}/* %{buildroot}/%{_datadir}/%{name}/tessdata/
|
||||
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
%if %{with mingw}
|
||||
%mingw_make_install
|
||||
%mingw_debug_install_post
|
||||
%endif
|
||||
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc AUTHORS ChangeLog NEWS README testing/eurotext.tif testing/phototest.tif
|
||||
%{_bindir}/ambiguous_words
|
||||
%{_bindir}/classifier_tester
|
||||
%{_bindir}/combine_tessdata
|
||||
%{_bindir}/dawg2wordlist
|
||||
%{_bindir}/set_unicharset_properties
|
||||
%{_bindir}/shapeclustering
|
||||
%{_bindir}/*training
|
||||
%license LICENSE
|
||||
%doc AUTHORS ChangeLog README.md
|
||||
%{_bindir}/%{name}
|
||||
%{_bindir}/text2image
|
||||
%{_bindir}/unicharset_extractor
|
||||
%{_bindir}/wordlist2dawg
|
||||
%dir %{_datadir}/%{name}
|
||||
%dir %{_datadir}/%{name}/tessdata
|
||||
%{_datadir}/%{name}/tessdata/configs/
|
||||
%{_datadir}/%{name}/tessdata/tessconfigs/
|
||||
%{_datadir}/%{name}/tessdata/eng.*
|
||||
%{_datadir}/%{name}/tessdata/pdf.ttf
|
||||
%{_libdir}/lib%{name}*.so.3*
|
||||
%{_mandir}/man1/*
|
||||
%{_mandir}/man5/*
|
||||
%{_libdir}/lib%{name}.so.5.3.0
|
||||
%{_datadir}/%{name}/
|
||||
%{_mandir}/man1/tesseract.1*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/%{name}
|
||||
%{_libdir}/lib%{name}*.so
|
||||
%{_libdir}/lib%{name}.so
|
||||
%{_libdir}/libcommon_training.a
|
||||
%{_libdir}/libunicharset_training.a
|
||||
%{_libdir}/cmake/%{name}/
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
|
||||
%files osd
|
||||
%{_datadir}/%{name}/tessdata/osd.traineddata
|
||||
%files tools
|
||||
%{_bindir}/ambiguous_words
|
||||
%{_bindir}/classifier_tester
|
||||
%{_bindir}/cntraining
|
||||
%{_bindir}/combine_lang_model
|
||||
%{_bindir}/combine_tessdata
|
||||
%{_bindir}/dawg2wordlist
|
||||
%{_bindir}/lstmeval
|
||||
%{_bindir}/lstmtraining
|
||||
%{_bindir}/merge_unicharsets
|
||||
%{_bindir}/mftraining
|
||||
%{_bindir}/set_unicharset_properties
|
||||
%{_bindir}/shapeclustering
|
||||
%{_bindir}/text2image
|
||||
%{_bindir}/unicharset_extractor
|
||||
%{_bindir}/wordlist2dawg
|
||||
%{_mandir}/man1/ambiguous_words.1*
|
||||
%{_mandir}/man1/classifier_tester.1*
|
||||
%{_mandir}/man1/cntraining.1*
|
||||
%{_mandir}/man1/combine_lang_model.1*
|
||||
%{_mandir}/man1/combine_tessdata.1*
|
||||
%{_mandir}/man1/dawg2wordlist.1*
|
||||
%{_mandir}/man1/lstmeval.1*
|
||||
%{_mandir}/man1/lstmtraining.1*
|
||||
%{_mandir}/man1/merge_unicharsets.1*
|
||||
%{_mandir}/man1/mftraining.1*
|
||||
%{_mandir}/man1/set_unicharset_properties.1*
|
||||
%{_mandir}/man1/shapeclustering.1*
|
||||
%{_mandir}/man1/text2image.1*
|
||||
%{_mandir}/man1/unicharset_extractor.1*
|
||||
%{_mandir}/man1/wordlist2dawg.1*
|
||||
%{_mandir}/man5/unicharambigs.5.gz*
|
||||
%{_mandir}/man5/unicharset.5.gz*
|
||||
|
||||
%if %{with mingw}
|
||||
%files -n mingw32-%{name}
|
||||
%license LICENSE
|
||||
%{mingw32_bindir}/libtesseract-53.dll
|
||||
%{mingw32_includedir}/tesseract/
|
||||
%{mingw32_libdir}/libtesseract.dll.a
|
||||
%{mingw32_libdir}/libcommon_training.a
|
||||
%{mingw32_libdir}/libunicharset_training.a
|
||||
%{mingw32_libdir}/pkgconfig/tesseract.pc
|
||||
%{mingw32_libdir}/cmake/%{name}/
|
||||
%{mingw32_datadir}/%{name}/
|
||||
|
||||
%files -n mingw32-%{name}-tools
|
||||
%{mingw32_bindir}/*.exe
|
||||
|
||||
%files -n mingw64-%{name}
|
||||
%license LICENSE
|
||||
%{mingw64_bindir}/libtesseract-53.dll
|
||||
%{mingw64_includedir}/tesseract/
|
||||
%{mingw64_libdir}/libtesseract.dll.a
|
||||
%{mingw64_libdir}/libcommon_training.a
|
||||
%{mingw64_libdir}/libunicharset_training.a
|
||||
%{mingw64_libdir}/pkgconfig/tesseract.pc
|
||||
%{mingw64_libdir}/cmake/%{name}/
|
||||
%{mingw64_datadir}/%{name}/
|
||||
|
||||
%files -n mingw64-%{name}-tools
|
||||
%{mingw64_bindir}/*.exe
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Mar 20 2023 Vitaly Zaitsev <vitaly@easycoding.org> - 5.3.0-6
|
||||
- Backported GCC 13 build fix. Fixed FTBFS on Fedora 38+.
|
||||
|
||||
* Fri Feb 03 2023 FeRD (Frank Dana) <ferdnyc@gmail.com> - 5.3.0-5
|
||||
- Add patch from upstream to fix pkg-config libdir value
|
||||
|
||||
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Tue Jan 03 2023 Sandro Mani <manisandro@gmail.com> - 5.3.0-3
|
||||
- Rebuild (mingw-icu)
|
||||
|
||||
* Sat Dec 31 2022 Pete Walter <pwalter@fedoraproject.org> - 5.3.0-2
|
||||
- Rebuild for ICU 72
|
||||
|
||||
* Fri Dec 23 2022 Sandro Mani <manisandro@gmail.com> - 5.3.0-1
|
||||
- Update to 5.3.0
|
||||
|
||||
* Wed Dec 21 2022 Sandro Mani <manisandro@gmail.com> - 5.2.0-6
|
||||
- Rebuild (leptonica)
|
||||
|
||||
* Fri Sep 23 2022 Sandro Mani <manisandro@gmail.com> - 5.2.0-5
|
||||
- Backport patch to restore equality between cmake and autotools generated
|
||||
pkgconfig file
|
||||
|
||||
* Fri Aug 05 2022 Sandro Mani <manisandro@gmail.com> - 5.2.0-4
|
||||
- Rebuild (icu)
|
||||
|
||||
* Mon Aug 01 2022 Frantisek Zatloukal <fzatlouk@redhat.com> - 5.2.0-3
|
||||
- Rebuilt for ICU 71.1
|
||||
|
||||
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Thu Jul 07 2022 Sandro Mani <manisandro@gmail.com> - 5.2.0-1
|
||||
- Update to 5.2.0
|
||||
|
||||
* Fri Mar 25 2022 Sandro Mani <manisandro@gmail.com> - 5.1.0-3
|
||||
- Rebuild with mingw-gcc-12
|
||||
|
||||
* Fri Mar 11 2022 Sandro Mani <manisandro@gmail.com> - 5.1.0-2
|
||||
- Build training tool libraries statically
|
||||
|
||||
* Wed Mar 02 2022 Sandro Mani <manisandro@gmail.com> - 5.1.0-1
|
||||
- Update to 5.1.0
|
||||
|
||||
* Fri Feb 25 2022 Sandro Mani <manisandro@gmail.com> - 5.0.1-5
|
||||
- Bump as F36 needs another rebuild
|
||||
|
||||
* Thu Feb 24 2022 Sandro Mani <manisandro@gmail.com> - 5.0.1-4
|
||||
- Make mingw subpackages noarch
|
||||
|
||||
* Sat Feb 19 2022 Sandro Mani <manisandro@gmail.com> - 5.0.1-3
|
||||
- Add mingw subpackage
|
||||
|
||||
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Sat Jan 08 2022 Sandro Mani <manisandro@gmail.com> - 5.0.1-1
|
||||
- Update to 5.0.1
|
||||
|
||||
* Fri Dec 17 2021 Sandro Mani <manisandro@gmail.com> - 5.0.0-3
|
||||
- Switch back to autotools
|
||||
|
||||
* Wed Dec 15 2021 Sandro Mani <manisandro@gmail.com> - 5.0.0-2
|
||||
- Also install training libraries
|
||||
|
||||
* Fri Dec 10 2021 Sandro Mani <manisandro@gmail.com> - 5.0.0-1
|
||||
- Update to 5.0.0
|
||||
|
||||
* Wed Nov 17 2021 Sandro Mani <manisandro@gmail.com> - 4.1.3-1
|
||||
- Update to 4.1.7
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.1-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Thu May 20 2021 Pete Walter <pwalter@fedoraproject.org> - 4.1.1-6
|
||||
- Rebuild for ICU 69
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.1-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.1-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Sat May 16 2020 Pete Walter <pwalter@fedoraproject.org> - 4.1.1-3
|
||||
- Rebuild for ICU 67
|
||||
|
||||
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Fri Dec 27 2019 Sandro Mani <manisandro@gmail.com> - 4.1.1-1
|
||||
- Update to 4.1.1
|
||||
|
||||
* Fri Nov 01 2019 Pete Walter <pwalter@fedoraproject.org> - 4.1.0-2
|
||||
- Rebuild for ICU 65
|
||||
|
||||
* Sun Jul 28 2019 Sandro Mani <manisandro@gmail.com> - 4.1.0-1
|
||||
- Update to 4.1.0
|
||||
|
||||
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Tue Jul 23 2019 Sandro Mani <manisandro@gmail.com> - 4.0.0-6
|
||||
- Add Requires: tesseract-langpack-eng
|
||||
|
||||
* Mon Jul 22 2019 Sandro Mani <manisandro@gmail.com> - 4.0.0-5
|
||||
- Drop langpack and script subpackages, moved to separate tesseract-tessdata package
|
||||
|
||||
* Mon Jul 01 2019 Sandro Mani <manisandro@gmail.com> - 4.0.0-4
|
||||
- Fix -frk subpackage description (#1721228)
|
||||
|
||||
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Wed Jan 23 2019 Pete Walter <pwalter@fedoraproject.org> - 4.0.0-2
|
||||
- Rebuild for ICU 63
|
||||
|
||||
* Tue Nov 13 2018 Sandro Mani <manisandro@gmail.com> - 4.0.0-1
|
||||
- Update to 4.0.0
|
||||
|
||||
* Tue Sep 25 2018 Sandro Mani <manisandro@gmail.com> - 4.0.0-0.3.beta.4
|
||||
- Update to 4.0.0-beta.4
|
||||
|
||||
* Sat Aug 25 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 3.05.02-1
|
||||
- Update to latest version
|
||||
- Fix descriptions of language packs
|
||||
|
||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.05.01-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Tue Jul 10 2018 Pete Walter <pwalter@fedoraproject.org> - 3.05.01-8
|
||||
- Rebuild for ICU 62
|
||||
|
||||
* Mon Apr 30 2018 Pete Walter <pwalter@fedoraproject.org> - 3.05.01-7
|
||||
- Rebuild for ICU 61.1
|
||||
|
||||
* Mon Feb 19 2018 Sandro Mani <manisandro@gmail.coM> - 3.05.01-6
|
||||
- Add missing BR: gcc-c++, make
|
||||
|
||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.05.01-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Thu Nov 30 2017 Pete Walter <pwalter@fedoraproject.org> - 3.05.01-4
|
||||
- Rebuild for ICU 60.1
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.05.01-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.05.01-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Sat Jun 03 2017 Sandro Mani <manisandro@gmail.com> - 3.05.01-1
|
||||
- Update to 3.05.01
|
||||
|
||||
* Tue Feb 21 2017 Sandro Mani <manisandro@gmail.com> - 3.05.00-1
|
||||
- Update to 3.05.00
|
||||
|
||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.04.01-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Tue Jan 03 2017 Adam Williamson <awilliam@redhat.com> - 3.04.01-3
|
||||
- Rebuild (to fix behaviour on big-endian arches after leptonica endianness fix)
|
||||
|
||||
* Fri Apr 15 2016 David Tardon <dtardon@redhat.com> - 3.04.01-2
|
||||
- rebuild for ICU 57.1
|
||||
|
||||
* Fri Feb 19 2016 Sandro Mani <manisandro@gmail.com> - 3.04.01-1
|
||||
- Update to 3.04.01
|
||||
|
||||
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.04.00-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Tue Jan 26 2016 Sandro Mani <manisandro@gmail.com> - 3.04.00-5
|
||||
- Rebuild (leptonica)
|
||||
|
||||
* Tue Jan 26 2016 Sandro Mani <manisandro@gmail.com> - 3.04.00-4
|
||||
- Rebuild (leptonica)
|
||||
|
||||
* Mon Jan 25 2016 Parag Nemade <pnemade AT redhat DOT com> - 3.04.00-3
|
||||
- Added virtual provides to follow langpacks naming guidelines
|
||||
- Added Supplements tag for new way of langpacks installation
|
||||
|
|
|
@ -0,0 +1,70 @@
|
|||
diff -rupN --no-dereference tesseract-5.3.0/CMakeLists.txt tesseract-5.3.0-new/CMakeLists.txt
|
||||
--- tesseract-5.3.0/CMakeLists.txt 2022-12-22 14:57:57.000000000 +0100
|
||||
+++ tesseract-5.3.0-new/CMakeLists.txt 2022-12-23 10:33:09.303707322 +0100
|
||||
@@ -345,7 +345,7 @@ elseif(UNIX)
|
||||
set(LIB_pthread pthread)
|
||||
endif()
|
||||
elseif(WIN32)
|
||||
- set(LIB_Ws2_32 Ws2_32)
|
||||
+ set(LIB_Ws2_32 ws2_32)
|
||||
endif()
|
||||
|
||||
add_definitions("-DCMAKE_BUILD")
|
||||
@@ -812,11 +812,14 @@ set_target_properties(libtesseract
|
||||
set_target_properties(libtesseract
|
||||
PROPERTIES SOVERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
|
||||
|
||||
-if(WIN32)
|
||||
+if(MSVC)
|
||||
set_target_properties(libtesseract
|
||||
PROPERTIES OUTPUT_NAME tesseract${VERSION_MAJOR}${VERSION_MINOR})
|
||||
set_target_properties(libtesseract
|
||||
PROPERTIES DEBUG_OUTPUT_NAME tesseract${VERSION_MAJOR}${VERSION_MINOR}d)
|
||||
+elseif(MINGW)
|
||||
+ set_target_properties(libtesseract PROPERTIES SUFFIX "-${VERSION_MAJOR}${VERSION_MINOR}${CMAKE_SHARED_LIBRARY_SUFFIX}")
|
||||
+ set_target_properties(libtesseract PROPERTIES OUTPUT_NAME tesseract)
|
||||
else()
|
||||
set_target_properties(libtesseract PROPERTIES OUTPUT_NAME tesseract)
|
||||
endif()
|
||||
@@ -931,9 +934,9 @@ install(
|
||||
|
||||
if(INSTALL_CONFIGS)
|
||||
install(FILES ${TESSERACT_CONFIGS}
|
||||
- DESTINATION ${CMAKE_INSTALL_PREFIX}/share/tessdata/configs)
|
||||
+ DESTINATION ${TESSDATA_PREFIX}/tessdata/configs)
|
||||
install(FILES ${TESSERACT_TESSCONFIGS}
|
||||
- DESTINATION ${CMAKE_INSTALL_PREFIX}/share/tessdata/tessconfigs)
|
||||
+ DESTINATION ${TESSDATA_PREFIX}/tessdata/tessconfigs)
|
||||
endif()
|
||||
|
||||
# ##############################################################################
|
||||
diff -rupN --no-dereference tesseract-5.3.0/src/training/CMakeLists.txt tesseract-5.3.0-new/src/training/CMakeLists.txt
|
||||
--- tesseract-5.3.0/src/training/CMakeLists.txt 2022-12-22 14:57:57.000000000 +0100
|
||||
+++ tesseract-5.3.0-new/src/training/CMakeLists.txt 2022-12-23 10:33:09.303707322 +0100
|
||||
@@ -115,7 +115,7 @@ if(NOT DISABLED_LEGACY_ENGINE)
|
||||
common/trainingsampleset.h)
|
||||
endif()
|
||||
|
||||
-add_library(common_training ${COMMON_TRAINING_SRC})
|
||||
+add_library(common_training STATIC ${COMMON_TRAINING_SRC})
|
||||
target_include_directories(common_training PUBLIC common
|
||||
${CMAKE_CURRENT_BINARY_DIR})
|
||||
target_link_libraries(common_training PUBLIC libtesseract)
|
||||
@@ -254,7 +254,7 @@ if(ICU_FOUND)
|
||||
|
||||
file(GLOB unicharset_training_src unicharset/*)
|
||||
|
||||
- add_library(unicharset_training ${unicharset_training_src})
|
||||
+ add_library(unicharset_training STATIC ${unicharset_training_src})
|
||||
if(SW_BUILD)
|
||||
target_link_libraries(unicharset_training
|
||||
PUBLIC common_training org.sw.demo.unicode.icu.i18n)
|
||||
@@ -378,7 +378,7 @@ if(ICU_FOUND)
|
||||
|
||||
file(GLOB pango_training_src pango/*)
|
||||
|
||||
- add_library(pango_training ${pango_training_src})
|
||||
+ add_library(pango_training STATIC ${pango_training_src})
|
||||
target_link_libraries(pango_training PUBLIC unicharset_training)
|
||||
if(SW_BUILD)
|
||||
target_link_libraries(pango_training
|
|
@ -1,37 +0,0 @@
|
|||
diff -rupN tesseract-3.04.00/ccutil/Makefile.am tesseract-3.04.00-new/ccutil/Makefile.am
|
||||
--- tesseract-3.04.00/ccutil/Makefile.am 2015-07-11 09:53:12.000000000 +0200
|
||||
+++ tesseract-3.04.00-new/ccutil/Makefile.am 2015-09-12 19:10:31.983919381 +0200
|
||||
@@ -3,7 +3,7 @@ SUBDIRS =
|
||||
AM_CXXFLAGS =
|
||||
|
||||
if !NO_TESSDATA_PREFIX
|
||||
-AM_CXXFLAGS += -DTESSDATA_PREFIX=@datadir@/
|
||||
+AM_CXXFLAGS += -DTESSDATA_PREFIX=@datadir@/tesseract/
|
||||
endif
|
||||
|
||||
if VISIBILITY
|
||||
diff -rupN tesseract-3.04.00/tessdata/configs/Makefile.am tesseract-3.04.00-new/tessdata/configs/Makefile.am
|
||||
--- tesseract-3.04.00/tessdata/configs/Makefile.am 2015-07-11 09:53:12.000000000 +0200
|
||||
+++ tesseract-3.04.00-new/tessdata/configs/Makefile.am 2015-09-12 19:10:40.978587765 +0200
|
||||
@@ -1,3 +1,3 @@
|
||||
-datadir = @datadir@/tessdata/configs
|
||||
+datadir = @datadir@/tesseract/tessdata/configs
|
||||
data_DATA = inter makebox box.train unlv ambigs.train api_config kannada box.train.stderr quiet logfile digits hocr linebox pdf rebox strokewidth bigram
|
||||
EXTRA_DIST = inter makebox box.train unlv ambigs.train api_config kannada box.train.stderr quiet logfile digits hocr linebox pdf rebox strokewidth bigram
|
||||
diff -rupN tesseract-3.04.00/tessdata/Makefile.am tesseract-3.04.00-new/tessdata/Makefile.am
|
||||
--- tesseract-3.04.00/tessdata/Makefile.am 2015-07-11 09:53:12.000000000 +0200
|
||||
+++ tesseract-3.04.00-new/tessdata/Makefile.am 2015-09-12 19:10:31.985919304 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-datadir = @datadir@/tessdata
|
||||
+datadir = @datadir@/tesseract/tessdata
|
||||
|
||||
data_DATA = pdf.ttf
|
||||
EXTRA_DIST = $(data_DATA)
|
||||
diff -rupN tesseract-3.04.00/tessdata/tessconfigs/Makefile.am tesseract-3.04.00-new/tessdata/tessconfigs/Makefile.am
|
||||
--- tesseract-3.04.00/tessdata/tessconfigs/Makefile.am 2015-07-11 09:53:12.000000000 +0200
|
||||
+++ tesseract-3.04.00-new/tessdata/tessconfigs/Makefile.am 2015-09-12 19:10:48.218340816 +0200
|
||||
@@ -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
|
|
@ -0,0 +1,28 @@
|
|||
From 2025b53de6b3d97285d7c5f80497493007c586c3 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Mon, 30 Jan 2023 11:27:07 -0800
|
||||
Subject: [PATCH] Fix build with gcc 13 by including <cstdint>
|
||||
|
||||
gcc 13 moved some includes around and as a result <cstdint> is
|
||||
no longer transitively included [1]. Explicitly include it for
|
||||
int32_t.
|
||||
|
||||
[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/ccutil/params.h | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/ccutil/params.h b/src/ccutil/params.h
|
||||
index f514d8709c..0f3f874357 100644
|
||||
--- a/src/ccutil/params.h
|
||||
+++ b/src/ccutil/params.h
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include <tesseract/export.h> // for TESS_API
|
||||
|
||||
+#include <cstdint>
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include <string>
|
|
@ -0,0 +1,29 @@
|
|||
From 5e116fa5cad249b8a08d22af652cf52f44fbb8cd Mon Sep 17 00:00:00 2001
|
||||
From: Frank Dana <ferdnyc@gmail.com>
|
||||
Date: Thu, 2 Feb 2023 19:57:59 -0500
|
||||
Subject: [PATCH] Fix libdir in tesseract.pc from CMake
|
||||
|
||||
tesseract.pc.cmake was hardcoding libdir to
|
||||
`{prefix}/lib`, which is wrong for systems that use
|
||||
`/usr/lib64/` on 64-bit. `CMAKE_INSTALL_LIBDIR`
|
||||
is already expected to contain the libdir path
|
||||
relative to the install prefix.
|
||||
---
|
||||
tesseract.pc.cmake | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tesseract.pc.cmake b/tesseract.pc.cmake
|
||||
index 7f36ce19..5469a398 100644
|
||||
--- a/tesseract.pc.cmake
|
||||
+++ b/tesseract.pc.cmake
|
||||
@@ -1,6 +1,6 @@
|
||||
prefix=@CMAKE_INSTALL_PREFIX@
|
||||
exec_prefix=${prefix}/bin
|
||||
-libdir=${prefix}/lib
|
||||
+libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
|
||||
includedir=${prefix}/include
|
||||
|
||||
Name: @tesseract_NAME@
|
||||
--
|
||||
2.39.1
|
||||
|
Loading…
Reference in New Issue