File yagf.spec of Package yagf

#
# spec file for package yagf (Version 0.8.6)
#
# Copyright (c) 2009-2011 Kyrill Detinov
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

Name:           yagf
Version:        0.8.6
Release:        0
License:        GPLv3+
Summary:        Graphical Front-end for Cuneiform OCR Tool
Url:            http://symmetrica.net/cuneiform-linux/yagf-en.html
Group:          Productivity/Graphics/Other
Source0:        %{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE yagf-0.8.6-desktop.patch lazy.kent@opensuse.org
# -- correct desktop file
Patch0:         yagf-0.8.6-desktop.patch
BuildRequires:  aspell-devel
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  libqt4-devel >= 4.5
BuildRequires:  update-desktop-files
Recommends:     cuneiform
Recommends:     xsane
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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

%prep
%setup -qn %{name}-%{version}-Source
%patch0

%build
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
make %{?_smp_mflags}

%install
%make_install
%fdupes %{buildroot}%{_datadir}
%suse_update_desktop_file YAGF

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING DESCRIPTION README
%{_bindir}/%{name}
%{_libdir}/%{name}/
%{_datadir}/%{name}/
%{_datadir}/pixmaps/%{name}.png
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/96x96
%dir %{_datadir}/icons/hicolor/96x96/apps
%{_datadir}/icons/hicolor/96x96/apps/%{name}.png
%{_datadir}/applications/YAGF.desktop

%changelog
openSUSE Build Service is sponsored by