File libksane.spec of Package libksane-kde4
#
# spec file for package libksane
#
# Copyright (c) 2015 SUSE LINUX 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/
#
%define _so 0
Name: libksane
BuildRequires: libkde4-devel
BuildRequires: oxygen-icon-theme-large
BuildRequires: xz
%if 0%{?suse_version} > 1130
BuildRequires: sane-backends-devel
%else
BuildRequires: sane-backends
%endif
Summary: KDE Image Plugin Interface
License: GPL-2.0+
Group: Development/Libraries/KDE
Url: http://www.kde.org
Version: 15.08.3
Release: 0
Source0: %{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
%description
This package contains a library to add scan support to KDE
applications.
%prep
%setup -q -n %{name}-%version
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%kde4_makeinstall
%kde_post_install
%package -n %{name}%{_so}
Summary: KDE scan library
Group: Productivity/Graphics/Other
Provides: %{name}%{_so}-devel = 3.95.1
Obsoletes: %{name}%{_so}-devel < 3.95.1
%description -n %{name}%{_so}
This package contains a library to add scan support to KDE
applications.
%post -n %{name}%{_so} -p /sbin/ldconfig
%postun -n %{name}%{_so} -p /sbin/ldconfig
%files -n %{name}%{_so}
%defattr(-,root,root)
%doc COPYING README TODO
%_kde4_libdir/%{name}.so.*
%package devel
Summary: KDE scan library - Development Files
Group: Development/Libraries/KDE
Requires: %{name}%{_so} = %version
Requires: libkde4-devel
%if 0%{?suse_version} > 1130
Requires: sane-backends-devel
%else
Requires: sane-backends
%endif
%description devel
This package contains a library to add scan support to KDE
applications.
Authors:
--------
The KDE Team <kde@kde.org>
%files devel
%defattr(-,root,root)
%_kde4_includedir/%{name}/
%_kde4_libdir/pkgconfig/%{name}.pc
%_kde4_libdir/%{name}.so
%_kde4_datadir/icons/hicolor/*/actions/*.png
%_kde4_libdir/cmake/KSane/
%changelog