File libksane.spec of Package libksane

#
# spec file for package libksane
#
# Copyright (c) 2011 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:           libksane
BuildRequires:  chmlib-devel
BuildRequires:  fribidi-devel
BuildRequires:  libdjvulibre-devel
BuildRequires:  libepub-devel
BuildRequires:  libexiv2-devel
BuildRequires:  libgphoto2-devel
BuildRequires:  libkde4-devel
BuildRequires:  libpoppler-qt4-devel
BuildRequires:  libqca2-devel
BuildRequires:  libqimageblitz-devel
BuildRequires:  libspectre-devel
BuildRequires:  oxygen-icon-theme-large
BuildRequires:  texlive-devel
BuildRequires:  texlive-latex
%if 0%{?suse_version} > 1130
BuildRequires:  sane-backends-devel
%else
BuildRequires:  sane-backends
%endif
License:        GPLv2+
Group:          Development/Libraries/KDE
Summary:        KDE Image Plugin Interface
Url:            http://www.kde.org
Version:        4.7.2
Release:        1
Source0:        %{name}-%version.tar.bz2
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
  %makeinstall
  %kde_post_install

%clean
  rm -rf $RPM_BUILD_ROOT

%package -n libksane0
License:        GPLv2+
Group:          Productivity/Graphics/Other
Summary:        KDE scan library
Provides:       libksane0-devel = 3.95.1
Obsoletes:      libksane0-devel < 3.95.1

%description -n libksane0
This package contains a library to add scan support to KDE
applications.
 
%post -n libksane0 -p /sbin/ldconfig

%postun -n libksane0 -p /sbin/ldconfig

%files -n libksane0 
%defattr(-,root,root)
%doc COPYING README TODO
%_kde4_libdir/libksane.so.*

%package devel
License:        GPLv2+
Group:          Development/Libraries/KDE
Summary:        KDE scan library - Development Files
Requires:       libksane0 = %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)
/usr/include/libksane/
%_kde4_libdir/pkgconfig/libksane.pc
%_kde4_libdir/libksane.so
%_datadir/icons/hicolor/*/actions/*.png
%_kde4_libdir/cmake/KSane/

%changelog
openSUSE Build Service is sponsored by