- release 3 (by relup.sh)
[packages/cuneiform.git] / cuneiform.spec
CommitLineData
999b4bd4
TP
1Summary: OCR system
2Name: cuneiform
3Version: 1.1.0
6e05c0ab 4Release: 3
999b4bd4
TP
5License: BSD
6Group: Applications/Graphics
7Source0: http://launchpad.net/cuneiform-linux/1.1/1.1/+download/%{name}-linux-%{version}.tar.bz2
8# Source0-md5: 09fd160cdfc512f26442a7e91246598d
c80adbeb 9Patch0: %{name}-libm.patch
999b4bd4
TP
10URL: https://launchpad.net/cuneiform-linux
11BuildRequires: ImageMagick-c++-devel
12BuildRequires: cmake
13ExclusiveArch: %{ix86} %{x8664}
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16%description
17OCR system originally developed and open sourced by
18Cognitive technologies.
19
20%prep
21%setup -q -n %{name}-linux-%{version}
c80adbeb 22%patch0 -p1
999b4bd4
TP
23
24%build
25rm -f builddir/CMakeCache.txt
26%{__mkdir_p} builddir
27cd builddir
28export CFLAGS="%{rpmcflags}"
29export CXXFLAGS="%{rpmcflags}"
30%{__cmake} .. \
31 -DCMAKE_INSTALL_PREFIX="%{_prefix}"
32%{__make}
33
34%install
35rm -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
43rm -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.266023 seconds and 4 git commands to generate.