forked from pool/ocrad
85 lines
2.4 KiB
RPMSpec
85 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package ocrad (Version 0.18)
|
|
#
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: ocrad
|
|
BuildRequires: gcc-c++
|
|
Url: https://savannah.gnu.org/projects/ocrad/
|
|
Summary: GNU Ocrad--Optical Character Recognition Program
|
|
Version: 0.19
|
|
Release: 1
|
|
Group: Productivity/Graphics/Other
|
|
License: GPLv2+
|
|
# URL:
|
|
Source0: ocrad-%{version}.tar.bz2
|
|
# Patch: ocrad-%{version}-gcc43.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
PreReq: %install_info_prereq
|
|
|
|
%description
|
|
GNU Ocrad is an OCR (Optical Character Recognition) program implemented
|
|
as a filter and based on a feature extraction method. It reads a bitmap
|
|
image in PBM format and outputs text in the ISO-8859-1 (Latin-1)
|
|
charset. It can be used as a stand-alone console application or as a
|
|
back-end to other programs.
|
|
|
|
gocr is another interesting command line OCR tool. Both can be plugged
|
|
into Kooka, the KDE scan and OCR program.
|
|
|
|
%package devel
|
|
Summary: Development files for GNU ocrad
|
|
Group: Development/Libraries/C and C++
|
|
|
|
%description devel
|
|
Development files for GNU ocrad - useful for programs implementing OCR
|
|
|
|
|
|
%prep
|
|
%setup -n ocrad-%{version}
|
|
|
|
%build
|
|
%configure --libdir=%_libdir
|
|
make CXXFLAGS='${RPM_OPT_FLAGS}'
|
|
|
|
%install
|
|
make install install-man DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
%post
|
|
%install_info --info-dir=%_infodir %_infodir/%name.info.gz
|
|
|
|
%postun
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
%clean
|
|
rm -fr $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
/usr/bin/ocrad
|
|
/usr/share/info/ocrad*
|
|
%doc %{_mandir}/man1/*
|
|
%doc AUTHORS COPYING ChangeLog INSTALL README NEWS TODO
|
|
|
|
%files devel
|
|
%defattr(-, root, root)
|
|
/usr/include/ocradlib.h
|
|
/%_libdir/libocrad.a
|
|
|
|
%changelog
|