tesseract/tesseract.spec

100 lines
3.1 KiB
RPMSpec
Raw Permalink Normal View History

2007-06-16 13:50:50 +00:00
Name: tesseract
2009-10-21 11:33:09 +00:00
Version: 2.04
Release: 1%{?dist}
2007-06-16 13:50:50 +00:00
Summary: Raw OCR Engine
Group: Applications/File
2007-08-24 14:34:28 +00:00
License: ASL 2.0
2007-06-16 13:50:50 +00:00
URL: http://code.google.com/p/tesseract-ocr/
Source0: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.tar.gz
2007-09-07 21:21:03 +00:00
Source1: http://tesseract-ocr.googlecode.com/files/%{name}-2.00.eng.tar.gz
2007-06-16 13:50:50 +00:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libtiff-devel
%package devel
2007-08-24 14:34:28 +00:00
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
2009-10-21 11:33:09 +00:00
Provides: %{name}-static = %{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}.
%prep
2007-08-24 14:34:28 +00:00
%setup -q -a 1
2007-06-16 13:50:50 +00:00
%build
sed -i 's#-DTESSDATA_PREFIX=@datadir@/#-DTESSDATA_PREFIX=@datadir@/%{name}/##' ccutil/Makefile.*
2009-10-21 11:33:09 +00:00
sed -i 's/#include <iostream>/#include <iostream>\n#include <cstdio>/' viewer/svutil.cpp
2007-06-16 13:50:50 +00:00
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/tesseract
mv $RPM_BUILD_ROOT%{_datadir}/tessdata $RPM_BUILD_ROOT%{_datadir}/tesseract
2007-08-24 14:34:28 +00:00
rm $RPM_BUILD_ROOT%{_datadir}/%{name}/tessdata/{deu,fra,ita,nld,spa}*
2007-06-16 13:50:50 +00:00
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%{_bindir}/*training
2007-08-24 14:34:28 +00:00
%{_bindir}/unicharset_extractor
%{_bindir}/wordlist2dawg
2007-06-16 13:50:50 +00:00
%{_datadir}/%{name}
2009-10-21 11:33:09 +00:00
%doc AUTHORS ChangeLog COPYING eurotext.tif NEWS phototest.tif README
2007-06-16 13:50:50 +00:00
%files devel
%defattr(-,root,root,-)
%{_includedir}/%{name}
2009-10-21 11:33:09 +00:00
%{_libdir}/lib%{name}*
2007-06-16 13:50:50 +00:00
%changelog
2009-10-21 11:33:09 +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-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
* Sat Jan 26 2007 Karol Trzcionka <karlikt at gmail.com> - 1.02-3
- 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