]>
Commit | Line | Data |
---|---|---|
999b4bd4 TP |
1 | Summary: OCR system |
2 | Name: cuneiform | |
3 | Version: 1.1.0 | |
4 | Release: 1 | |
5 | License: BSD | |
6 | Group: Applications/Graphics | |
7 | Source0: http://launchpad.net/cuneiform-linux/1.1/1.1/+download/%{name}-linux-%{version}.tar.bz2 | |
8 | # Source0-md5: 09fd160cdfc512f26442a7e91246598d | |
9 | URL: https://launchpad.net/cuneiform-linux | |
10 | BuildRequires: ImageMagick-c++-devel | |
11 | BuildRequires: cmake | |
12 | ExclusiveArch: %{ix86} %{x8664} | |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %description | |
16 | OCR system originally developed and open sourced by | |
17 | Cognitive technologies. | |
18 | ||
19 | %prep | |
20 | %setup -q -n %{name}-linux-%{version} | |
21 | ||
22 | %build | |
23 | rm -f builddir/CMakeCache.txt | |
24 | %{__mkdir_p} builddir | |
25 | cd builddir | |
26 | export CFLAGS="%{rpmcflags}" | |
27 | export CXXFLAGS="%{rpmcflags}" | |
28 | %{__cmake} .. \ | |
29 | -DCMAKE_INSTALL_PREFIX="%{_prefix}" | |
30 | %{__make} | |
31 | ||
32 | %install | |
33 | rm -rf $RPM_BUILD_ROOT | |
34 | ||
35 | %{__make} -C builddir install \ | |
36 | DESTDIR=$RPM_BUILD_ROOT | |
37 | ||
38 | %{__rm} -r $RPM_BUILD_ROOT{%{_includedir},%{_libdir}/lib*.so} | |
39 | ||
40 | %clean | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %post -p /sbin/ldconfig | |
44 | %postun -p /sbin/ldconfig | |
45 | ||
46 | %files | |
47 | %defattr(644,root,root,755) | |
48 | %doc issues.txt original\ russian\ readme.rtf readme.txt | |
49 | %attr(755,root,root) %{_bindir}/%{name} | |
50 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* | |
51 | %attr(755,root,root) %ghost %{_libdir}/lib*.so.0 | |
52 | %{_datadir}/%{name} |