2007-01-15 23:27:21 +00:00
|
|
|
#
|
2013-07-24 11:45:29 +00:00
|
|
|
# spec file for package ocrad
|
2007-01-15 23:27:21 +00:00
|
|
|
#
|
2024-02-12 12:15:57 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2007-01-15 23:27:21 +00:00
|
|
|
#
|
2009-06-18 22:42:08 +00:00
|
|
|
# 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.
|
|
|
|
|
2018-10-04 12:36:19 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:27:21 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: ocrad
|
2024-02-12 12:15:57 +00:00
|
|
|
Version: 0.29
|
2013-07-24 11:45:29 +00:00
|
|
|
Release: 0
|
2011-02-18 22:12:52 +00:00
|
|
|
Summary: Optical Character Recognition Program
|
2018-10-04 12:36:19 +00:00
|
|
|
License: GPL-2.0-or-later
|
2013-07-24 11:45:29 +00:00
|
|
|
Group: Productivity/Graphics/Other
|
2022-02-23 12:25:59 +00:00
|
|
|
URL: https://www.gnu.org/software/ocrad/
|
|
|
|
Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.lz
|
|
|
|
Source1: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.lz.sig
|
2015-04-27 04:23:35 +00:00
|
|
|
Source2: %{name}.keyring
|
2011-02-18 22:12:52 +00:00
|
|
|
BuildRequires: gcc-c++
|
2022-02-23 12:25:59 +00:00
|
|
|
BuildRequires: libpng-devel
|
2014-05-07 09:42:00 +00:00
|
|
|
BuildRequires: lzip
|
2011-02-18 22:12:52 +00:00
|
|
|
Requires(post): info
|
2024-02-12 12:15:57 +00:00
|
|
|
Requires(preun): info
|
2007-01-15 23:27:21 +00:00
|
|
|
|
2011-02-18 22:12:52 +00:00
|
|
|
%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.
|
2007-01-15 23:27:21 +00:00
|
|
|
|
2011-02-18 22:12:52 +00:00
|
|
|
Also includes a layout analyser able to separate the columns or blocks of text
|
|
|
|
normally found on printed pages.
|
2007-01-15 23:27:21 +00:00
|
|
|
|
2011-02-18 22:12:52 +00:00
|
|
|
Ocrad can be used as a stand-alone console application, or as a backend to
|
|
|
|
other programs.
|
2007-01-15 23:27:21 +00:00
|
|
|
|
2011-02-18 22:12:52 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for GNU ocrad
|
|
|
|
Group: Development/Libraries/C and C++
|
2010-09-13 10:08:56 +00:00
|
|
|
|
2011-02-18 22:12:52 +00:00
|
|
|
%description devel
|
|
|
|
Development files for GNU ocrad - useful for programs implementing OCR.
|
2009-12-02 10:10:41 +00:00
|
|
|
|
2007-01-15 23:27:21 +00:00
|
|
|
%prep
|
2011-02-18 22:12:52 +00:00
|
|
|
%setup -q
|
2007-01-15 23:27:21 +00:00
|
|
|
|
|
|
|
%build
|
2011-02-18 22:12:52 +00:00
|
|
|
%configure
|
2022-02-23 12:25:59 +00:00
|
|
|
%make_build CXXFLAGS="%{optflags}"
|
2007-01-15 23:27:21 +00:00
|
|
|
|
|
|
|
%install
|
2019-01-18 07:37:04 +00:00
|
|
|
%make_install
|
2014-05-07 09:42:00 +00:00
|
|
|
rm -f %{buildroot}%{_libdir}/libocrad.a
|
2007-01-15 23:27:21 +00:00
|
|
|
|
2011-02-18 22:12:52 +00:00
|
|
|
%post
|
2014-05-07 09:42:00 +00:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
2010-04-07 12:19:03 +00:00
|
|
|
|
2011-02-18 22:12:52 +00:00
|
|
|
%preun
|
2014-05-07 09:42:00 +00:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
2010-04-07 12:19:03 +00:00
|
|
|
|
2007-01-15 23:27:21 +00:00
|
|
|
%files
|
2018-10-04 12:36:19 +00:00
|
|
|
%license COPYING
|
2022-02-23 12:25:59 +00:00
|
|
|
%doc AUTHORS ChangeLog NEWS README
|
2011-02-18 22:12:52 +00:00
|
|
|
%{_bindir}/ocrad
|
2019-01-18 07:37:04 +00:00
|
|
|
%{_infodir}/ocrad*
|
|
|
|
%{_mandir}/man1/ocrad*
|
2011-02-18 22:12:52 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/ocradlib.h
|
2007-01-15 23:27:21 +00:00
|
|
|
|
2007-07-30 19:05:00 +00:00
|
|
|
%changelog
|