tesseract/tesseract.spec

203 lines
6.8 KiB
RPMSpec
Raw Normal View History

2013-04-27 19:05:06 +00:00
%global fullname tesseract-ocr
2014-08-12 21:37:16 +00:00
%global pre rc1
2007-06-16 13:50:50 +00:00
Name: tesseract
2014-08-12 21:37:16 +00:00
Version: 3.03
Release: 0.6%{?pre:.%pre}%{?dist}
2014-08-12 21:37:16 +00:00
Summary: Raw OCR Engine
2007-06-16 13:50:50 +00:00
Group: Applications/File
2007-08-24 14:34:28 +00:00
License: ASL 2.0
2013-04-27 19:05:06 +00:00
URL: http://code.google.com/p/%{fullname}/
2014-08-12 21:37:16 +00:00
# The downloads are now posted on google-drive which has impossible download URLS...
# The url of the drive is
# https://drive.google.com/folderview?id=0B7l10Bj_LprhQnpSRkpGMGV2eE0
Source0: %{name}-%{version}%{?pre:-%pre}.tar.gz
2013-04-27 19:05:06 +00:00
Source1: http://tesseract-ocr.googlecode.com/files/%{fullname}-3.02.eng.tar.gz
Source2: http://tesseract-ocr.googlecode.com/files/%{fullname}-3.01.osd.tar.gz
2007-06-16 13:50:50 +00:00
BuildRequires: libtiff-devel
2012-10-06 21:36:44 +00:00
BuildRequires: leptonica-devel
2014-08-12 21:37:16 +00:00
BuildRequires: cairo-devel
BuildRequires: libicu-devel
BuildRequires: pango-devel
BuildRequires: automake libtool
2013-04-27 19:05:06 +00:00
Obsoletes: tesseract < 3.02.02
2007-06-16 13:50:50 +00:00
%package devel
2013-04-27 19:05:06 +00:00
Summary: Development files for %{fullname}
2007-08-24 14:34:28 +00:00
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
2007-06-16 13:50:50 +00:00
%package osd
Summary: Orientation & Script Detection Data for %{fullname}
Group: Applications/File
Requires: %{name} = %{version}-%{release}
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.
%description devel
The %{name}-devel package contains header file for
developing applications that use %{name}.
%description osd
Orientation & Script Detection Data for %{fullname}
2007-06-16 13:50:50 +00:00
%prep
2014-08-12 21:37:16 +00:00
%setup -q -n %{name}-%{version} -a1 -a2
2007-06-16 13:50:50 +00:00
%build
sed -i 's#-DTESSDATA_PREFIX=@datadir@/#-DTESSDATA_PREFIX=@datadir@/%{name}/##' ccutil/Makefile.*
2014-08-12 21:37:16 +00:00
autoreconf -ifv
2010-11-16 21:15:21 +00:00
%configure --disable-static
2007-06-16 13:50:50 +00:00
make %{?_smp_mflags}
2014-08-12 21:37:16 +00:00
# Remove compiled files, see https://groups.google.com/forum/#!topic/tesseract-dev/ARKOSV3zpWo
make -C training clean
make %{?_smp_mflags} training
2007-06-16 13:50:50 +00:00
%install
2014-08-12 21:37:16 +00:00
%make_install
%make_install training-install
rm -f %{buildroot}%{_libdir}/*la
mkdir -p %{buildroot}%{_datadir}/%{name}
mv %{buildroot}%{_datadir}/tessdata %{buildroot}%{_datadir}/%{name}
install -m 0644 %{fullname}/tessdata/* %{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
2007-06-16 13:50:50 +00:00
%files
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
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/tessdata
%{_datadir}/%{name}/tessdata/configs
%{_datadir}/%{name}/tessdata/tessconfigs
%{_datadir}/%{name}/tessdata/eng.*
2014-08-12 21:37:16 +00:00
%{_datadir}/%{name}/tessdata/pdf.ttf
%{_datadir}/%{name}/tessdata/pdf.ttx
2010-11-16 21:15:21 +00:00
%{_libdir}/lib%{name}*.so.*
2012-10-06 21:36:44 +00:00
%{_mandir}/man1/*
%{_mandir}/man5/*
2007-06-16 13:50:50 +00:00
2009-10-21 11:14:42 +00:00
%doc AUTHORS ChangeLog COPYING eurotext.tif NEWS phototest.tif README
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
%files osd
%{_datadir}/%{name}/tessdata/osd.traineddata
2007-06-16 13:50:50 +00:00
%changelog
* 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
* 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
* 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
* 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
* 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
* 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
* Tue Jul 31 2012 Kevin Kofler <Kevin@tigcc.ticalc.org> - 3.00-6
- Fix FTBFS with g++ 4.7
* 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
* 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
* 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
* 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
* 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