update to 5.3.0 [release 5.3.0-1mamba;Sun Jan 08 2023]

This commit is contained in:
Silvan Calarco 2024-01-05 18:26:11 +01:00
parent d3fecdb26e
commit b917177ca4

View File

@ -1,15 +1,15 @@
%define majver %(echo %version | cut -d. -f1-2) %define majver %(echo %version | cut -d. -f1-2)
Name: tesseract Name: tesseract
Version: 4.1.1 Version: 5.3.0
Release: 1mamba Release: 1mamba
Summary: An OCR Engine that was developed at HP Labs between 1985 and 1995 Summary: An OCR Engine that was developed at HP Labs between 1985 and 1995
Group: Applications/Accessibility Group: Applications/Accessibility
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://code.google.com/p/tesseract-ocr URL: https://github.com/tesseract-ocr/
Source: https://github.com/tesseract-ocr/tesseract.git/%{version}/tesseract-%{version}.tar.bz2 Source: https://github.com/tesseract-ocr/tesseract.git/%{version}/tesseract-%{version}.tar.bz2
Source1: https://github.com/tesseract-ocr/langdata.git/master/langdata-%{version}.tar.bz2 Source1: https://github.com/tesseract-ocr/langdata.git/main/langdata-%{version}.tar.bz2
#Source1: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-%{majver}.eng.tar.gz #Source1: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-%{majver}.eng.tar.gz
#Source2: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-%{majver}.hin.tar.gz #Source2: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-%{majver}.hin.tar.gz
#Source3: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-%{majver}.ara.tar.gz #Source3: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-%{majver}.ara.tar.gz
@ -58,19 +58,15 @@ Patch0: %{name}-3.01-gcc-4.7.patch
License: Apache License 2.0 License: Apache License 2.0
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: libarchive-devel
BuildRequires: libcurl-devel
BuildRequires: libgcc BuildRequires: libgcc
BuildRequires: libjbig-devel BuildRequires: libgomp-devel
BuildRequires: libjpeg-devel
BuildRequires: libleptonica-devel BuildRequires: libleptonica-devel
BuildRequires: liblzma-devel
BuildRequires: libpng-devel
BuildRequires: libstdc++6-devel BuildRequires: libstdc++6-devel
BuildRequires: libtiff-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: libleptonica-devel >= 1.73-1mamba BuildRequires: libleptonica-devel >= 1.83.0
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %description
Tesseract is an OCR Engine that was developed at HP Labs between 1985 and 1995. Tesseract is an OCR Engine that was developed at HP Labs between 1985 and 1995.
@ -96,6 +92,8 @@ This package contains libraries and header files for developing applications tha
%prep %prep
%setup -q -a1 %setup -q -a1
#-D -T
#:<< _EOF
#-a2 -a3 -a4 -a5 -a6 -a7 -a8 -a9 #-a2 -a3 -a4 -a5 -a6 -a7 -a8 -a9
#%patch0 -p1 #%patch0 -p1
@ -105,15 +103,14 @@ cp %{S:20} %{S:22} %{S:23} %{S:24} %{S:25} %{S:26} %{S:27} %{S:28} %{S:29} .
cp %{S:30} %{S:31} %{S:32} %{S:33} %{S:34} %{S:35} %{S:36} %{S:37} %{S:38} %{S:39} . cp %{S:30} %{S:31} %{S:32} %{S:33} %{S:34} %{S:35} %{S:36} %{S:37} %{S:38} %{S:39} .
cp %{S:40} %{S:41} %{S:42} %{S:43} %{S:44} %{S:45} . cp %{S:40} %{S:41} %{S:42} %{S:43} %{S:44} %{S:45} .
gunzip *.gz gunzip *.gz
cd ..
#sed -i "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|" configure.ac
./autogen.sh
%build %build
sed -i "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|" configure.ac #:<< _EOF
autoreconf -f -i
#%{__libtoolize}
#%{__aclocal}
#%{__autoconf}
#%{__autoheader}
#%{__automake}
%configure %configure
%make %make
@ -163,7 +160,6 @@ cp -a tessdata/*.traineddata %{buildroot}%{_datadir}/tessdata/
%dir %{_includedir}/tesseract %dir %{_includedir}/tesseract
%{_includedir}/tesseract/*.h %{_includedir}/tesseract/*.h
%{_libdir}/libtesseract.a %{_libdir}/libtesseract.a
%{_libdir}/libtesseract.la
%{_libdir}/libtesseract.so %{_libdir}/libtesseract.so
%{_libdir}/pkgconfig/tesseract.pc %{_libdir}/pkgconfig/tesseract.pc
#%doc ChangeLog NEWS README #%doc ChangeLog NEWS README
@ -550,6 +546,9 @@ Othert languages data for Tesseract.
%{_datadir}/tessdata/vie.traineddata %{_datadir}/tessdata/vie.traineddata
%changelog %changelog
* Sun Jan 08 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 5.3.0-1mamba
- update to 5.3.0
* Fri Jan 31 2020 Automatic Build System <autodist@mambasoft.it> 4.1.1-1mamba * Fri Jan 31 2020 Automatic Build System <autodist@mambasoft.it> 4.1.1-1mamba
- automatic version update by autodist - automatic version update by autodist