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 http://bugs.opensuse.org/
#
Name: skanlite
Version: 0.7.kde4.5.0
Release: 1
License: LGPLv2.1+
Summary: Scanner Front-End
%define rversion 0.7
Url: http://kde-apps.org/content/show.php?content=109803
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
%kde4_runtime_requires
%description
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}
%lang_package
%prep
%setup -q -n %{name}-%{rversion}
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%make_install
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/;
done
%suse_update_desktop_file skanlite Graphics Scanning
%kde_post_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc COPYING
%{_kde4_applicationsdir}/skanlite.desktop
%{_kde4_bindir}/skanlite
%{_kde4_iconsdir}/hicolor/*/apps/scanner.*
%files lang -f %{name}.lang
%defattr(-,root,root)
%exclude %{_kde4_htmldir}/
%files doc
%defattr(-,root,root)
%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/
%changelog