- release 3 (by relup.sh)
[packages/cuneiform.git] / cuneiform.spec
1 Summary:        OCR system
2 Name:           cuneiform
3 Version:        1.1.0
4 Release:        3
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 Patch0:         %{name}-libm.patch
10 URL:            https://launchpad.net/cuneiform-linux
11 BuildRequires:  ImageMagick-c++-devel
12 BuildRequires:  cmake
13 ExclusiveArch:  %{ix86} %{x8664}
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 OCR system originally developed and open sourced by
18 Cognitive technologies.
19
20 %prep
21 %setup -q -n %{name}-linux-%{version}
22 %patch0 -p1
23
24 %build
25 rm -f builddir/CMakeCache.txt
26 %{__mkdir_p} builddir
27 cd builddir
28 export CFLAGS="%{rpmcflags}"
29 export CXXFLAGS="%{rpmcflags}"
30 %{__cmake} .. \
31         -DCMAKE_INSTALL_PREFIX="%{_prefix}"
32 %{__make}
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36
37 %{__make} -C builddir install \
38         DESTDIR=$RPM_BUILD_ROOT
39
40 %{__rm} -r $RPM_BUILD_ROOT{%{_includedir},%{_libdir}/lib*.so}
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %post   -p /sbin/ldconfig
46 %postun -p /sbin/ldconfig
47
48 %files
49 %defattr(644,root,root,755)
50 %doc issues.txt original\ russian\ readme.rtf readme.txt
51 %attr(755,root,root) %{_bindir}/%{name}
52 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
53 %attr(755,root,root) %ghost %{_libdir}/lib*.so.0
54 %{_datadir}/%{name}
This page took 0.06158 seconds and 3 git commands to generate.