ocrad/ocrad.spec

92 lines
2.5 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.18
Release: 1
Group: Productivity/Graphics/Other
#Requires:
#Provides:
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.
Authors:
--------
Antonio Diaz Diaz
%define INSTALL install -m755 -s
%define INSTALL_SCRIPT install -m755
%define INSTALL_DIR install -d -m755
%define INSTALL_DATA install -m644
%prep
%setup -n ocrad-%{version}
# %patch -p1
%build
./configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man
make CXXFLAGS='${RPM_OPT_FLAGS}'
%install
if [ ! "x" = "x$RPM_BUILD_ROOT" ] ; then
rm -fr $RPM_BUILD_ROOT
%{INSTALL_DIR} $RPM_BUILD_ROOT
fi
make install DESTDIR=$RPM_BUILD_ROOT
make 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
# spec file ends here
%changelog