728e30b34d
- Update to version 0.26 * Version 0.26 released. * main.cc (main): Don't use stdin more than once. * configure: Avoid warning on some shells when testing for g++. * Makefile.in: Detect the existence of install-info. - Spec cleanup OBS-URL: https://build.opensuse.org/request/show/639957 OBS-URL: https://build.opensuse.org/package/show/graphics/ocrad?expand=0&rev=25
80 lines
2.3 KiB
RPMSpec
80 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package ocrad
|
|
#
|
|
# Copyright (c) 2018 SUSE LINUX 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: ocrad
|
|
Version: 0.26
|
|
Release: 0
|
|
Summary: Optical Character Recognition Program
|
|
License: GPL-2.0-or-later
|
|
Group: Productivity/Graphics/Other
|
|
URL: http://www.gnu.org/software/ocrad/
|
|
Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.lz
|
|
Source1: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.lz.sig
|
|
Source2: %{name}.keyring
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: lzip
|
|
Requires(post): info
|
|
Requires(preun): info
|
|
|
|
%description
|
|
GNU Ocrad is an OCR (Optical Character Recognition) program based on a feature
|
|
extraction method. It reads images in pbm (bitmap), pgm (greyscale) or ppm
|
|
(color) formats and produces text in byte (8-bit) or UTF-8 formats.
|
|
|
|
Also includes a layout analyser able to separate the columns or blocks of text
|
|
normally found on printed pages.
|
|
|
|
Ocrad can be used as a stand-alone console application, or as a backend to
|
|
other programs.
|
|
|
|
%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 -q
|
|
|
|
%build
|
|
%configure
|
|
make CXXFLAGS="%{optflags}" %{?_smp_mflags}
|
|
|
|
%install
|
|
make DESTDIR=%{buildroot} install
|
|
rm -f %{buildroot}%{_libdir}/libocrad.a
|
|
|
|
%post
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
|
|
|
%preun
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
|
|
|
%files
|
|
%doc AUTHORS ChangeLog NEWS README
|
|
%license COPYING
|
|
%{_bindir}/ocrad
|
|
%doc %{_infodir}/ocrad*
|
|
%doc %{_mandir}/man1/ocrad*
|
|
|
|
%files devel
|
|
%{_includedir}/ocradlib.h
|
|
|
|
%changelog
|