Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:aevseev
tesseract
tesseract.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tesseract.spec of Package tesseract
%define realname tesseract %define srcext tar.bz2 %define so_ver 5 # Common info Name: %{realname} Version: 0 Release: %{?extraver:0.}1%{?dist} License: Apache-2.0 Group: Productivity/Graphics/Convertors URL: https://github.com/tesseract-ocr/tesseract Summary: Free OCR Engine # Install-time parameters %if 0%{?suse_version} Suggests: tesseract-traineddata %endif Provides: tesseract-ocr = %{version}-%{release} Obsoletes: tesseract-ocr < %{version}-%{release} # Build-time parameters BuildRequires: autoconf >= 2.63 automake libtool BuildRequires: pkg-config gcc-c++ BuildRequires: libtiff-devel BuildRequires: ocl-icd-devel BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(lept) >= 1.74 BuildRequires: pkgconfig(libarchive) BuildRequires: pkgconfig(icu-uc) >= 52.1 BuildRequires: pkgconfig(icu-i18n) >= 52.1 BuildRequires: pkgconfig(pango) >= 1.38.0 BuildRequires: pkgconfig(cairo) # Documentation BuildRequires: asciidoc BuildRoot: %{_tmppath}/%{name}-root Source: %{realname}-%{version}%{?extraver}.%{srcext} %description The Tesseract OCR engine was one of the top 3 engines in the 1995 UNLV Accuracy test. Between 1995 and 2006 it had little work done on it, but it is probably one of the most accurate open source OCR engines available. The source code will read a binary, grey or color image and output text. A tiff reader is built in that will read uncompressed TIFF images, or libtiff can be added to read compressed images. %package -n libtesseract%{so_ver} Group: System/Libraries Summary: Shared library for free OCR Engine %description -n libtesseract%{so_ver} The Tesseract OCR engine was one of the top 3 engines in the 1995 UNLV Accuracy test. Between 1995 and 2006 it had little work done on it, but it is probably one of the most accurate open source OCR engines available. The source code will read a binary, grey or color image and output text. A tiff reader is built in that will read uncompressed TIFF images, or libtiff can be added to read compressed images. This package contains shared library. %package training-tools Group: Productivity/Graphics/Convertors Summary: Training tools for tesseract %description training-tools The Tesseract OCR engine was one of the top 3 engines in the 1995 UNLV Accuracy test. Between 1995 and 2006 it had little work done on it, but it is probably one of the most accurate open source OCR engines available. The source code will read a binary, grey or color image and output text. A tiff reader is built in that will read uncompressed TIFF images, or libtiff can be added to read compressed images. This package contains training tools %package devel Group: Development/Languages/C and C++ Summary: Development files for %{name} Requires: libtesseract%{so_ver} = %{version}-%{release} Provides: tesseract-ocr-devel = %{version}-%{release} Obsoletes: tesseract-ocr-devel < %{version}-%{release} %description devel Development files for %{name} # Preparation step (unpackung and patching if necessary) %prep %setup -q -n %{realname}-%{version}%{?extraver} test -x configure || ./autogen.sh %build _CFLAGS='%{optflags} %{?gcc_lto}' _LDFLAGS='-Wl,--as-needed -Wl,--strip-all -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro %{?gcc_lto}' %configure \ --enable-opencl \ --disable-static \ CFLAGS="$_CFLAGS" \ CXXFLAGS="$_CFLAGS" \ LDFLAGS="$_LDFLAGS" %{__make} %{?_smp_mflags} %{__make} training %{?_smp_mflags} %install %{__make} install DESTDIR=%{buildroot} %{__make} training-install DESTDIR=%{buildroot} %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files %defattr(-,root,root) %license LICENSE %doc AUTHORS README.md %{_bindir}/tesseract %dir %{_datadir}/tessdata/configs %dir %{_datadir}/tessdata/tessconfigs %dir %{_datadir}/tessdata %{_datadir}/tessdata/configs/* %{_datadir}/tessdata/tessconfigs/* %{_datadir}/tessdata/pdf.ttf %doc %{_mandir}/man1/tesseract.1* %files -n libtesseract%{so_ver} %defattr(-,root,root) %license LICENSE %doc AUTHORS README.md %{_libdir}/*.so.%{so_ver}* %files training-tools %defattr(-,root,root) %license LICENSE %doc AUTHORS README.md %attr(0755,root,root) %{_bindir}/* %doc %{_mandir}/man1/* %doc %{_mandir}/man5/* %exclude %{_bindir}/tesseract %exclude %{_mandir}/man1/tesseract.1* %files devel %defattr(-,root,root) %dir %{_includedir}/tesseract/ %{_includedir}/tesseract/*.h %{_libdir}/libtesseract.so %{_libdir}/pkgconfig/tesseract.pc %exclude %{_libdir}/*.la %post -n libtesseract%{so_ver} -p /sbin/ldconfig %postun -n libtesseract%{so_ver} -p /sbin/ldconfig %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor