]> git.pld-linux.org Git - packages/tesseract.git/blobdiff - tesseract.spec
initial update to 3.04.00
[packages/tesseract.git] / tesseract.spec
index 7c3004adfe10b8c60d9d36730d32dadfa95146b0..a14c119dc7c931adb47788cd4fd34d66fe6ca261 100644 (file)
@@ -3,19 +3,17 @@
 Summary:       Tesseract Open Source OCR Engine
 Summary(pl.UTF-8):     Tesseract - silnik OCR o otwartych źródłach
 Name:          tesseract
-Version:       3.01
-Release:       2
+Version:       3.04.00
+Release:       0.1
 License:       Apache v2.0
 Group:         Applications/Graphics
-#Source0Download: http://code.google.com/p/tesseract-ocr/downloads/list
-Source0:       http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.tar.gz
-# Source0-md5: 1ba496e51a42358fb9d3ffe781b2d20a
+Source0:       https://github.com/tesseract-ocr/tesseract/archive/%{version}.tar.gz
+# Source0-md5: 078130b9c7d28c558a0e49d432505864
 URL:           http://code.google.com/p/tesseract-ocr/
 BuildRequires: autoconf >= 2.50
 BuildRequires: automake
-BuildRequires: leptonlib-devel
+BuildRequires: leptonlib-devel >= 1.71
 BuildRequires: libstdc++-devel
-BuildRequires: libtiff-devel
 BuildRequires: libtool
 Suggests:      tesseract-data >= 3
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -37,7 +35,6 @@ Group:          Development/Libraries
 Requires:      %{name} = %{version}-%{release}
 Requires:      leptonlib-devel
 Requires:      libstdc++-devel
-Requires:      libtiff-devel
 
 %description devel
 This package contains the development header files necessary to
@@ -77,17 +74,25 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-rm -f $RPM_BUILD_ROOT%{_libdir}/libtesseract.la
+# test program?
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/classifier_tester
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libtesseract.la
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post   -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS COPYING ChangeLog README ReleaseNotes
+%attr(755,root,root) %{_bindir}/ambiguous_words
 %attr(755,root,root) %{_bindir}/cntraining
 %attr(755,root,root) %{_bindir}/combine_tessdata
+%attr(755,root,root) %{_bindir}/dawg2wordlist
 %attr(755,root,root) %{_bindir}/mftraining
+%attr(755,root,root) %{_bindir}/shapeclustering
 %attr(755,root,root) %{_bindir}/tesseract
 %attr(755,root,root) %{_bindir}/unicharset_extractor
 %attr(755,root,root) %{_bindir}/wordlist2dawg
@@ -98,9 +103,12 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/tessdata/configs/*
 %dir %{_datadir}/tessdata/tessconfigs
 %{_datadir}/tessdata/tessconfigs/*
+%{_mandir}/man1/ambiguous_words.1*
 %{_mandir}/man1/cntraining.1*
 %{_mandir}/man1/combine_tessdata.1*
+%{_mandir}/man1/dawg2wordlist.1*
 %{_mandir}/man1/mftraining.1*
+%{_mandir}/man1/shapeclustering.1*
 %{_mandir}/man1/tesseract.1*
 %{_mandir}/man1/unicharset_extractor.1*
 %{_mandir}/man1/wordlist2dawg.1*
@@ -109,6 +117,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libtesseract.so
 %{_includedir}/%{name}
+%{_pkgconfigdir}/tesseract.pc
 %{_mandir}/man5/unicharambigs.5*
 %{_mandir}/man5/unicharset.5*
 
This page took 0.046003 seconds and 4 git commands to generate.