2015-10-06 09:30:59 +00:00
|
|
|
Name: tesseract
|
|
|
|
Version: 3.04.00
|
|
|
|
Release: 1%{?dist}
|
|
|
|
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}
|
|
|
|
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
|
|
|
|
|
|
|
|
# Tweak location of tessdata folder
|
|
|
|
Patch0: tesseract_datadir.patch
|
|
|
|
|
|
|
|
BuildRequires: libtiff-devel
|
|
|
|
BuildRequires: leptonica-devel
|
|
|
|
BuildRequires: cairo-devel
|
|
|
|
BuildRequires: libicu-devel
|
|
|
|
BuildRequires: pango-devel
|
|
|
|
BuildRequires: automake libtool
|
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}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
2014-03-27 18:45:03 +00:00
|
|
|
%description osd
|
2015-10-06 09:30:59 +00:00
|
|
|
Orientation & Script Detection Data for %{name}
|
|
|
|
|
|
|
|
%define lang_subpkg() \
|
|
|
|
%package langpack-%{1}\
|
|
|
|
Summary: %{2} language data for %{name}\
|
|
|
|
BuildArch: noarch\
|
|
|
|
Requires: %{name} = %{version}-%{release}\
|
|
|
|
\
|
|
|
|
%description langpack-%{1}\
|
|
|
|
%{2} language data for %{name}.\
|
|
|
|
\
|
|
|
|
%files langpack-%{1}\
|
|
|
|
%{_datadir}/%{name}/tessdata/%{1}.*
|
|
|
|
|
|
|
|
# see https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
|
|
|
|
# and https://en.wikipedia.org/wiki/ISO_639_macrolanguage
|
|
|
|
%lang_subpkg afr Afrikaans
|
|
|
|
%lang_subpkg amh Amharic
|
|
|
|
%lang_subpkg ara Arabic
|
|
|
|
%lang_subpkg asm Assamese
|
|
|
|
%lang_subpkg aze Azerbaijani
|
|
|
|
%lang_subpkg aze_cyrl "Azerbaijani (Cyrilic)"
|
|
|
|
%lang_subpkg bel Belarusian
|
|
|
|
%lang_subpkg ben Bengali
|
|
|
|
%lang_subpkg bod "Tibetan (Standard)"
|
|
|
|
%lang_subpkg bos Bosnian
|
|
|
|
%lang_subpkg bul Bulgarian
|
|
|
|
%lang_subpkg cat Catalan
|
|
|
|
%lang_subpkg ceb Cebuano
|
|
|
|
%lang_subpkg ces Czech
|
|
|
|
%lang_subpkg chi_sim "Chinese (Simplified)"
|
|
|
|
%lang_subpkg chi_tra "Chinese (Traditional)"
|
|
|
|
%lang_subpkg chr Cherokee
|
|
|
|
%lang_subpkg cym Welsh
|
|
|
|
%lang_subpkg dan Danish
|
|
|
|
%lang_subpkg dan_frak "Danish (Fraktur)"
|
|
|
|
%lang_subpkg deu German
|
|
|
|
%lang_subpkg deu_frak "German (Fraktur)"
|
|
|
|
%lang_subpkg dzo Dzongkha
|
|
|
|
%lang_subpkg ell Greek
|
|
|
|
%lang_subpkg enm "Middle English (1100-1500)"
|
|
|
|
%lang_subpkg epo Esperanto
|
|
|
|
%lang_subpkg equ "Math / equation"
|
|
|
|
%lang_subpkg est Estonian
|
|
|
|
%lang_subpkg eus Basque
|
|
|
|
%lang_subpkg fas "Persian (Farsi)"
|
|
|
|
%lang_subpkg fin Finnish
|
|
|
|
%lang_subpkg fra French
|
|
|
|
%lang_subpkg frk Frankish
|
|
|
|
%lang_subpkg frm "Middle French (ca. 1400-1600)"
|
|
|
|
%lang_subpkg gle Irish
|
|
|
|
%lang_subpkg glg Galician
|
|
|
|
%lang_subpkg grc "Ancient Greek"
|
|
|
|
%lang_subpkg guj Gujarati
|
|
|
|
%lang_subpkg hat Haitian
|
|
|
|
%lang_subpkg heb Hebrew
|
|
|
|
%lang_subpkg hin Hindi
|
|
|
|
%lang_subpkg hrv Croatian
|
|
|
|
%lang_subpkg hun Hungarian
|
|
|
|
%lang_subpkg iku Inuktitut
|
|
|
|
%lang_subpkg ind Indonesian
|
|
|
|
%lang_subpkg isl Icelandic
|
|
|
|
%lang_subpkg ita Italian
|
|
|
|
%lang_subpkg ita_old "Italian (Old)"
|
|
|
|
%lang_subpkg jav Javanese
|
|
|
|
%lang_subpkg jpn Japanese
|
|
|
|
%lang_subpkg kan Kannada
|
|
|
|
%lang_subpkg kat Georgian
|
|
|
|
%lang_subpkg kat_old "Georgian (Old)"
|
|
|
|
%lang_subpkg kaz Kazakh
|
|
|
|
%lang_subpkg khm Khmer
|
|
|
|
%lang_subpkg kir Kyrgyz
|
|
|
|
%lang_subpkg kor Korean
|
|
|
|
%lang_subpkg kur Kurdish
|
|
|
|
%lang_subpkg lao Lao
|
|
|
|
%lang_subpkg lat Latin
|
|
|
|
%lang_subpkg lav Latvian
|
|
|
|
%lang_subpkg lit Lithuanian
|
|
|
|
%lang_subpkg mal Malayalam
|
|
|
|
%lang_subpkg mar Marathi
|
|
|
|
%lang_subpkg mkd Macedonian
|
|
|
|
%lang_subpkg mlt Maltese
|
|
|
|
%lang_subpkg msa Malay
|
|
|
|
%lang_subpkg mya Burmese
|
|
|
|
%lang_subpkg nep Nepali
|
|
|
|
%lang_subpkg nld Dutch
|
|
|
|
%lang_subpkg nor Norwegian
|
|
|
|
%lang_subpkg ori Oriya
|
|
|
|
%lang_subpkg pan Panjabi
|
|
|
|
%lang_subpkg pol Polish
|
|
|
|
%lang_subpkg por Portuguese
|
|
|
|
%lang_subpkg pus Pashto
|
|
|
|
%lang_subpkg ron Romanian
|
|
|
|
%lang_subpkg rus Russian
|
|
|
|
%lang_subpkg san Sanskrit
|
|
|
|
%lang_subpkg sin Sinhala
|
|
|
|
%lang_subpkg slk Slovakian
|
|
|
|
%lang_subpkg slk_frak "Slovakian (Fraktur)"
|
|
|
|
%lang_subpkg slv Slovenian
|
|
|
|
%lang_subpkg spa Spanish
|
|
|
|
%lang_subpkg spa_old "Spanish (Old)"
|
|
|
|
%lang_subpkg sqi Albanian
|
|
|
|
%lang_subpkg srp Serbian
|
|
|
|
%lang_subpkg srp_latn "Serbian (Latin)"
|
|
|
|
%lang_subpkg swa Swahili
|
|
|
|
%lang_subpkg swe Swedish
|
|
|
|
%lang_subpkg syr Syriac
|
|
|
|
%lang_subpkg tam Tamil
|
|
|
|
%lang_subpkg tel Telugu
|
|
|
|
%lang_subpkg tgk Tajik
|
|
|
|
%lang_subpkg tgl Tagalog
|
|
|
|
%lang_subpkg tha Thai
|
|
|
|
%lang_subpkg tir Tigrinya
|
|
|
|
%lang_subpkg tur Turkish
|
|
|
|
%lang_subpkg uig Uyghur
|
|
|
|
%lang_subpkg ukr Ukrainian
|
|
|
|
%lang_subpkg urd Urdu
|
|
|
|
%lang_subpkg uzb Uzbek
|
|
|
|
%lang_subpkg uzb_cyrl "Uzbek (Cyrillic)"
|
|
|
|
%lang_subpkg vie Vietnamese
|
|
|
|
%lang_subpkg yid Yiddish
|
|
|
|
|
2014-03-27 18:45:03 +00:00
|
|
|
|
2007-06-16 13:50:50 +00:00
|
|
|
%prep
|
2015-10-06 09:30:59 +00:00
|
|
|
%setup -q -n %{name}-%{version} -a1
|
|
|
|
%patch0 -p1
|
|
|
|
|
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
|
|
|
|
2007-06-16 13:50:50 +00:00
|
|
|
make %{?_smp_mflags}
|
2014-08-12 21:37:16 +00:00
|
|
|
make %{?_smp_mflags} 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
|
|
|
|
|
|
|
|
install -pm 0644 tessdata-%{version}/* %{buildroot}/%{_datadir}/%{name}/tessdata/
|
|
|
|
|
2007-06-16 13:50:50 +00:00
|
|
|
|
2010-11-16 21:15:21 +00:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2015-10-06 09:30:59 +00:00
|
|
|
|
2007-06-16 13:50:50 +00:00
|
|
|
%files
|
2015-10-13 14:05:24 +00:00
|
|
|
%doc COPYING
|
2015-10-06 09:30:59 +00:00
|
|
|
%doc AUTHORS ChangeLog NEWS README testing/eurotext.tif testing/phototest.tif
|
2013-04-27 19:05:06 +00:00
|
|
|
%{_bindir}/ambiguous_words
|
|
|
|
%{_bindir}/classifier_tester
|
2010-11-16 21:15:21 +00:00
|
|
|
%{_bindir}/combine_tessdata
|
2013-04-27 19:05:06 +00:00
|
|
|
%{_bindir}/dawg2wordlist
|
2014-08-12 21:37:16 +00:00
|
|
|
%{_bindir}/set_unicharset_properties
|
2013-04-27 19:05:06 +00:00
|
|
|
%{_bindir}/shapeclustering
|
2007-06-16 13:50:50 +00:00
|
|
|
%{_bindir}/*training
|
2013-04-27 19:05:06 +00:00
|
|
|
%{_bindir}/%{name}
|
2014-08-12 21:37:16 +00:00
|
|
|
%{_bindir}/text2image
|
2007-08-24 14:34:28 +00:00
|
|
|
%{_bindir}/unicharset_extractor
|
|
|
|
%{_bindir}/wordlist2dawg
|
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
|
2015-10-06 09:30:59 +00:00
|
|
|
%{_libdir}/lib%{name}*.so.3*
|
2012-10-06 21:36:44 +00:00
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_mandir}/man5/*
|
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
|
|
|
|
|
2015-10-06 09:30:59 +00:00
|
|
|
|
2007-06-16 13:50:50 +00:00
|
|
|
%changelog
|
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
|