File skanlite.spec of Package skanlite

# spec file for package skanlite (Version 0.7.kde4.5.0)
# Copyright (c) 2010 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

Name:           skanlite
Version:        0.7.kde4.5.0
Release:        1
License:        LGPLv2.1+
Summary:        Scanner Front-End
%define rversion 0.7
Group:          Hardware/Scanner
Source0:        skanlite-%{rversion}.tar.bz2
BuildRequires:  libkdepimlibs4-devel
BuildRequires:  libksane-devel
BuildRequires:  oxygen-icon-theme
Suggests:       %{name}-doc  = %{version}
Suggests:       %{name}-lang = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Skanlite is a KDE front-end for the sane scanner library.

%package doc
Summary:        Documentation for %{name}
Group:          Hardware/Scanner
Requires:       %{name} = %{version}

%description doc
This package provides the documentation for %{name}

%setup -q -n %{name}-%{rversion}

  %cmake_kde4 -d build

  cd build
  cd ..
  %find_lang %{name}
  for i in {16,22,32,48,64}; do
     mkdir -p %{buildroot}%{_kde4_iconsdir}/hicolor/"$i"x"$i"/apps
     cp %{_kde4_iconsdir}/oxygen/"$i"x"$i"/devices/scanner.png %{buildroot}%{_kde4_iconsdir}/hicolor/"$i"x"$i"/apps/;
  %suse_update_desktop_file skanlite Graphics Scanning

%post   -p /sbin/ldconfig
%postun -p /sbin/ldconfig

rm -rf %{buildroot}


%files lang -f %{name}.lang
%exclude %{_kde4_htmldir}/

%files doc
%doc %lang(en)    %{_kde4_htmldir}/en/skanlite/
%doc %lang(de)    %{_kde4_htmldir}/de/skanlite/
%doc %lang(sv)    %{_kde4_htmldir}/sv/skanlite/
%doc %lang(it)    %{_kde4_htmldir}/it/skanlite/
%doc %lang(pt_BR) %{_kde4_htmldir}/pt_BR/skanlite/
%doc %lang(fr)    %{_kde4_htmldir}/fr/skanlite/
%doc %lang(es)    %{_kde4_htmldir}/es/skanlite/
%doc %lang(pt)    %{_kde4_htmldir}/pt/skanlite/
%doc %lang(et)    %{_kde4_htmldir}/et/skanlite/
%doc %lang(uk)    %{_kde4_htmldir}/uk/skanlite/

openSUSE Build Service is sponsored by