2018-11-13 16:43:03 +00:00
|
|
|
#global commit 87635c1ecb2ddba0fa1484e57680090b8bb7ac87
|
|
|
|
#global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
#global tessdata_commit 7274cfad453d770f36b53ec5a2294ddd6d905703
|
|
|
|
#global tessdata_shortcommit %(c=%{tessdata_commit}; echo ${c:0:7})
|
|
|
|
|
|
|
|
#global pre beta.4
|
|
|
|
#global tessdata_pre beta.1
|
2016-02-20 18:31:07 +00:00
|
|
|
|
2015-10-06 09:30:59 +00:00
|
|
|
Name: tesseract
|
2018-11-13 16:43:03 +00:00
|
|
|
Version: 4.0.0
|
2019-01-23 22:10:23 +00:00
|
|
|
Release: 2%{?pre:.%pre}%{?commit:.git%{shortcommit}}%{?dist}
|
2015-10-06 09:30:59 +00:00
|
|
|
Summary: Raw OCR Engine
|
2007-06-16 13:50:50 +00:00
|
|
|
|
2015-10-06 09:30:59 +00:00
|
|
|
License: ASL 2.0
|
|
|
|
URL: https://github.com/tesseract-ocr/%{name}
|
2018-11-13 16:43:03 +00:00
|
|
|
%if 0%{?commit:1}
|
|
|
|
Source0: https://github.com/tesseract-ocr/tesseract/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
|
|
|
|
%else
|
|
|
|
Source0: https://github.com/tesseract-ocr/tesseract/archive/%{version}%{?pre:-%pre}/%{name}-%{version}%{?pre:-%pre}.tar.gz
|
|
|
|
%endif
|
|
|
|
%if 0%{?tessdata_commit:1}
|
|
|
|
Source1: https://github.com/tesseract-ocr/tessdata_fast/archive/%{tessdata_commit}/tessdata_fast-%{tessdata_shortcommit}.tar.gz
|
|
|
|
%else
|
|
|
|
Source1: https://github.com/tesseract-ocr/tessdata_fast/archive/%{version}%{?tessdata_pre:-%tessdata_pre}/tessdata_fast-%{version}%{?tessdata_pre:-%tessdata_pre}.tar.gz
|
|
|
|
%endif
|
2015-10-06 09:30:59 +00:00
|
|
|
|
|
|
|
# Tweak location of tessdata folder
|
|
|
|
Patch0: tesseract_datadir.patch
|
|
|
|
|
2018-11-13 16:43:03 +00:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: autoconf-archive
|
2018-02-19 10:04:42 +00:00
|
|
|
BuildRequires: gcc-c++
|
2018-11-13 16:43:03 +00:00
|
|
|
BuildRequires: libtool
|
2015-10-06 09:30:59 +00:00
|
|
|
BuildRequires: libtiff-devel
|
|
|
|
BuildRequires: leptonica-devel
|
|
|
|
BuildRequires: cairo-devel
|
|
|
|
BuildRequires: libicu-devel
|
|
|
|
BuildRequires: pango-devel
|
2018-11-13 16:43:03 +00:00
|
|
|
|
|
|
|
# TODO Obsolete langpacks not provided anymore
|
2007-06-16 13:50:50 +00:00
|
|
|
|
2014-03-27 18:45:03 +00:00
|
|
|
|
2007-06-16 13:50:50 +00:00
|
|
|
%description
|
|
|
|
A commercial quality OCR engine originally developed at HP between 1985 and
|
|
|
|
1995. In 1995, this engine was among the top 3 evaluated by UNLV. It was
|
|
|
|
open-sourced by HP and UNLV in 2005.
|
|
|
|
|
2015-10-06 09:30:59 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
2007-06-16 13:50:50 +00:00
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains header file for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
2015-10-06 09:30:59 +00:00
|
|
|
|
|
|
|
%package osd
|
|
|
|
Summary: Orientation & Script Detection Data for %{name}
|
2018-11-13 16:43:03 +00:00
|
|
|
BuildArch: noarch
|
2018-11-13 17:24:46 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2015-10-06 09:30:59 +00:00
|
|
|
|
2014-03-27 18:45:03 +00:00
|
|
|
%description osd
|
2015-10-06 09:30:59 +00:00
|
|
|
Orientation & Script Detection Data for %{name}
|
|
|
|
|
2018-11-13 16:43:03 +00:00
|
|
|
|
|
|
|
%package tools
|
|
|
|
Summary: Training tools for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
The %{name}-tools package contains tools for training %{name}.
|
|
|
|
|
|
|
|
|
2016-01-25 16:05:17 +00:00
|
|
|
# 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}\
|
2015-10-06 09:30:59 +00:00
|
|
|
BuildArch: noarch\
|
|
|
|
Requires: %{name} = %{version}-%{release}\
|
2016-01-25 16:05:17 +00:00
|
|
|
%{-l:Provides: %{name}-langpack-%{langcode} = %{version}-%{release}\
|
|
|
|
Supplements: (%{name} = %{version}-%{release} and langpacks-%{langcode})}\
|
2015-10-06 09:30:59 +00:00
|
|
|
\
|
2016-01-25 16:05:17 +00:00
|
|
|
%description langpack-%{macrolang}\
|
|
|
|
%{langname} language data for %{name}.\
|
2015-10-06 09:30:59 +00:00
|
|
|
\
|
2016-01-25 16:05:17 +00:00
|
|
|
%files langpack-%{macrolang}\
|
|
|
|
%{_datadir}/%{name}/tessdata/%{macrolang}.*
|
2015-10-06 09:30:59 +00:00
|
|
|
|
2018-11-13 16:43:03 +00:00
|
|
|
# define script_subpkg macro
|
|
|
|
# s: script name
|
|
|
|
# n: package name
|
|
|
|
#
|
|
|
|
%define script_subpkg(s:n:) \
|
|
|
|
%define scriptname %{-s:%{-s*}}%{!-s:%{error:Script name defined}} \
|
|
|
|
%define filename %{-n:%{-n*}}%{!-n:%{error:Package name not defined}} \
|
|
|
|
%define pkgname %(echo %filename | tr '[:upper:]' '[:lower:]') \
|
|
|
|
\
|
|
|
|
%package script-%{pkgname}\
|
|
|
|
Summary: %{scriptname} script data for %{name}\
|
|
|
|
BuildArch: noarch\
|
|
|
|
Requires: %{name} = %{version}-%{release}\
|
|
|
|
\
|
|
|
|
%description script-%{pkgname}\
|
|
|
|
%{scriptname} script data for %{name}.\
|
|
|
|
\
|
|
|
|
%files script-%{pkgname}\
|
|
|
|
%{_datadir}/%{name}/tessdata/script/%{filename}.*
|
|
|
|
|
2015-10-06 09:30:59 +00:00
|
|
|
# see https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
|
2018-11-13 16:43:03 +00:00
|
|
|
# and https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes
|
2016-01-25 16:05:17 +00:00
|
|
|
%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
|
2018-08-25 06:16:44 +00:00
|
|
|
%lang_subpkg -m aze_cyrl -n %{quote:Azerbaijani (Cyrilic)}
|
2016-01-25 16:05:17 +00:00
|
|
|
%lang_subpkg -m bel -l bel -n Belarusian
|
|
|
|
%lang_subpkg -m ben -l bn -n Bengali
|
2018-08-25 06:16:44 +00:00
|
|
|
%lang_subpkg -m bod -l bo -n %{quote:Tibetan (Standard)}
|
2016-01-25 16:05:17 +00:00
|
|
|
%lang_subpkg -m bos -l bs -n Bosnian
|
2018-11-13 16:43:03 +00:00
|
|
|
%lang_subpkg -m bre -l br -n Breton
|
2016-01-25 16:05:17 +00:00
|
|
|
%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
|
2018-08-25 06:16:44 +00:00
|
|
|
%lang_subpkg -m chi_sim -l zh_CN -n %{quote:Chinese (Simplified)}
|
2018-11-13 16:43:03 +00:00
|
|
|
%lang_subpkg -m chi_sim_vert -l zh_CN -n %{quote:Chinese (Simplified, Vertical)}
|
2018-08-25 06:16:44 +00:00
|
|
|
%lang_subpkg -m chi_tra -l zh_TW -n %{quote:Chinese (Traditional)}
|
2018-11-13 16:43:03 +00:00
|
|
|
%lang_subpkg -m chi_tra_vert -l zh_TW -n %{quote:Chinese (Traditional, Vertical)}
|
2016-01-25 16:05:17 +00:00
|
|
|
%lang_subpkg -m chr -n Cherokee
|
2018-11-13 16:43:03 +00:00
|
|
|
%lang_subpkg -m cos -l co -n Corsican
|
2016-01-25 16:05:17 +00:00
|
|
|
%lang_subpkg -m cym -l cy -n Welsh
|
|
|
|
%lang_subpkg -m dan -l da -n Danish
|
|
|
|
%lang_subpkg -m deu -l de -n German
|
2018-11-13 16:43:03 +00:00
|
|
|
%lang_subpkg -m div -l dv -n %{quote:Dhivehi; Maldivian}
|
2016-01-25 16:05:17 +00:00
|
|
|
%lang_subpkg -m dzo -n Dzongkha
|
|
|
|
%lang_subpkg -m ell -l el -n Greek
|
2018-08-25 06:16:44 +00:00
|
|
|
%lang_subpkg -m enm -n %{quote:Middle English (1100-1500)}
|
2016-01-25 16:05:17 +00:00
|
|
|
%lang_subpkg -m epo -l eo -n Esperanto
|
|
|
|
%lang_subpkg -m est -l et -n Estonian
|
|
|
|
%lang_subpkg -m eus -l eu -n Basque
|
2018-11-13 16:43:03 +00:00
|
|
|
%lang_subpkg -m fao -l fo -n %{quote:Faroese}
|
2018-08-25 06:16:44 +00:00
|
|
|
%lang_subpkg -m fas -l fa -n %{quote:Persian (Farsi)}
|
2018-11-13 16:43:03 +00:00
|
|
|
%lang_subpkg -m fil -n %{quote:Filipino; Pilipino}
|
2016-01-25 16:05:17 +00:00
|
|
|
%lang_subpkg -m fin -l fi -n Finnish
|
|
|
|
%lang_subpkg -m fra -l fr -n French
|
|
|
|
%lang_subpkg -m frk -n Frankish
|
2018-08-25 06:16:44 +00:00
|
|
|
%lang_subpkg -m frm -n %{quote:Middle French (ca. 1400-1600)}
|
2018-11-13 16:43:03 +00:00
|
|
|
%lang_subpkg -m fry -l fy -n %{quote:Western Frisian}
|
|
|
|
%lang_subpkg -m gla -l gd -n %{quote:Gaelic; Scottish Gaelic}
|
2016-01-25 16:05:17 +00:00
|
|
|
%lang_subpkg -m gle -l ga -n Irish
|
|
|
|
%lang_subpkg -m glg -l gl -n Galician
|
2018-08-25 06:16:44 +00:00
|
|
|
%lang_subpkg -m grc -n %{quote:Ancient Greek}
|
2016-01-25 16:05:17 +00:00
|
|
|
%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
|
2018-11-13 16:43:03 +00:00
|
|
|
%lang_subpkg -m hye -l hy -n Armenian
|
2016-01-25 16:05:17 +00:00
|
|
|
%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
|
2018-08-25 06:16:44 +00:00
|
|
|
%lang_subpkg -m ita_old -n %{quote:Italian (Old)}
|
2016-01-25 16:05:17 +00:00
|
|
|
%lang_subpkg -m jav -l jav -n Javanese
|
|
|
|
%lang_subpkg -m jpn -l ja -n Japanese
|
2018-11-13 16:43:03 +00:00
|
|
|
%lang_subpkg -m jpn_vert -l ja -n "Japanese (Vertical)"
|
2016-01-25 16:05:17 +00:00
|
|
|
%lang_subpkg -m kan -l kn -n Kannada
|
|
|
|
%lang_subpkg -m kat -l ka -n Georgian
|
2018-08-25 06:16:44 +00:00
|
|
|
%lang_subpkg -m kat_old -n %{quote:Georgian (Old)}
|
2016-01-25 16:05:17 +00:00
|
|
|
%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
|
2018-11-13 16:43:03 +00:00
|
|
|
%lang_subpkg -m kor_vert -l ko -n "Korean (Vertical)"
|
|
|
|
%lang_subpkg -m kmr -l ku -n Kurmanji
|
2016-01-25 16:05:17 +00:00
|
|
|
%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
|
2018-11-13 16:43:03 +00:00
|
|
|
%lang_subpkg -m ltz -l lb -n Luxembourgish
|
2016-01-25 16:05:17 +00:00
|
|
|
%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
|
2018-11-13 16:43:03 +00:00
|
|
|
%lang_subpkg -m mon -l mn -n Mongolian
|
|
|
|
%lang_subpkg -m mri -l mi -n Maori
|
2016-01-25 16:05:17 +00:00
|
|
|
%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
|
2018-11-13 16:43:03 +00:00
|
|
|
%lang_subpkg -m oci -l oc -n Occitan
|
2016-01-25 16:05:17 +00:00
|
|
|
%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
|
2018-11-13 16:43:03 +00:00
|
|
|
%lang_subpkg -m que -l qu -n Quechuan
|
2016-01-25 16:05:17 +00:00
|
|
|
%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 slv -l sl -n Slovenian
|
2018-11-13 16:43:03 +00:00
|
|
|
%lang_subpkg -m snd -l sd -n Sindhi
|
2016-01-25 16:05:17 +00:00
|
|
|
%lang_subpkg -m spa -l es -n Spanish
|
2018-08-25 06:16:44 +00:00
|
|
|
%lang_subpkg -m spa_old -n %{quote:Spanish (Old)}
|
2016-01-25 16:05:17 +00:00
|
|
|
%lang_subpkg -m sqi -l sq -n Albanian
|
|
|
|
%lang_subpkg -m srp -l sr -n Serbian
|
2018-08-25 06:16:44 +00:00
|
|
|
%lang_subpkg -m srp_latn -n %{quote:Serbian (Latin)}
|
2018-11-13 16:43:03 +00:00
|
|
|
%lang_subpkg -m sun -l su -n Sundanese
|
2016-01-25 16:05:17 +00:00
|
|
|
%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
|
2018-11-13 16:43:03 +00:00
|
|
|
%lang_subpkg -m tat -l tt -n Tatar
|
2016-01-25 16:05:17 +00:00
|
|
|
%lang_subpkg -m tel -l te -n Telugu
|
|
|
|
%lang_subpkg -m tgk -l tg -n Tajik
|
|
|
|
%lang_subpkg -m tha -l th -n Thai
|
|
|
|
%lang_subpkg -m tir -l ti -n Tigrinya
|
2018-11-13 16:43:03 +00:00
|
|
|
%lang_subpkg -m ton -l to -n Tongan
|
2016-01-25 16:05:17 +00:00
|
|
|
%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
|
2018-08-25 06:16:44 +00:00
|
|
|
%lang_subpkg -m uzb_cyrl -n %{quote:Uzbek (Cyrillic)}
|
2016-01-25 16:05:17 +00:00
|
|
|
%lang_subpkg -m vie -l vi -n Vietnamese
|
|
|
|
%lang_subpkg -m yid -l yi -n Yiddish
|
2018-11-13 16:43:03 +00:00
|
|
|
%lang_subpkg -m yor -l yo -n Yoruba
|
|
|
|
|
|
|
|
%script_subpkg -n Arabic -s Arabic
|
|
|
|
%script_subpkg -n Armenian -s Armenian
|
|
|
|
%script_subpkg -n Bengali -s Bengali
|
|
|
|
%script_subpkg -n Canadian_Aboriginal -s "Canadian (Aboriginal)"
|
|
|
|
%script_subpkg -n Cherokee -s Cherokee
|
|
|
|
%script_subpkg -n Cyrillic -s Cyrillic
|
|
|
|
%script_subpkg -n Devanagari -s Devanagari
|
|
|
|
%script_subpkg -n Ethiopic -s Ethiopic
|
|
|
|
%script_subpkg -n Fraktur -s Fraktur
|
|
|
|
%script_subpkg -n Georgian -s Georgian
|
|
|
|
%script_subpkg -n Greek -s Greek
|
|
|
|
%script_subpkg -n Gujarati -s Gujarati
|
|
|
|
%script_subpkg -n Gurmukhi -s Gurmukhi
|
|
|
|
%script_subpkg -n HanS -s "Han (Simplified)"
|
|
|
|
%script_subpkg -n HanS_vert -s "Han (Simplified, Vertical)"
|
|
|
|
%script_subpkg -n HanT -s "Han (Traditional)"
|
|
|
|
%script_subpkg -n HanT_vert -s "Han (Traditional, Vertical)"
|
|
|
|
%script_subpkg -n Hangul -s Hangul
|
|
|
|
%script_subpkg -n Hangul_vert -s "Hangul (Vertical)"
|
|
|
|
%script_subpkg -n Hebrew -s Hebrew
|
|
|
|
%script_subpkg -n Japanese -s Japanese
|
|
|
|
%script_subpkg -n Japanese_vert -s "Japanese (Vertical)"
|
|
|
|
%script_subpkg -n Kannada -s Kannada
|
|
|
|
%script_subpkg -n Khmer -s Khmer
|
|
|
|
%script_subpkg -n Lao -s Lao
|
|
|
|
%script_subpkg -n Latin -s Latin
|
|
|
|
%script_subpkg -n Malayalam -s Malayalam
|
|
|
|
%script_subpkg -n Myanmar -s Myanmar
|
|
|
|
%script_subpkg -n Oriya -s Oriya
|
|
|
|
%script_subpkg -n Sinhala -s Sinhala
|
|
|
|
%script_subpkg -n Syriac -s Syriac
|
|
|
|
%script_subpkg -n Tamil -s Tamil
|
|
|
|
%script_subpkg -n Telugu -s Telugu
|
|
|
|
%script_subpkg -n Thaana -s Thaana
|
|
|
|
%script_subpkg -n Thai -s Thai
|
|
|
|
%script_subpkg -n Tibetan -s Tibetan
|
|
|
|
%script_subpkg -n Vietnamese -s Vietnamese
|
2015-10-06 09:30:59 +00:00
|
|
|
|
2014-03-27 18:45:03 +00:00
|
|
|
|
2007-06-16 13:50:50 +00:00
|
|
|
%prep
|
2018-11-13 16:43:03 +00:00
|
|
|
%if 0%{?commit:1}
|
|
|
|
%autosetup -p1 -n %{name}-%{commit} -a1
|
|
|
|
%else
|
|
|
|
%autosetup -p1 -n %{name}-%{version}%{?pre:-%pre} -a1
|
|
|
|
%endif
|
2015-10-06 09:30:59 +00:00
|
|
|
|
2007-06-16 13:50:50 +00:00
|
|
|
|
|
|
|
%build
|
2014-08-12 21:37:16 +00:00
|
|
|
autoreconf -ifv
|
2010-11-16 21:15:21 +00:00
|
|
|
%configure --disable-static
|
2015-10-06 09:30:59 +00:00
|
|
|
|
2017-02-21 21:38:39 +00:00
|
|
|
%make_build
|
|
|
|
%make_build training
|
2007-06-16 13:50:50 +00:00
|
|
|
|
2015-10-06 09:30:59 +00:00
|
|
|
|
2007-06-16 13:50:50 +00:00
|
|
|
%install
|
2014-08-12 21:37:16 +00:00
|
|
|
%make_install
|
|
|
|
%make_install training-install
|
2015-10-06 09:30:59 +00:00
|
|
|
|
|
|
|
find %{buildroot}%{_libdir} -type f -name '*.la' -delete
|
|
|
|
|
2018-11-13 16:43:03 +00:00
|
|
|
mkdir -p %{buildroot}/%{_datadir}/%{name}/tessdata/
|
|
|
|
%if 0%{?tessdata_commit:1}
|
|
|
|
cp -a tessdata_fast-%{tessdata_commit}/* %{buildroot}/%{_datadir}/%{name}/tessdata/
|
|
|
|
%else
|
|
|
|
cp -a tessdata_fast-%{version}%{?tessdata_pre:-%tessdata_pre}/* %{buildroot}/%{_datadir}/%{name}/tessdata/
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# Tessdata license is same as the tesseract license, delete the tessdata COPYING file
|
|
|
|
rm -f %{buildroot}/%{_datadir}/%{name}/tessdata/COPYING
|
|
|
|
|
|
|
|
# Remove tessdata README.md from buildroot, rename source for %%doc to avoid conflict with tesseract README.md
|
|
|
|
rm -f %{buildroot}/%{_datadir}/%{name}/tessdata/README.md
|
|
|
|
%if 0%{?tessdata_commit:1}
|
|
|
|
mv tessdata_fast-%{tessdata_commit}/README.md README_tessdata.md
|
|
|
|
%else
|
|
|
|
mv tessdata_fast-%{version}%{?tessdata_pre:-%tessdata_pre}/README.md README_tessdata.md
|
|
|
|
%endif
|
|
|
|
|
2015-10-06 09:30:59 +00:00
|
|
|
|
2007-06-16 13:50:50 +00:00
|
|
|
|
2019-01-22 17:41:09 +00:00
|
|
|
%ldconfig_scriptlets
|
2010-11-16 21:15:21 +00:00
|
|
|
|
2015-10-06 09:30:59 +00:00
|
|
|
|
2007-06-16 13:50:50 +00:00
|
|
|
%files
|
2015-10-06 09:30:59 +00:00
|
|
|
%license COPYING
|
2018-11-13 16:43:03 +00:00
|
|
|
%doc AUTHORS ChangeLog README.md README_tessdata.md
|
2013-04-27 19:05:06 +00:00
|
|
|
%{_bindir}/%{name}
|
2014-03-27 18:45:03 +00:00
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
%dir %{_datadir}/%{name}/tessdata
|
2015-10-06 09:30:59 +00:00
|
|
|
%{_datadir}/%{name}/tessdata/configs/
|
|
|
|
%{_datadir}/%{name}/tessdata/tessconfigs/
|
2014-03-27 18:45:03 +00:00
|
|
|
%{_datadir}/%{name}/tessdata/eng.*
|
2014-08-12 21:37:16 +00:00
|
|
|
%{_datadir}/%{name}/tessdata/pdf.ttf
|
2018-11-13 16:43:03 +00:00
|
|
|
%{_libdir}/lib%{name}*.so.4*
|
2007-06-16 13:50:50 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/%{name}
|
2010-11-16 21:15:21 +00:00
|
|
|
%{_libdir}/lib%{name}*.so
|
2013-04-27 19:05:06 +00:00
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
2007-06-16 13:50:50 +00:00
|
|
|
|
2014-03-27 18:45:03 +00:00
|
|
|
%files osd
|
|
|
|
%{_datadir}/%{name}/tessdata/osd.traineddata
|
|
|
|
|
2018-11-13 16:43:03 +00:00
|
|
|
%files tools
|
|
|
|
%{_bindir}/ambiguous_words
|
|
|
|
%{_bindir}/classifier_tester
|
|
|
|
%{_bindir}/cntraining
|
|
|
|
%{_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
|
|
|
|
|
2015-10-06 09:30:59 +00:00
|
|
|
|
2007-06-16 13:50:50 +00:00
|
|
|
%changelog
|
2019-01-23 22:10:23 +00:00
|
|
|
* Wed Jan 23 2019 Pete Walter <pwalter@fedoraproject.org> - 4.0.0-2
|
|
|
|
- Rebuild for ICU 63
|
|
|
|
|
2018-11-13 16:43:03 +00:00
|
|
|
* 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
|
|
|
|
|
2018-08-25 06:45:25 +00:00
|
|
|
* 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
|
|
|
|
|
2018-07-14 07:27:06 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.05.01-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-07-10 21:02:29 +00:00
|
|
|
* Tue Jul 10 2018 Pete Walter <pwalter@fedoraproject.org> - 3.05.01-8
|
|
|
|
- Rebuild for ICU 62
|
|
|
|
|
2018-04-30 19:42:39 +00:00
|
|
|
* Mon Apr 30 2018 Pete Walter <pwalter@fedoraproject.org> - 3.05.01-7
|
|
|
|
- Rebuild for ICU 61.1
|
|
|
|
|
2018-02-19 10:04:42 +00:00
|
|
|
* Mon Feb 19 2018 Sandro Mani <manisandro@gmail.coM> - 3.05.01-6
|
|
|
|
- Add missing BR: gcc-c++, make
|
|
|
|
|
2018-02-09 18:45:53 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.05.01-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-11-30 20:49:46 +00:00
|
|
|
* Thu Nov 30 2017 Pete Walter <pwalter@fedoraproject.org> - 3.05.01-4
|
|
|
|
- Rebuild for ICU 60.1
|
|
|
|
|
2017-08-03 09:19:17 +00:00
|
|
|
* 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
|
|
|
|
|
2017-07-27 20:09:05 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.05.01-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-06-03 06:23:57 +00:00
|
|
|
* Sat Jun 03 2017 Sandro Mani <manisandro@gmail.com> - 3.05.01-1
|
|
|
|
- Update to 3.05.01
|
|
|
|
|
2017-02-21 21:38:39 +00:00
|
|
|
* Tue Feb 21 2017 Sandro Mani <manisandro@gmail.com> - 3.05.00-1
|
|
|
|
- Update to 3.05.00
|
|
|
|
|
2017-02-11 15:47:30 +00: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
|
|
|
|
|
2017-01-04 01:39:10 +00:00
|
|
|
* 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)
|
|
|
|
|
2016-04-15 18:16:06 +00:00
|
|
|
* Fri Apr 15 2016 David Tardon <dtardon@redhat.com> - 3.04.01-2
|
|
|
|
- rebuild for ICU 57.1
|
|
|
|
|
2016-02-20 18:31:07 +00:00
|
|
|
* Fri Feb 19 2016 Sandro Mani <manisandro@gmail.com> - 3.04.01-1
|
|
|
|
- Update to 3.04.01
|
|
|
|
|
2016-02-05 01:28:36 +00:00
|
|
|
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.04.00-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2016-01-26 16:41:44 +00:00
|
|
|
* Tue Jan 26 2016 Sandro Mani <manisandro@gmail.com> - 3.04.00-5
|
|
|
|
- Rebuild (leptonica)
|
|
|
|
|
2016-01-26 10:34:41 +00:00
|
|
|
* Tue Jan 26 2016 Sandro Mani <manisandro@gmail.com> - 3.04.00-4
|
|
|
|
- Rebuild (leptonica)
|
|
|
|
|
2016-01-25 16:05:17 +00:00
|
|
|
* 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
|
|
|
|
|
2015-10-28 13:08:58 +00:00
|
|
|
* Wed Oct 28 2015 David Tardon <dtardon@redhat.com> - 3.04.00-2
|
|
|
|
- rebuild for ICU 56.1
|
|
|
|
|
2015-10-06 09:30:59 +00:00
|
|
|
* Sat Sep 12 2015 Sandro Mani <manisandro@gmail.com> - 3.04.00-1
|
|
|
|
- Update to 3.04.00
|
|
|
|
|
2015-06-19 02:44:39 +00:00
|
|
|
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.03-0.6.rc1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-05-02 16:10:29 +00:00
|
|
|
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 3.03-0.5.rc1
|
|
|
|
- Rebuilt for GCC 5 C++11 ABI change
|
|
|
|
|
2015-01-26 16:08:45 +00:00
|
|
|
* Mon Jan 26 2015 David Tardon <dtardon@redhat.com> - 3.03-0.4.rc1
|
|
|
|
- rebuild for ICU 54.1
|
|
|
|
|
2014-08-26 11:57:33 +00:00
|
|
|
* Tue Aug 26 2014 David Tardon <dtardon@redhat.com> - 3.03-0.3.rc1
|
|
|
|
- rebuild for ICU 53.1
|
|
|
|
|
2014-08-18 05:23:51 +00:00
|
|
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.03-0.2.rc1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-08-12 21:37:16 +00:00
|
|
|
* Tue Aug 12 2014 Sandro Mani <manisandro@gmail.com> - 3.03-0.1.rc1
|
|
|
|
- Update to v3.03-rc1
|
|
|
|
|
2014-06-08 08:22:53 +00:00
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.02.02-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-03-27 18:45:03 +00:00
|
|
|
* Thu Mar 27 2014 Karol Trzcionka <karlik at fedoraproject.org> - 3.02.02-3
|
|
|
|
- Fix rhbz#1037350 (-Werror=format-security)
|
|
|
|
- Add OSD data
|
|
|
|
- Remove BuildRoot tag
|
|
|
|
|
2013-08-04 03:44:14 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.02.02-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-04-27 19:05:06 +00:00
|
|
|
* Sat Apr 27 2013 Karol Trzcionka <karlik at fedoraproject.org> - 3.02.02-1
|
|
|
|
- Update to v3.02.02
|
|
|
|
- Apply pkgconfig patch rhbz#904806
|
|
|
|
|
2013-02-15 01:30:50 +00:00
|
|
|
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.01-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-10-06 21:36:44 +00:00
|
|
|
* Sat Oct 06 2012 Karol Trzcionka <karlik at fedoraproject.org> - 3.01-1
|
|
|
|
- Update to v3.01
|
|
|
|
- Add manual pages
|
|
|
|
- Add BRs leptonica, automake
|
|
|
|
|
2012-07-31 21:35:21 +00:00
|
|
|
* Tue Jul 31 2012 Kevin Kofler <Kevin@tigcc.ticalc.org> - 3.00-6
|
|
|
|
- Fix FTBFS with g++ 4.7
|
|
|
|
|
2012-07-21 23:15:28 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.00-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-02-28 20:21:25 +00:00
|
|
|
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.00-4
|
|
|
|
- Rebuilt for c++ ABI breakage
|
|
|
|
|
2012-01-14 06:34:42 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.00-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-02-09 18:46:18 +00:00
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.00-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-11-16 21:15:21 +00:00
|
|
|
* Tue Nov 16 2010 Karol Trzcionka <karlikt at gmail.com> - 3.00-1
|
|
|
|
- Update to v3.00
|
|
|
|
- Remove static libs and add dynamic
|
|
|
|
|
2009-10-21 11:14:42 +00:00
|
|
|
* Wed Oct 21 2009 Karol Trzcionka <karlikt at gmail.com> - 2.04-1
|
|
|
|
- Update to v2.04
|
|
|
|
- Add static libraries to -devel subpackage
|
|
|
|
|
2009-07-27 05:47:39 +00:00
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.03-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-03-04 17:13:30 +00:00
|
|
|
* Wed Mar 04 2009 Caolán McNamara <caolanm@redhat.com> - 2.03-3
|
|
|
|
- include stdio.h for snprintf
|
|
|
|
|
2009-02-25 19:57:55 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.03-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-05-03 22:58:53 +00:00
|
|
|
* Sun May 04 2008 Karol Trzcionka <karlikt at gmail.com> - 2.03-1
|
|
|
|
- Update to v2.03
|
2008-02-09 15:48:28 +00:00
|
|
|
* Sat Feb 09 2008 Karol Trzcionka <karlikt at gmail.com> - 2.01-2
|
|
|
|
- Rebuild for gcc43
|
2007-09-07 21:21:03 +00:00
|
|
|
* Fri Sep 07 2007 Karol Trzcionka <karlikt at gmail.com> - 2.01-1
|
|
|
|
- Upgrade to v2.01
|
2007-08-24 14:34:28 +00:00
|
|
|
* Tue Aug 21 2007 Karol Trzcionka <karlikt at gmail.com> - 2.00-1
|
|
|
|
- Upgrade to v2.00
|
2007-06-16 13:50:50 +00:00
|
|
|
* Thu Mar 22 2007 Karol Trzcionka <karlikt at gmail.com> - 1.04-1
|
|
|
|
- Change url and source
|
|
|
|
- Update to v1.04
|
|
|
|
- Make patch bases on upstream's v1.04b
|
|
|
|
- Change compilefix patch
|
|
|
|
- Adding -devel subpackage
|
|
|
|
* Thu Mar 22 2007 Karol Trzcionka <karlikt at gmail.com> - 1.03-2
|
|
|
|
- Including patch bases on cvs
|
|
|
|
* Tue Feb 13 2007 Karol Trzcionka <karlikt at gmail.com> - 1.03-1
|
|
|
|
- Update to v1.03
|
2014-08-12 21:37:16 +00:00
|
|
|
* Sat Jan 27 2007 Karol Trzcionka <karlikt at gmail.com> - 1.02-3
|
2007-06-16 13:50:50 +00:00
|
|
|
- Update BRs
|
|
|
|
- Fix x86_64 compile
|
|
|
|
* Sat Dec 30 2006 Karol Trzcionka <karlikt at gmail.com> - 1.02-2
|
|
|
|
- Fixed rpmlint warning in SRPM
|
|
|
|
* Fri Dec 29 2006 Karol Trzcionka <karlikt at gmail.com> - 1.02-1
|
2008-02-09 15:48:28 +00:00
|
|
|
- Initial Release
|