File paperwork.spec of Package paperwork

# spec file for package paperwork
# Copyright (c) 2019 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

Name:           paperwork
Version:        0.3.2
Release:        0
Summary:        Tool to make papers searchable
License:        GPL-3.0-only
Group:          Productivity
Patch0:         desktop.patch
Patch1:         icon.patch
BuildRequires:  fdupes
BuildRequires:  gobject-introspection
BuildRequires:  hicolor-icon-theme
BuildRequires:  python-setuptools
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(python2)
BuildRequires:  pkgconfig(zlib)
Requires:       poppler-tools
Requires:       python-Levenshtein
Requires:       python-Pillow
Requires:       python-Whoosh
Requires:       python-cairo
Requires:       python-enchant
Requires:       python-gobject
Requires:       python-gobject-cairo
Requires:       python-pip
Requires:       python-pycountry
Requires:       python-pyinsane
Requires:       python-pyocr
Requires:       python-scipy
Requires:       python-simplebayes
Requires:       python-termcolor
Recommends:     sane-backends
Recommends:     tesseract-ocr
BuildArch:      noarch

The basic idea behind Paperwork is "scan & forget". You should be able to just
scan a new document and forget about it until the day you need it again. Let the
machine do most of the work.

%setup -q
%patch0 -p1
%patch1 -p1

chmod +x
sh upd-po && sh gen-mo
python build

python install  --prefix=%{_prefix} --optimize=2  --root=%{buildroot}
%find_lang %{name}
%fdupes %{buildroot}%{_prefix}



%files -f %{name}.lang
%doc AUTHORS ChangeLog README.markdown