File skanlite.spec of Package skanlite
#
# spec file for package skanlite (Version 0.2)
#
# Copyright (c) 2008 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/
#
# norootforbuild
Name: skanlite
BuildRequires: libkdepimlibs4-devel libksane0
%if %suse_version > 1030
BuildRequires: desktop-data-openSUSE
%else
BuildRequires: desktop-data-SuSE
%endif
License: LGPL v2.1 or later
Group: Hardware/Scanner
Summary: Scanner Front-End
Version: 0.2
Release: 3
Source0: skanlite-0.2-kde4.1.1.tar.bz2
Patch: r863836.diff
Patch1: icon.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: kdegraphics3-scan = 3.5.1
Obsoletes: kdegraphics3-scan <= 3.5.1
%kde4_runtime_requires
%description
Skanlite is a KDE front-end for the sane scanner library.
Authors:
--------
Kare Sars <kare.sars@iki.fi>
%prep
%setup -q -n skanlite-%version-kde4.1.1
%patch
%patch1
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%makeinstall
cd ..
%suse_update_desktop_file skanlite Graphics Scanning
%find_lang %name
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %name.lang
%defattr(-,root,root)
%doc COPYING
/usr/bin/skanlite
/usr/share/applications/kde4/skanlite.desktop
%doc %lang(en) /usr/share/doc/kde/HTML/en/skanlite
%changelog
* Thu Nov 20 2008 stbinner@suse.de
- add SLE provides/obseletes
* Sun Oct 19 2008 stbinner@suse.de
- define icon in .desktop file
* Sat Sep 20 2008 stbinner@suse.de
- initial package