mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 06:30:14 +08:00
update spec file
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@386 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
parent
cca609a097
commit
f221d3eb0f
366
tesseract.spec
366
tesseract.spec
@ -44,21 +44,9 @@ tesseract libraries and includes
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
tar xzvf %{_sourcedir}/tesseract-%{version}.eng.tar.gz
|
||||
tar xzvf %{_sourcedir}/tesseract-%{version}.fra.tar.gz
|
||||
tar xzvf %{_sourcedir}/tesseract-%{version}.ita.tar.gz
|
||||
tar xzvf %{_sourcedir}/tesseract-%{version}.deu.tar.gz
|
||||
tar xzvf %{_sourcedir}/tesseract-%{version}.spa.tar.gz
|
||||
tar xzvf %{_sourcedir}/tesseract-%{version}.nld.tar.gz
|
||||
|
||||
|
||||
%build
|
||||
export CFLAGS=
|
||||
export CXXFLAGS=
|
||||
# Should build with gcc4.1 now...
|
||||
#export CC=gcc34
|
||||
#export CXX=g++34
|
||||
# % configure
|
||||
./configure --bindir=%{_bindir} --datadir=%{_datadir} --libdir=%{_libdir} --includedir=%{_includedir}
|
||||
make %{?_smp_mflags}
|
||||
|
||||
@ -88,53 +76,68 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_includedir}/tesseract/
|
||||
%{_libdir}/libtesseract*
|
||||
|
||||
%package eng
|
||||
%package bul
|
||||
Group: Applications/Multimedia
|
||||
Summary: English language pack for tesseract
|
||||
%description eng
|
||||
The %{name}-%{version}.eng package contains the data files required to recognize English
|
||||
Summary: Bulgarian language pack for tesseract
|
||||
%description bul
|
||||
The %{name}-%{version}.bul package contains the data files required to recognize Bulgarian
|
||||
|
||||
%files eng
|
||||
%{_datadir}/tessdata/eng.DangAmbigs
|
||||
%{_datadir}/tessdata/eng.freq-dawg
|
||||
%{_datadir}/tessdata/eng.inttemp
|
||||
%{_datadir}/tessdata/eng.normproto
|
||||
%{_datadir}/tessdata/eng.pffmtable
|
||||
%{_datadir}/tessdata/eng.unicharset
|
||||
%{_datadir}/tessdata/eng.user-words
|
||||
%{_datadir}/tessdata/eng.word-dawg
|
||||
%files bul
|
||||
%{_datadir}/tessdata/bul.traineddata
|
||||
|
||||
%package fra
|
||||
%package cat
|
||||
Group: Applications/Multimedia
|
||||
Summary: French language pack for tesseract
|
||||
%description fra
|
||||
The %{name}-%{version}.fra package contains the data files required to recognize French
|
||||
Summary: Catalan language pack for tesseract
|
||||
%description cat
|
||||
The %{name}-%{version}.cat package contains the data files required to recognize Catalan
|
||||
|
||||
%files fra
|
||||
%{_datadir}/tessdata/fra.DangAmbigs
|
||||
%{_datadir}/tessdata/fra.freq-dawg
|
||||
%{_datadir}/tessdata/fra.inttemp
|
||||
%{_datadir}/tessdata/fra.normproto
|
||||
%{_datadir}/tessdata/fra.pffmtable
|
||||
%{_datadir}/tessdata/fra.unicharset
|
||||
%{_datadir}/tessdata/fra.user-words
|
||||
%{_datadir}/tessdata/fra.word-dawg
|
||||
%files cat
|
||||
%{_datadir}/tessdata/cat.traineddata
|
||||
|
||||
%package ita
|
||||
%package ces
|
||||
Group: Applications/Multimedia
|
||||
Summary: Italian language pack for tesseract
|
||||
%description ita
|
||||
The %{name}-%{version}.ita package contains the data files required to recognize Italian
|
||||
Summary: Czech language pack for tesseract
|
||||
%description ces
|
||||
The %{name}-%{version}.ces package contains the data files required to recognize Czech
|
||||
|
||||
%files ita
|
||||
%{_datadir}/tessdata/ita.DangAmbigs
|
||||
%{_datadir}/tessdata/ita.freq-dawg
|
||||
%{_datadir}/tessdata/ita.inttemp
|
||||
%{_datadir}/tessdata/ita.normproto
|
||||
%{_datadir}/tessdata/ita.pffmtable
|
||||
%{_datadir}/tessdata/ita.unicharset
|
||||
%{_datadir}/tessdata/ita.user-words
|
||||
%{_datadir}/tessdata/ita.word-dawg
|
||||
%files ces
|
||||
%{_datadir}/tessdata/ces.traineddata
|
||||
|
||||
%package chi_sim
|
||||
Group: Applications/Multimedia
|
||||
Summary: Simplified Chinese language pack for tesseract
|
||||
%description chi_sim
|
||||
The %{name}-%{version}.chi_sim package contains the data files required to recognize Simplified Chinese
|
||||
|
||||
%files chi_sim
|
||||
%{_datadir}/tessdata/chi_sim.traineddata
|
||||
|
||||
%package chi_tra
|
||||
Group: Applications/Multimedia
|
||||
Summary: Traditional Chinese language pack for tesseract
|
||||
%description chi_tra
|
||||
The %{name}-%{version}.chi_tra package contains the data files required to recognize Traditional Chinese
|
||||
|
||||
%files chi_tra
|
||||
%{_datadir}/tessdata/chi_tra.traineddata
|
||||
|
||||
%package dan-frak
|
||||
Group: Applications/Multimedia
|
||||
Summary: Danish (Fraktur) language pack for tesseract
|
||||
%description dan-frak
|
||||
The %{name}-%{version}.dan-frak package contains the data files required to recognize Danish (Fraktur)
|
||||
|
||||
%files dan-frak
|
||||
%{_datadir}/tessdata/dan-frak.traineddata
|
||||
|
||||
%package dan
|
||||
Group: Applications/Multimedia
|
||||
Summary: Danish language pack for tesseract
|
||||
%description dan
|
||||
The %{name}-%{version}.dan package contains the data files required to recognize Danish
|
||||
|
||||
%files dan
|
||||
%{_datadir}/tessdata/dan.traineddata
|
||||
|
||||
%package deu
|
||||
Group: Applications/Multimedia
|
||||
@ -143,30 +146,106 @@ Summary: German language pack for tesseract
|
||||
The %{name}-%{version}.deu package contains the data files required to recognize German
|
||||
|
||||
%files deu
|
||||
%{_datadir}/tessdata/deu.DangAmbigs
|
||||
%{_datadir}/tessdata/deu.freq-dawg
|
||||
%{_datadir}/tessdata/deu.inttemp
|
||||
%{_datadir}/tessdata/deu.normproto
|
||||
%{_datadir}/tessdata/deu.pffmtable
|
||||
%{_datadir}/tessdata/deu.unicharset
|
||||
%{_datadir}/tessdata/deu.user-words
|
||||
%{_datadir}/tessdata/deu.word-dawg
|
||||
%{_datadir}/tessdata/deu.traineddata
|
||||
|
||||
%package spa
|
||||
%package ell
|
||||
Group: Applications/Multimedia
|
||||
Summary: Spanish language pack for tesseract
|
||||
%description spa
|
||||
The %{name}-%{version}.spa package contains the data files required to recognize Spanish
|
||||
Summary: Greek language pack for tesseract
|
||||
%description ell
|
||||
The %{name}-%{version}.ell package contains the data files required to recognize Greek
|
||||
|
||||
%files spa
|
||||
%{_datadir}/tessdata/spa.DangAmbigs
|
||||
%{_datadir}/tessdata/spa.freq-dawg
|
||||
%{_datadir}/tessdata/spa.inttemp
|
||||
%{_datadir}/tessdata/spa.normproto
|
||||
%{_datadir}/tessdata/spa.pffmtable
|
||||
%{_datadir}/tessdata/spa.unicharset
|
||||
%{_datadir}/tessdata/spa.user-words
|
||||
%{_datadir}/tessdata/spa.word-dawg
|
||||
%files ell
|
||||
%{_datadir}/tessdata/ell.traineddata
|
||||
|
||||
%package eng
|
||||
Group: Applications/Multimedia
|
||||
Summary: English language pack for tesseract
|
||||
%description eng
|
||||
The %{name}-%{version}.eng package contains the data files required to recognize English
|
||||
|
||||
%files eng
|
||||
%{_datadir}/tessdata/eng.traineddata
|
||||
|
||||
%package fin
|
||||
Group: Applications/Multimedia
|
||||
Summary: Finnish language pack for tesseract
|
||||
%description fin
|
||||
The %{name}-%{version}.fin package contains the data files required to recognize Finnish
|
||||
|
||||
%files fin
|
||||
%{_datadir}/tessdata/fin.traineddata
|
||||
|
||||
%package fra
|
||||
Group: Applications/Multimedia
|
||||
Summary: French language pack for tesseract
|
||||
%description fra
|
||||
The %{name}-%{version}.fra package contains the data files required to recognize French
|
||||
|
||||
%files fra
|
||||
%{_datadir}/tessdata/fra.traineddata
|
||||
|
||||
%package hun
|
||||
Group: Applications/Multimedia
|
||||
Summary: Hungarian language pack for tesseract
|
||||
%description hun
|
||||
The %{name}-%{version}.hun package contains the data files required to recognize Hungarian
|
||||
|
||||
%files hun
|
||||
%{_datadir}/tessdata/hun.traineddata
|
||||
|
||||
%package ind
|
||||
Group: Applications/Multimedia
|
||||
Summary: Indonesian language pack for tesseract
|
||||
%description ind
|
||||
The %{name}-%{version}.ind package contains the data files required to recognize Indonesian
|
||||
|
||||
%files ind
|
||||
%{_datadir}/tessdata/ind.traineddata
|
||||
|
||||
%package ita
|
||||
Group: Applications/Multimedia
|
||||
Summary: Italian language pack for tesseract
|
||||
%description ita
|
||||
The %{name}-%{version}.ita package contains the data files required to recognize Italian
|
||||
|
||||
%files ita
|
||||
%{_datadir}/tessdata/ita.traineddata
|
||||
|
||||
%package jpn
|
||||
Group: Applications/Multimedia
|
||||
Summary: Japanese language pack for tesseract
|
||||
%description jpn
|
||||
The %{name}-%{version}.jpn package contains the data files required to recognize Japanese
|
||||
|
||||
%files jpn
|
||||
%{_datadir}/tessdata/jpn.traineddata
|
||||
|
||||
%package kor
|
||||
Group: Applications/Multimedia
|
||||
Summary: Korean language pack for tesseract
|
||||
%description kor
|
||||
The %{name}-%{version}.kor package contains the data files required to recognize Korean
|
||||
|
||||
%files kor
|
||||
%{_datadir}/tessdata/kor.traineddata
|
||||
|
||||
%package lav
|
||||
Group: Applications/Multimedia
|
||||
Summary: Latvian language pack for tesseract
|
||||
%description lav
|
||||
The %{name}-%{version}.lav package contains the data files required to recognize Latvian
|
||||
|
||||
%files lav
|
||||
%{_datadir}/tessdata/lav.traineddata
|
||||
|
||||
%package lit
|
||||
Group: Applications/Multimedia
|
||||
Summary: Lithuanian language pack for tesseract
|
||||
%description lit
|
||||
The %{name}-%{version}.lit package contains the data files required to recognize Lithuanian
|
||||
|
||||
%files lit
|
||||
%{_datadir}/tessdata/lit.traineddata
|
||||
|
||||
%package nld
|
||||
Group: Applications/Multimedia
|
||||
@ -175,14 +254,141 @@ Summary: Dutch language pack for tesseract
|
||||
The %{name}-%{version}.nld package contains the data files required to recognize Dutch
|
||||
|
||||
%files nld
|
||||
%{_datadir}/tessdata/nld.DangAmbigs
|
||||
%{_datadir}/tessdata/nld.freq-dawg
|
||||
%{_datadir}/tessdata/nld.inttemp
|
||||
%{_datadir}/tessdata/nld.normproto
|
||||
%{_datadir}/tessdata/nld.pffmtable
|
||||
%{_datadir}/tessdata/nld.unicharset
|
||||
%{_datadir}/tessdata/nld.user-words
|
||||
%{_datadir}/tessdata/nld.word-dawg
|
||||
%{_datadir}/tessdata/nld.traineddata
|
||||
|
||||
%package nor
|
||||
Group: Applications/Multimedia
|
||||
Summary: Norwegian language pack for tesseract
|
||||
%description nor
|
||||
The %{name}-%{version}.nor package contains the data files required to recognize Norwegian
|
||||
|
||||
%files nor
|
||||
%{_datadir}/tessdata/nor.traineddata
|
||||
|
||||
%package pol
|
||||
Group: Applications/Multimedia
|
||||
Summary: Polish language pack for tesseract
|
||||
%description pol
|
||||
The %{name}-%{version}.pol package contains the data files required to recognize Polish
|
||||
|
||||
%files pol
|
||||
%{_datadir}/tessdata/pol.traineddata
|
||||
|
||||
%package por
|
||||
Group: Applications/Multimedia
|
||||
Summary: Portuguese language pack for tesseract
|
||||
%description por
|
||||
The %{name}-%{version}.por package contains the data files required to recognize Portuguese
|
||||
|
||||
%files por
|
||||
%{_datadir}/tessdata/por.traineddata
|
||||
|
||||
%package ron
|
||||
Group: Applications/Multimedia
|
||||
Summary: Romanian language pack for tesseract
|
||||
%description ron
|
||||
The %{name}-%{version}.ron package contains the data files required to recognize Romanian
|
||||
|
||||
%files ron
|
||||
%{_datadir}/tessdata/ron.traineddata
|
||||
|
||||
%package rus
|
||||
Group: Applications/Multimedia
|
||||
Summary: Russian language pack for tesseract
|
||||
%description rus
|
||||
The %{name}-%{version}.rus package contains the data files required to recognize Russian
|
||||
|
||||
%files rus
|
||||
%{_datadir}/tessdata/rus.traineddata
|
||||
|
||||
%package slk
|
||||
Group: Applications/Multimedia
|
||||
Summary: Slovakian language pack for tesseract
|
||||
%description slk
|
||||
The %{name}-%{version}.slk package contains the data files required to recognize Slovakian
|
||||
|
||||
%files slk
|
||||
%{_datadir}/tessdata/slk.traineddata
|
||||
|
||||
%package slv
|
||||
Group: Applications/Multimedia
|
||||
Summary: Slovenian language pack for tesseract
|
||||
%description slv
|
||||
The %{name}-%{version}.slv package contains the data files required to recognize Slovenian
|
||||
|
||||
%files slv
|
||||
%{_datadir}/tessdata/slv.traineddata
|
||||
|
||||
%package spa
|
||||
Group: Applications/Multimedia
|
||||
Summary: Spanish language pack for tesseract
|
||||
%description spa
|
||||
The %{name}-%{version}.spa package contains the data files required to recognize Spanish
|
||||
|
||||
%files spa
|
||||
%{_datadir}/tessdata/spa.traineddata
|
||||
|
||||
%package srp
|
||||
Group: Applications/Multimedia
|
||||
Summary: Serbian language pack for tesseract
|
||||
%description srp
|
||||
The %{name}-%{version}.srp package contains the data files required to recognize Serbian
|
||||
|
||||
%files srp
|
||||
%{_datadir}/tessdata/srp.traineddata
|
||||
|
||||
%package swe
|
||||
Group: Applications/Multimedia
|
||||
Summary: Swedish language pack for tesseract
|
||||
%description swe
|
||||
The %{name}-%{version}.swe package contains the data files required to recognize Swedish
|
||||
|
||||
%files swe
|
||||
%{_datadir}/tessdata/swe.traineddata
|
||||
|
||||
%package tgl
|
||||
Group: Applications/Multimedia
|
||||
Summary: Tagalog language pack for tesseract
|
||||
%description tgl
|
||||
The %{name}-%{version}.tgl package contains the data files required to recognize Tagalog
|
||||
|
||||
%files tgl
|
||||
%{_datadir}/tessdata/tgl.traineddata
|
||||
|
||||
%package tha
|
||||
Group: Applications/Multimedia
|
||||
Summary: Thai language pack for tesseract
|
||||
%description tha
|
||||
The %{name}-%{version}.tha package contains the data files required to recognize Thai
|
||||
|
||||
%files tha
|
||||
%{_datadir}/tessdata/tha.traineddata
|
||||
|
||||
%package tur
|
||||
Group: Applications/Multimedia
|
||||
Summary: Turkish language pack for tesseract
|
||||
%description tur
|
||||
The %{name}-%{version}.tur package contains the data files required to recognize Turkish
|
||||
|
||||
%files tur
|
||||
%{_datadir}/tessdata/tur.traineddata
|
||||
|
||||
%package ukr
|
||||
Group: Applications/Multimedia
|
||||
Summary: Ukrainian language pack for tesseract
|
||||
%description ukr
|
||||
The %{name}-%{version}.ukr package contains the data files required to recognize Ukrainian
|
||||
|
||||
%files ukr
|
||||
%{_datadir}/tessdata/ukr.traineddata
|
||||
|
||||
%package vie
|
||||
Group: Applications/Multimedia
|
||||
Summary: Vietnamese language pack for tesseract
|
||||
%description vie
|
||||
The %{name}-%{version}.vie package contains the data files required to recognize Vietnamese
|
||||
|
||||
%files vie
|
||||
%{_datadir}/tessdata/vie.traineddata
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user