File skanlite.spec of Package skanlite

#
# spec file for package skanlite
#
# Copyright (c) 2013 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:           skanlite
Version:        1.0
Release:        0
Summary:        Image Scanner Application
License:        LGPL-2.1+
Group:          Hardware/Scanner
Url:            http://kde-apps.org/content/show.php?content=109803
Source0:        http://download.kde.org/stable/%{name}/%{version}/src/%{name}-%{version}.tar.bz2
BuildRequires:  libkde4-devel
BuildRequires:  libksane-devel
BuildRequires:  oxygen-icon-theme
Recommends:     %{name}-doc = %{version}
Recommends:     %{name}-lang = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires

%description
Skanlite is an image scanner application for KDE 4.

%package doc
Summary:        Documentation for skanlite
Group:          Documentation/HTML
Requires:       %{name} = %{version}

%description doc
This package provides the documentation for skanlite.

%lang_package

%prep
%setup -q

%build
%cmake_kde4 -d build
%make_jobs

%install
%kde4_makeinstall -C build

for i in {16,22,32,48,64}; do
   mkdir -p %{buildroot}%{_kde4_iconsdir}/hicolor/"$i"x"$i"/apps
   cp -a %{_kde4_iconsdir}/oxygen/"$i"x"$i"/devices/scanner.png %{buildroot}%{_kde4_iconsdir}/hicolor/"$i"x"$i"/apps/
done

%find_lang %{name}

%kde_post_install

%files
%defattr(-,root,root,-)
%doc src/COPYING src/TODO
%{_kde4_applicationsdir}/skanlite.desktop
%{_kde4_bindir}/skanlite
%{_kde4_iconsdir}/hicolor/*/apps/scanner.*

%files doc
%defattr(-,root,root,-)
%doc %lang(en) %{_kde4_htmldir}/en/skanlite/

%files lang -f %{name}.lang
%defattr(-,root,root,-)
%exclude %{_kde4_htmldir}/en/skanlite/

%changelog
openSUSE Build Service is sponsored by