File kooka.spec of Package kooka4

#
# spec file for package kooka
#
# Copyright (c) 2014 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:           kooka
Version:        X
Release:        0
Summary:        Scan and OCR suite for KDE
License:        LGPL-2.0 and LGPL-2.0+ and GPL-2.0+
Group:          Productivity/Graphics/Other
Url:            https://projects.kde.org/kooka
Source:         %{name}-%{version}.tar.xz
Source1:        %{name}-lang.tar.xz
BuildRequires:  libgphoto2-devel
BuildRequires:  libkde4-devel
BuildRequires:  libpaper-devel
BuildRequires:  libtiff-devel
BuildRequires:  sane-backends-devel
%if 0%{suse_version} > 1210
BuildRequires:  libusb-compat-devel
%endif

Recommends:     %{name}-lang = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires

%description
A scanning application and OCR component for the KDE Desktop.

%lang_package
%prep
%setup -q -a 1
cat >> CMakeLists.txt << EOF
add_subdirectory( po )
EOF

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  %kde4_makeinstall -C build
  %suse_update_desktop_file kooka Graphics Scanning
  %kde_post_install

  %find_lang kooka %{name}.lang
  %find_lang libkscan %{name}.lang

%files lang -f %{name}.lang

%files
%defattr(-,root,root)
%{_kde4_applicationsdir}/kooka.desktop
%{_kde4_appsdir}/kooka
%{_kde4_appsdir}/libkscan
%{_kde4_bindir}/kooka
%_kde4_configkcfgdir/*.kcfg
%{_kde4_iconsdir}/hicolor/48x48/apps/kooka.png
%{_kde4_libdir}/liblibkscan.so.*
%{_kde4_servicesdir}/scanservice.desktop

%exclude %{_kde4_libdir}/liblibkscan.so

%changelog
openSUSE Build Service is sponsored by