A new user interface for you! Read more...

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 http://bugs.opensuse.org/
#


Name:           lios
Version:        2.3
Release:        0
Summary:        Linux-Intelligent-Ocr-Solution
License:        GPL-3.0+
Group:          Productivity/Office/Other
Url:            http://sourceforge.net/projects/lios/
Source:         http://download.sf.net/lios/%{name}-%{version}.tar.gz
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

%description
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.

%prep
%setup -q

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

%build
python3 setup.py build

%install
python3 setup.py 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/

%files
%defattr(-,root,root)
%doc LICENSE share/doc/lios/copyright
%doc user-guide.odt
%{python3_sitelib}/lios/
%{python3_sitelib}/lios-2.0-py%{py3_ver}.egg-info
%{_datadir}/lios/
%{_datadir}/applications/*
%{_mandir}/man1/*%{ext_man}
%{_datadir}/pixmaps/lios.xpm
%{_bindir}/lios

%changelog