]> git.pld-linux.org Git - packages/tesseract.git/blob - tesseract.spec
- ldconfig is desirable
[packages/tesseract.git] / tesseract.spec
1 # TODO:
2 # - warnings at compile stage about pointer size on amd64 - needs check
3 Summary:        Tesseract Open Source OCR Engine
4 Summary(pl.UTF-8):      Tesseract - silnik OCR o otwartych źródłach
5 Name:           tesseract
6 Version:        3.02.02
7 Release:        3
8 License:        Apache v2.0
9 Group:          Applications/Graphics
10 #Source0Download: http://code.google.com/p/tesseract-ocr/downloads/list
11 Source0:        http://tesseract-ocr.googlecode.com/files/%{name}-ocr-%{version}.tar.gz
12 # Source0-md5:  26adc8154f0e815053816825dde246e6
13 Patch0:         format-security.patch
14 URL:            http://code.google.com/p/tesseract-ocr/
15 BuildRequires:  autoconf >= 2.50
16 BuildRequires:  automake
17 BuildRequires:  leptonlib-devel
18 BuildRequires:  libstdc++-devel
19 BuildRequires:  libtool
20 Suggests:       tesseract-data >= 3
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 A commercial quality OCR engine originally developed at HP between
25 1985 and 1995. In 1995, this engine was among the top 3 evaluated by
26 UNLV. It was open-sourced by HP and UNLV in 2005.
27
28 %description -l pl.UTF-8
29 Silnik OCR o komercyjnej jakości oryginalnie stworzony przez HP w
30 latach 1985-1995. W 1995 roku był jednym z 3 najlepszych wg UNLV.
31 Źródła zostały uwolnione przez HP i UNLV w 2005 roku.
32
33 %package devel
34 Summary:        Header files for Tesseract libraries
35 Summary(pl.UTF-8):      Pliki nagłówkowe bibliotek Tesseracta
36 Group:          Development/Libraries
37 Requires:       %{name} = %{version}-%{release}
38 Requires:       leptonlib-devel
39 Requires:       libstdc++-devel
40
41 %description devel
42 This package contains the development header files necessary to
43 develop applications using Tesseract API.
44
45 %description devel -l pl.UTF-8
46 Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów
47 wykorzystujących API Tesseracta.
48
49 %package static
50 Summary:        Static Tesseract libraries
51 Summary(pl.UTF-8):      Statyczne biblioteki Tesseracta
52 Group:          Development/Libraries
53 Requires:       %{name}-devel = %{version}-%{release}
54
55 %description static
56 Static Tesseract libraries.
57
58 %description static -l pl.UTF-8
59 Statyczne biblioteki Tesseracta.
60
61 %prep
62 %setup -q -n %{name}-ocr
63 %patch0 -p1
64
65 %build
66 %{__libtoolize}
67 %{__aclocal}
68 %{__autoconf}
69 %{__autoheader}
70 %{__automake}
71 %configure
72 %{__make}
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76
77 %{__make} install \
78         DESTDIR=$RPM_BUILD_ROOT
79
80 # test program?
81 %{__rm} $RPM_BUILD_ROOT%{_bindir}/classifier_tester
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %post   -p /sbin/ldconfig
86 %postun -p /sbin/ldconfig
87
88 %files
89 %defattr(644,root,root,755)
90 %doc AUTHORS COPYING ChangeLog README ReleaseNotes
91 %attr(755,root,root) %{_bindir}/ambiguous_words
92 %attr(755,root,root) %{_bindir}/cntraining
93 %attr(755,root,root) %{_bindir}/combine_tessdata
94 %attr(755,root,root) %{_bindir}/dawg2wordlist
95 %attr(755,root,root) %{_bindir}/mftraining
96 %attr(755,root,root) %{_bindir}/shapeclustering
97 %attr(755,root,root) %{_bindir}/tesseract
98 %attr(755,root,root) %{_bindir}/unicharset_extractor
99 %attr(755,root,root) %{_bindir}/wordlist2dawg
100 %attr(755,root,root) %{_libdir}/libtesseract.so.*.*.*
101 %attr(755,root,root) %ghost %{_libdir}/libtesseract.so.3
102 %dir %{_datadir}/tessdata
103 %dir %{_datadir}/tessdata/configs
104 %{_datadir}/tessdata/configs/*
105 %dir %{_datadir}/tessdata/tessconfigs
106 %{_datadir}/tessdata/tessconfigs/*
107 %{_mandir}/man1/ambiguous_words.1*
108 %{_mandir}/man1/cntraining.1*
109 %{_mandir}/man1/combine_tessdata.1*
110 %{_mandir}/man1/dawg2wordlist.1*
111 %{_mandir}/man1/mftraining.1*
112 %{_mandir}/man1/shapeclustering.1*
113 %{_mandir}/man1/tesseract.1*
114 %{_mandir}/man1/unicharset_extractor.1*
115 %{_mandir}/man1/wordlist2dawg.1*
116
117 %files devel
118 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_libdir}/libtesseract.so
120 %{_libdir}/libtesseract.la
121 %{_includedir}/%{name}
122 %{_pkgconfigdir}/tesseract.pc
123 %{_mandir}/man5/unicharambigs.5*
124 %{_mandir}/man5/unicharset.5*
125
126 %files static
127 %defattr(644,root,root,755)
128 %{_libdir}/libtesseract.a
This page took 0.086892 seconds and 4 git commands to generate.