LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File yagf.spec of Package yagf (Project Publishing)

# spec file for package yagf
# Copyright (c) 2012 SUSE LINUX Products 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:           yagf
Version:        0.9.2
Release:        0
License:        GPL-3.0+
Summary:        Graphical Front-end for Cuneiform and Tesseract
Url:            http://symmetrica.net/cuneiform-linux/yagf-en.html
Group:          Productivity/Graphics/Other
Source0:        http://symmetrica.net/cuneiform-linux/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE yagf-0.9-desktop.patch lazy.kent@opensuse.org -- correct desktop file
Patch0:         yagf-0.9-desktop.patch
BuildRequires:  ImageMagick
BuildRequires:  aspell
BuildRequires:  aspell-devel
BuildRequires:  cmake
BuildRequires:  hicolor-icon-theme
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(QtCore)
BuildRequires:  pkgconfig(QtGui)
Requires:       ocr-engine
Requires:       poppler-tools
Recommends:     %{name}-lang
Recommends:     cuneiform
Recommends:     tesseract
Recommends:     xsane
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

YAGF is a graphical front-end for Cuneiform and Tesseract OCR tools.
With YAGF you can open already scanned image files or obtain new images
via XSane (scanning results are automatically passed to YAGF).


%setup -q

mkdir build
cd build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
cmake .. -DCMAKE_INSTALL_PREFIX=%{_prefix}
make %{?_smp_mflags} VERBOSE=1

pushd build
for size in 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
    convert -resize ${size} %{name}.png \
rm -f %{buildroot}%{_datadir}/pixmaps/%{name}.png
%find_lang %{name} --with-qt
%suse_update_desktop_file YAGF



%dir %{_datadir}/%{name}

%files lang -f %{name}.lang
%dir %{_datadir}/%{name}/translations