File tesseract-traineddata.spec of Package tesseract-traineddata
#
# spec file for package tesseract-traineddata
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
###################################################################
## DO NOT EDIT THIS SPEC FILE
## Generated by:
## perl tesseract-traineddata-gen-spec tesseract-traineddata.spec.in tesseract-traineddata.data
## To update the package edit tesseract-traineddata.spec.in and tesseract-traineddata.data
## and then run the above command
###################################################################
Name: tesseract-traineddata
Version: 0
Release: 0
Summary: Tesseract Traineddata for Various Languages
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://code.google.com/p/tesseract-ocr/
Source0: README
# traineddata files
Source100: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.afr.tar.gz
Source101: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.sqi.tar.gz
Source102: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.eng.tar.gz
Source103: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.ara.tar.gz
Source104: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.aze.tar.gz
Source105: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.eus.tar.gz
Source106: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.bel.tar.gz
Source107: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.ben.tar.gz
Source108: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.bul.tar.gz
Source109: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.cat.tar.gz
Source110: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.chr.tar.gz
Source111: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.chi_sim.tar.gz
Source112: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.chi_tra.tar.gz
Source113: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.hrv.tar.gz
Source114: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.ces.tar.gz
Source115: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.dan.tar.gz
Source116: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.nld.tar.gz
Source117: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.enm.tar.gz
Source118: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.epo.tar.gz
Source119: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.epo_alt.tar.gz
Source120: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.est.tar.gz
Source121: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.fin.tar.gz
Source122: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.frk.tar.gz
Source123: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.fra.tar.gz
Source124: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.frm.tar.gz
Source125: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.glg.tar.gz
Source126: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.deu.tar.gz
Source127: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.ell.tar.gz
Source128: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.grc.tar.gz
Source129: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.heb.tar.gz
Source130: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.01.heb-com.tar.gz
Source131: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.hin.tar.gz
Source132: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.hun.tar.gz
Source133: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.isl.tar.gz
Source134: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.ind.tar.gz
Source135: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.ita.tar.gz
Source136: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.ita_old.tar.gz
Source137: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.jpn.tar.gz
Source138: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.kan.tar.gz
Source139: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.kor.tar.gz
Source140: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.lav.tar.gz
Source141: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.lit.tar.gz
Source142: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.mkd.tar.gz
Source143: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.msa.tar.gz
Source144: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.mal.tar.gz
Source145: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.mlt.tar.gz
Source146: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.equ.tar.gz
Source147: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.nor.tar.gz
Source148: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.01.osd.tar.gz
Source149: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.pol.tar.gz
Source150: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.por.tar.gz
Source151: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.ron.tar.gz
Source152: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.rus.tar.gz
Source153: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.srp.tar.gz
Source154: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.slk.tar.gz
Source155: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.slv.tar.gz
Source156: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.spa.tar.gz
Source157: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.spa_old.tar.gz
Source158: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.swa.tar.gz
Source159: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.swe.tar.gz
Source160: http://tesseract-ocr.googlecode.com/files/swe-frak.traineddata.gz
Source161: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.tgl.tar.gz
Source162: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.tam.tar.gz
Source163: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.tel.tar.gz
Source164: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.tha.tar.gz
Source165: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.tur.tar.gz
Source166: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.ukr.tar.gz
Source167: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.vie.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%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. From 2007 it is developed by Google.
%package afrikaans
Version: 3.02
Release: 0
Summary: Afrikaans Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description afrikaans
The Afrikaans traineddata for Tesseract.
%package albanian
Version: 3.02
Release: 0
Summary: Albanian Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description albanian
The Albanian traineddata for Tesseract.
%package american
Version: 3.02
Release: 0
Summary: American Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-eng = 3.02
Obsoletes: tesseract-traineddata-eng < 3.01
%description american
The American traineddata for Tesseract.
%package arabic
Version: 3.02
Release: 0
Summary: Arabic Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description arabic
The Arabic traineddata for Tesseract.
%package azerbaijani
Version: 3.02
Release: 0
Summary: Azerbaijani Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description azerbaijani
The Azerbaijani traineddata for Tesseract.
%package basque
Version: 3.02
Release: 0
Summary: Basque Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description basque
The Basque traineddata for Tesseract.
%package belarusian
Version: 3.02
Release: 0
Summary: Belarusian Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description belarusian
The Belarusian traineddata for Tesseract.
%package bengali
Version: 3.02
Release: 0
Summary: Bengali Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description bengali
The Bengali traineddata for Tesseract.
%package bulgarian
Version: 3.02
Release: 0
Summary: Bulgarian Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-bul = 3.02
Obsoletes: tesseract-traineddata-bul <= 3.00
%description bulgarian
The Bulgarian traineddata for Tesseract.
%package catalan
Version: 3.02
Release: 0
Summary: Catalan Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-cat = 3.02
Obsoletes: tesseract-traineddata-cat <= 3.00
%description catalan
The Catalan traineddata for Tesseract.
%package cherokee
Version: 3.02
Release: 0
Summary: Cherokee Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description cherokee
The Cherokee traineddata for Tesseract.
%package chinese_simplified
Version: 3.02
Release: 0
Summary: Chinese (Simplified) Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-chi_sim = 3.02
Obsoletes: tesseract-traineddata-chi_sim <= 3.00
%description chinese_simplified
The Chinese (Simplified) traineddata for Tesseract.
%package chinese_traditional
Version: 3.02
Release: 0
Summary: Chinese (Traditional) Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-chi_tra = 3.02
Obsoletes: tesseract-traineddata-chi_tra <= 3.00
%description chinese_traditional
The Chinese (Traditional) traineddata for Tesseract.
%package croatian
Version: 3.02
Release: 0
Summary: Croatian Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description croatian
The Croatian traineddata for Tesseract.
%package czech
Version: 3.02
Release: 0
Summary: Czech Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-ces = 3.02
Obsoletes: tesseract-traineddata-ces <= 3.00
%description czech
The Czech traineddata for Tesseract.
%package danish
Version: 3.02
Release: 0
Summary: Danish and Danish (Fraktur) Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-dan = 3.02
Obsoletes: tesseract-traineddata-dan <= 3.00
Provides: tesseract-traineddata-danish_fraktur = 3.02
Obsoletes: tesseract-traineddata-danish_fraktur <= 3.00
%description danish
The Danish and Danish (Fraktur) traineddata for Tesseract.
%package dutch
Version: 3.02
Release: 0
Summary: Dutch Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-nld = 3.02
Obsoletes: tesseract-traineddata-nld <= 3.00
%description dutch
The Dutch traineddata for Tesseract.
%package english_middle_1100_to_1500
Version: 3.02
Release: 0
Summary: Middle English (1100-1500) Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description english_middle_1100_to_1500
The Middle English (1100-1500) traineddata for Tesseract.
%package esperanto
Version: 3.02
Release: 0
Summary: Esperanto Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description esperanto
The Esperanto traineddata for Tesseract.
%package esperanto_alternative
Version: 3.02
Release: 0
Summary: Esperanto Alternative Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description esperanto_alternative
The Esperanto Alternative traineddata for Tesseract.
%package estonian
Version: 3.02
Release: 0
Summary: Estonian Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description estonian
The Estonian traineddata for Tesseract.
%package finnish
Version: 3.02
Release: 0
Summary: Finnish Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-fin = 3.02
Obsoletes: tesseract-traineddata-fin <= 3.00
%description finnish
The Finnish traineddata for Tesseract.
%package frankish
Version: 3.02
Release: 0
Summary: Frankish Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description frankish
The Frankish traineddata for Tesseract.
%package french
Version: 3.02
Release: 0
Summary: French Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-fra = 3.02
Obsoletes: tesseract-traineddata-fra <= 3.00
%description french
The French traineddata for Tesseract.
%package french_middle_1400_to_1600
Version: 3.02
Release: 0
Summary: Middle French (ca. 1400-1600) Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description french_middle_1400_to_1600
The Middle French (ca. 1400-1600) traineddata for Tesseract.
%package galician
Version: 3.02
Release: 0
Summary: Galician Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description galician
The Galician traineddata for Tesseract.
%package german
Version: 3.02
Release: 0
Summary: German and German (Fraktur) Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-deu = 3.02
Obsoletes: tesseract-traineddata-deu <= 3.00
Provides: tesseract-traineddata-german_fraktur = 3.02
Obsoletes: tesseract-traineddata-german_fraktur <= 3.00
%description german
The German and German (Fraktur) traineddata for Tesseract.
%package greek
Version: 3.02
Release: 0
Summary: Greek Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-ell = 3.02
Obsoletes: tesseract-traineddata-ell <= 3.00
%description greek
The Greek traineddata for Tesseract.
%package greek_ancient
Version: 3.02
Release: 0
Summary: Ancient Greek Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description greek_ancient
The Ancient Greek traineddata for Tesseract.
%package hebrew
Version: 3.02
Release: 0
Summary: Hebrew Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description hebrew
The Hebrew traineddata for Tesseract.
%package hebrew_community
Version: 3.01
Release: 0
Summary: Hebrew (community) Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.01
%description hebrew_community
The Hebrew (community) traineddata for Tesseract.
%package hindi
Version: 3.02
Release: 0
Summary: Hindi Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description hindi
The Hindi traineddata for Tesseract.
%package hungarian
Version: 3.02
Release: 0
Summary: Hungarian Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-hun = 3.02
Obsoletes: tesseract-traineddata-hun <= 3.00
%description hungarian
The Hungarian traineddata for Tesseract.
%package icelandic
Version: 3.02
Release: 0
Summary: Icelandic Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description icelandic
The Icelandic traineddata for Tesseract.
%package indonese
Version: 3.02
Release: 0
Summary: Indonese Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-ind = 3.02
Obsoletes: tesseract-traineddata-ind <= 3.00
%description indonese
The Indonese traineddata for Tesseract.
%package italian
Version: 3.02
Release: 0
Summary: Italian Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-ita = 3.02
Obsoletes: tesseract-traineddata-ita <= 3.00
%description italian
The Italian traineddata for Tesseract.
%package italian_old
Version: 3.02
Release: 0
Summary: Italian (Old) Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description italian_old
The Italian (Old) traineddata for Tesseract.
%package japanese
Version: 3.02
Release: 0
Summary: Japanese Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-jpn = 3.02
Obsoletes: tesseract-traineddata-jpn <= 3.00
%description japanese
The Japanese traineddata for Tesseract.
%package kannada
Version: 3.02
Release: 0
Summary: Kannada Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description kannada
The Kannada traineddata for Tesseract.
%package korean
Version: 3.02
Release: 0
Summary: Korean Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-kor = 3.02
Obsoletes: tesseract-traineddata-kor <= 3.00
%description korean
The Korean traineddata for Tesseract.
%package latvian
Version: 3.02
Release: 0
Summary: Latvian Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-lav = 3.02
Obsoletes: tesseract-traineddata-lav <= 3.00
%description latvian
The Latvian traineddata for Tesseract.
%package lithuanian
Version: 3.02
Release: 0
Summary: Lithuanian Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-lit = 3.02
Obsoletes: tesseract-traineddata-lit <= 3.00
%description lithuanian
The Lithuanian traineddata for Tesseract.
%package macedonian
Version: 3.02
Release: 0
Summary: Macedonian Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description macedonian
The Macedonian traineddata for Tesseract.
%package malay
Version: 3.02
Release: 0
Summary: Malay Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description malay
The Malay traineddata for Tesseract.
%package malayalam
Version: 3.02
Release: 0
Summary: Malayalam Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description malayalam
The Malayalam traineddata for Tesseract.
%package maltese
Version: 3.02
Release: 0
Summary: Maltese Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description maltese
The Maltese traineddata for Tesseract.
%package math_equation
Version: 3.02
Release: 0
Summary: Math / Equation Detection Module Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description math_equation
The Math / Equation Detection Module traineddata for Tesseract.
%package norwegian
Version: 3.02
Release: 0
Summary: Norwegian Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-nor = 3.02
Obsoletes: tesseract-traineddata-nor <= 3.00
%description norwegian
The Norwegian traineddata for Tesseract.
%package orientation_and_script_detection
Version: 3.01
Release: 0
Summary: Orientation & Script Detection Enabler Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.01
%description orientation_and_script_detection
The Orientation & Script Detection Enabler traineddata for Tesseract.
%package polish
Version: 3.02
Release: 0
Summary: Polish Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-pol = 3.02
Obsoletes: tesseract-traineddata-pol <= 3.00
%description polish
The Polish traineddata for Tesseract.
%package portuguese
Version: 3.02
Release: 0
Summary: Portuguese Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-por = 3.02
Obsoletes: tesseract-traineddata-por <= 3.00
%description portuguese
The Portuguese traineddata for Tesseract.
%package romanian
Version: 3.02
Release: 0
Summary: Romanian Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-ron = 3.02
Obsoletes: tesseract-traineddata-ron <= 3.00
%description romanian
The Romanian traineddata for Tesseract.
%package russian
Version: 3.02
Release: 0
Summary: Russian Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-rus = 3.02
Obsoletes: tesseract-traineddata-rus <= 3.00
%description russian
The Russian traineddata for Tesseract.
%package serbian_latin
Version: 3.02
Release: 0
Summary: Serbian (Latin) Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-srp = 3.02
Obsoletes: tesseract-traineddata-srp <= 3.00
%description serbian_latin
The Serbian (Latin) traineddata for Tesseract.
%package slovak
Version: 3.02
Release: 0
Summary: Slovak and Slovak (Fraktur) Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-slk = 3.02
Obsoletes: tesseract-traineddata-slk <= 3.00
Provides: tesseract-traineddata-slovak_fraktur = 3.02
Obsoletes: tesseract-traineddata-slovak_fraktur <= 3.01
%description slovak
The Slovak and Slovak (Fraktur) traineddata for Tesseract.
%package slovenian
Version: 3.02
Release: 0
Summary: Slovenian Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-slv = 3.02
Obsoletes: tesseract-traineddata-slv <= 3.00
%description slovenian
The Slovenian traineddata for Tesseract.
%package spanish
Version: 3.02
Release: 0
Summary: Spanish Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-spa = 3.02
Obsoletes: tesseract-traineddata-spa <= 3.00
%description spanish
The Spanish traineddata for Tesseract.
%package spanish_old
Version: 3.02
Release: 0
Summary: Spanish (Old) Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description spanish_old
The Spanish (Old) traineddata for Tesseract.
%package swahili
Version: 3.02
Release: 0
Summary: Swahili Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description swahili
The Swahili traineddata for Tesseract.
%package swedish
Version: 3.02
Release: 0
Summary: Swedish Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-swe = 3.02
Obsoletes: tesseract-traineddata-swe <= 3.00
%description swedish
The Swedish traineddata for Tesseract.
%package swedish_fraktur
Version: 3.00
Release: 0
Summary: Swedish (Fraktur) Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.00
%description swedish_fraktur
The Swedish (Fraktur) traineddata for Tesseract.
%package tagalog
Version: 3.02
Release: 0
Summary: Tagalog Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-tgl = 3.02
Obsoletes: tesseract-traineddata-tgl <= 3.00
%description tagalog
The Tagalog traineddata for Tesseract.
%package tamil
Version: 3.02
Release: 0
Summary: Tamil Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description tamil
The Tamil traineddata for Tesseract.
%package telugu
Version: 3.02
Release: 0
Summary: Telugu Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description telugu
The Telugu traineddata for Tesseract.
%package thai
Version: 3.02
Release: 0
Summary: Thai Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
%description thai
The Thai traineddata for Tesseract.
%package turkish
Version: 3.02
Release: 0
Summary: Turkish Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-tur = 3.02
Obsoletes: tesseract-traineddata-tur <= 3.00
%description turkish
The Turkish traineddata for Tesseract.
%package ukrainian
Version: 3.02
Release: 0
Summary: Ukrainian Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-ukr = 3.02
Obsoletes: tesseract-traineddata-ukr <= 3.00
%description ukrainian
The Ukrainian traineddata for Tesseract.
%package vietnamese
Version: 3.02
Release: 0
Summary: Vietnamese Traineddata for Tesseract
License: Apache-2.0
Group: Productivity/Graphics/Other
Url: http://tesseract-ocr.googlecode.com/
Requires: tesseract >= 3.02
Provides: tesseract-traineddata-vie = 3.02
Obsoletes: tesseract-traineddata-vie <= 3.00
%description vietnamese
The Vietnamese traineddata for Tesseract.
%prep
%setup -cT
# Unpack sources
for archive in \
%{S:100} \
%{S:101} \
%{S:102} \
%{S:103} \
%{S:104} \
%{S:105} \
%{S:106} \
%{S:107} \
%{S:108} \
%{S:109} \
%{S:110} \
%{S:111} \
%{S:112} \
%{S:113} \
%{S:114} \
%{S:115} \
%{S:116} \
%{S:117} \
%{S:118} \
%{S:119} \
%{S:120} \
%{S:121} \
%{S:122} \
%{S:123} \
%{S:124} \
%{S:125} \
%{S:126} \
%{S:127} \
%{S:128} \
%{S:129} \
%{S:130} \
%{S:131} \
%{S:132} \
%{S:133} \
%{S:134} \
%{S:135} \
%{S:136} \
%{S:137} \
%{S:138} \
%{S:139} \
%{S:140} \
%{S:141} \
%{S:142} \
%{S:143} \
%{S:144} \
%{S:145} \
%{S:146} \
%{S:147} \
%{S:148} \
%{S:149} \
%{S:150} \
%{S:151} \
%{S:152} \
%{S:153} \
%{S:154} \
%{S:155} \
%{S:156} \
%{S:157} \
%{S:158} \
%{S:159} \
%{S:160} \
%{S:161} \
%{S:162} \
%{S:163} \
%{S:164} \
%{S:165} \
%{S:166} \
%{S:167} \
; do
archive_name=`basename $archive | sed -e "s|.zip$||" -e "s|.tar.gz$||" -e "s|.tar.bz2$||" -e "s|.gz$||"`
mkdir $archive_name || exit 1;
case $archive in
*.zip)
cd $archive_name; unzip $archive || exit 1; cd -
;;
*.tar.gz)
tar -xzf $archive -C $archive_name || exit 1;
;;
*.tar.bz2)
tar -xjf $archive -C $archive_name || exit 1;
;;
*.gz)
cd $archive_name; gunzip -c $archive > $archive_name || exit 1; cd -
;;
*)
echo "Error: Do not know how to uncompress $archive"
exit 1;
;;
esac
done
# Fix packages
rm -f tesseract-ocr-3.02.fra/tesseract-ocr/tessdata/dan-frak.traineddata
rm -f tesseract-ocr-3.02.fra/tesseract-ocr/tessdata/deu-frak.traineddata
rm -f tesseract-ocr-3.02.fra/tesseract-ocr/tessdata/slk-frak.traineddata
rm -f tesseract-ocr-3.02.ita/tesseract-ocr/tessdata/ita_old.traineddata
rm -f tesseract-ocr-3.02.spa/tesseract-ocr/tessdata/spa_old.traineddata
#
%build
%install
install -pm 0755 -d %{buildroot}%{_datadir}/tessdata/
for lang_dir in * ; do
test -d $lang_dir || continue
# Initialize file list
filelist=`mktemp /tmp/tesseract-traineddata-XXXXXX`
echo "%%defattr(-,root,root,-)" > $filelist
echo "%%dir %{_datadir}/tessdata/" >> $filelist
# Find traineddata files
for traineddata in `find $lang_dir -type f -and -name \*.traineddata | sort` ; do
traineddata_base=$(basename $traineddata)
# Add possible additional *cube* files
cube=`echo $traineddata_base | sed -e "s|.traineddata$|.\\\*cube.\\\*|"`
cubedata=`find $lang_dir -type f -and -name $cube | sort`
# Install the data
for f in $traineddata $cubedata ; do
fname=$(basename $f)
if test -f %{buildroot}%{_datadir}/tessdata/$fname ; then
echo "Error: file already installed: $f"
echo " Probably is provided by two source tarballs"
exit 1;
fi
install -pm 0644 $f %{buildroot}%{_datadir}/tessdata/
echo %{_datadir}/tessdata/$fname >> $filelist
done
# Detect lang
if test -n $traineddata_base ; then
lang=`echo $traineddata_base | cut -d "." -f1`
else
echo "Error: No data found in $lang_dir"
exit 1;
fi
short_lang="${lang}"
# Workaround for packages which have more than one traineddata files
if [ $lang = dan-frak ] ; then
short_lang=dan
fi
if [ $lang = deu-frak ] ; then
short_lang=deu
fi
if [ $lang = heb-ras ] || [ $lang = heb-seg ] ; then
short_lang=heb-com
fi
if [ $lang = slk-frak ] ; then
short_lang=slk
fi
# Detect long language name
case "$short_lang" in
"afr") lang_name="afrikaans" ;;
"sqi") lang_name="albanian" ;;
"eng") lang_name="american" ;;
"ara") lang_name="arabic" ;;
"aze") lang_name="azerbaijani" ;;
"eus") lang_name="basque" ;;
"bel") lang_name="belarusian" ;;
"ben") lang_name="bengali" ;;
"bul") lang_name="bulgarian" ;;
"cat") lang_name="catalan" ;;
"chr") lang_name="cherokee" ;;
"chi_sim") lang_name="chinese_simplified" ;;
"chi_tra") lang_name="chinese_traditional" ;;
"hrv") lang_name="croatian" ;;
"ces") lang_name="czech" ;;
"dan") lang_name="danish" ;;
"nld") lang_name="dutch" ;;
"enm") lang_name="english_middle_1100_to_1500" ;;
"epo") lang_name="esperanto" ;;
"epo_alt") lang_name="esperanto_alternative" ;;
"est") lang_name="estonian" ;;
"fin") lang_name="finnish" ;;
"frk") lang_name="frankish" ;;
"fra") lang_name="french" ;;
"frm") lang_name="french_middle_1400_to_1600" ;;
"glg") lang_name="galician" ;;
"deu") lang_name="german" ;;
"ell") lang_name="greek" ;;
"grc") lang_name="greek_ancient" ;;
"heb") lang_name="hebrew" ;;
"heb-com") lang_name="hebrew_community" ;;
"hin") lang_name="hindi" ;;
"hun") lang_name="hungarian" ;;
"isl") lang_name="icelandic" ;;
"ind") lang_name="indonese" ;;
"ita") lang_name="italian" ;;
"ita_old") lang_name="italian_old" ;;
"jpn") lang_name="japanese" ;;
"kan") lang_name="kannada" ;;
"kor") lang_name="korean" ;;
"lav") lang_name="latvian" ;;
"lit") lang_name="lithuanian" ;;
"mkd") lang_name="macedonian" ;;
"msa") lang_name="malay" ;;
"mal") lang_name="malayalam" ;;
"mlt") lang_name="maltese" ;;
"equ") lang_name="math_equation" ;;
"nor") lang_name="norwegian" ;;
"osd") lang_name="orientation_and_script_detection" ;;
"pol") lang_name="polish" ;;
"por") lang_name="portuguese" ;;
"ron") lang_name="romanian" ;;
"rus") lang_name="russian" ;;
"srp") lang_name="serbian_latin" ;;
"slk") lang_name="slovak" ;;
"slv") lang_name="slovenian" ;;
"spa") lang_name="spanish" ;;
"spa_old") lang_name="spanish_old" ;;
"swa") lang_name="swahili" ;;
"swe") lang_name="swedish" ;;
"swe-frak") lang_name="swedish_fraktur" ;;
"tgl") lang_name="tagalog" ;;
"tam") lang_name="tamil" ;;
"tel") lang_name="telugu" ;;
"tha") lang_name="thai" ;;
"tur") lang_name="turkish" ;;
"ukr") lang_name="ukrainian" ;;
"vie") lang_name="vietnamese" ;;
*) echo "Error: do not know language name for the $short_lang"
exit 1
;;
esac
# Special hack for some langs
case "$short_lang" in
esac
# Install documentation
for doc in `find $lang_dir -type f -printf "%%P\n" | grep -v -e ".traineddata$" -e "cube.*$"` ; do
if ! test -f $lang_dir/$doc ; then
echo "Error: is not a file: $lang_dir/$doc"
exit 1;
fi
echo "%%doc $lang_dir/$doc" >>$filelist
done
done
# Rename the file list according to the detected lang
mv $filelist $short_lang.list
done
%files -f afr.list afrikaans
%files -f sqi.list albanian
%files -f eng.list american
%files -f ara.list arabic
%files -f aze.list azerbaijani
%files -f eus.list basque
%files -f bel.list belarusian
%files -f ben.list bengali
%files -f bul.list bulgarian
%files -f cat.list catalan
%files -f chr.list cherokee
%files -f chi_sim.list chinese_simplified
%files -f chi_tra.list chinese_traditional
%files -f hrv.list croatian
%files -f ces.list czech
%files -f dan.list danish
%files -f nld.list dutch
%files -f enm.list english_middle_1100_to_1500
%files -f epo.list esperanto
%files -f epo_alt.list esperanto_alternative
%files -f est.list estonian
%files -f fin.list finnish
%files -f frk.list frankish
%files -f fra.list french
%files -f frm.list french_middle_1400_to_1600
%files -f glg.list galician
%files -f deu.list german
%files -f ell.list greek
%files -f grc.list greek_ancient
%files -f heb.list hebrew
%files -f heb-com.list hebrew_community
%files -f hin.list hindi
%files -f hun.list hungarian
%files -f isl.list icelandic
%files -f ind.list indonese
%files -f ita.list italian
%files -f ita_old.list italian_old
%files -f jpn.list japanese
%files -f kan.list kannada
%files -f kor.list korean
%files -f lav.list latvian
%files -f lit.list lithuanian
%files -f mkd.list macedonian
%files -f msa.list malay
%files -f mal.list malayalam
%files -f mlt.list maltese
%files -f equ.list math_equation
%files -f nor.list norwegian
%files -f osd.list orientation_and_script_detection
%files -f pol.list polish
%files -f por.list portuguese
%files -f ron.list romanian
%files -f rus.list russian
%files -f srp.list serbian_latin
%files -f slk.list slovak
%files -f slv.list slovenian
%files -f spa.list spanish
%files -f spa_old.list spanish_old
%files -f swa.list swahili
%files -f swe.list swedish
%files -f swe-frak.list swedish_fraktur
%files -f tgl.list tagalog
%files -f tam.list tamil
%files -f tel.list telugu
%files -f tha.list thai
%files -f tur.list turkish
%files -f ukr.list ukrainian
%files -f vie.list vietnamese
%changelog