File pdfsandwich.spec of Package pdfsandwich
#
# spec file for package pdfsandwich
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2014-2017 Malcolm J Lewis <malcolmlewis@opensuse.org>
#
# 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: pdfsandwich
Version: 0.1.7
Release: 0
Summary: A tool to make "sandwich" OCR pdf files
License: GPL-2.0-or-later
Group: Productivity/Graphics/Convertors
URL: http://www.tobias-elze.de/pdfsandwich/
Source0: https://sourceforge.net/projects/pdfsandwich/files/%{name}%20%{version}/%{name}-%{version}.tar.bz2
BuildRequires: ocaml
Requires: ImageMagick
Requires: poppler-tools
Requires: tesseract-ocr
Requires: unpaper
%description
Pdfsandwich generates "sandwich" OCR pdf files, i.e. pdf files which contain only
images (no text) will be processed by optical character recognition (OCR) and the
text will be added to each page invisibly "behind" the images.
pdfsandwich is a command line tool which is supposed to be useful to OCR scanned
books or journals. It is able to recognize the page layout even for multicolumn
text.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
%make_install
# Remove as we package as %%doc
rm -rf %{buildroot}%{_datadir}/doc
%files
%doc changelog copyright
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%changelog