File gocr.spec of Package gocr

#
# spec file for package gocr (Version 0.48)
#
# 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:           gocr
Version:        0.48
Release:        1
Summary:        Optical Character Recognition
License:        GPLv2+
Group:          Productivity/Graphics/Other
Url:            http://www-e.uni-magdeburg.de/jschulen/ocr/index.html
Source:         %{name}-%{version}.tar.bz2
Source1:        gocr.desktop
BuildRequires:  ghostscript-fonts-other
BuildRequires:  ghostscript-fonts-std
BuildRequires:  ghostscript-x11
BuildRequires:  libnetpbm-devel
BuildRequires:  transfig
BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
GOCR is an optical character recognition program. It reads images in
many formats and outputs a text file. It is also able to recognize
and translate barcodes.

%package gui
License:        GPLv2+
Group:          Productivity/Graphics/Other
Summary:        Optical Character Recognition - Basic Graphical Interface
Requires:       %{name} = %{version}
Requires:       tcl tk
Supplements:    packageand(gocr:tk)

%description gui
GOCR is an optical character recognition program. It reads images in
many formats and outputs a text file. It is also able to recognize
and translate barcodes.

This package contains a basic graphical interface for GOCR.

%prep
%setup -q
rm -rf */CVS
rm examples/.#Makefile.1.22

%build
%configure
make
make examples
make doc

%install
%makeinstall
test -x %{buildroot}%{_mandir}/man1/gocr.1
chmod a-x %{buildroot}%{_mandir}/man1/gocr.1
%suse_update_desktop_file -i gocr Graphics OCR

%clean
rm -fr %{buildroot}

%files
%defattr(-,root,root)
%doc AUTHORS BUGS CREDITS HISTORY README TODO gpl.html
%doc doc/gocr.html
%doc doc/unicode.txt
%doc doc/examples.txt
%doc examples
%doc %{_mandir}/man?/gocr.*
%{_bindir}/gocr

%files gui
%defattr(-,root,root)
%{_bindir}/gocr.tcl
%{_datadir}/applications/gocr.desktop

%changelog
openSUSE Build Service is sponsored by