File lios.spec of Package lios

# spec file for package lios
# Copyright (c) 2016 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:           lios
Version:        2.3
Release:        0
Summary:        Linux-Intelligent-Ocr-Solution
License:        GPL-3.0+
Group:          Productivity/Office/Other
BuildRequires:  ImageMagick
BuildRequires:  aspell-en
BuildRequires:  espeak
BuildRequires:  fdupes
BuildRequires:  gstreamer-plugins-base
BuildRequires:  noto-sans-cuneiform-fonts
BuildRequires:  python3
BuildRequires:  python3-Pillow
BuildRequires:  python3-pyenchant
BuildRequires:  python3-speechd
BuildRequires:  tesseract-ocr
BuildRequires:  update-desktop-files
Requires:       PackageKit-gtk3-module
Requires:       aspell-en
Requires:       espeak
Requires:       noto-sans-cuneiform-fonts
Requires:       poppler-tools
Requires:       python3-pyenchant
Requires:       python3-gobject
Requires:       python3-sane
Requires:       python3-speechd
Requires:       tesseract-ocr
Requires:       typelib(Vte)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

Lios is a free and open source software for converting print in to text using either scanner or a camera. It can also produce text out of scanned images from other sources such as Pdf, Image, Folder containing Images or screenshot. Program is given total accessibility for visually impaired. Lios is written in python3.

%setup -q

for f in `find ./lios/ -name "*.py"`
  sed -i '1{/\/usr\/bin\/env/d;}' ${f}
  sed -i '1{/\/usr\/bin\/python/d;}' ${f}

python3 build

python3 install -O1 --skip-build --prefix=%{_prefix} --root=%{buildroot}

%suse_update_desktop_file Lios OCR
rm %{buildroot}%{_datadir}/doc/lios/copyright
%fdupes %{buildroot}%{python3_sitelib}/lios/

%doc LICENSE share/doc/lios/copyright
%doc user-guide.odt