File libkipi.spec of Package libkipi

#
# spec file for package libkipi
#
# Copyright (c) 2012 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:           libkipi
BuildRequires:  OpenEXR-devel
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:  libsoprano-devel
BuildRequires:  libspectre-devel
BuildRequires:  net-snmp-devel
BuildRequires:  oxygen-icon-theme-large
BuildRequires:  soprano-backend-redland
BuildRequires:  texlive
BuildRequires:  texlive-devel
BuildRequires:  texlive-latex
BuildRequires:  xz
Summary:        KDE Image Plugin Interface
License:        BSD-3-Clause ; GPL-2.0+ ; LGPL-2.1+ ; MIT
Group:          Development/Libraries/KDE
Url:            http://www.kde.org
Version:        4.8.4
Release:        0
Source0:        %{name}-%{version}.tar.xz
Patch0:         4_6_BRANCH.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires

%description
This package provides a generic KDE Image Plug-in Interface used by
some KDE image applications. Plug-ins for this interface are in the
kipi-plugins package.

%prep
%setup -q -n %{name}-%version
%patch0

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  %makeinstall
  %kde_post_install

%clean
  rm -rf $RPM_BUILD_ROOT

%package -n libkipi8
Summary:        KDE Image Plug-In Interface
Group:          Development/Libraries/KDE
%requires_ge  libqt4-x11

%description -n libkipi8
This package provides a generic KDE image plug-in interface used by
some KDE image applications. Plug-ins for this interface are in the
kipi-plugins package.

%files -n libkipi8 
%defattr(-,root,root)
%_kde4_appsdir/kipi/
%_kde4_libdir/libkipi.so.*
%_datadir/icons/hicolor/*/apps/kipi.png
%_kde4_servicetypes/kipiplugin.desktop

%post -n libkipi8 -p /sbin/ldconfig

%postun -n libkipi8 -p /sbin/ldconfig

%package devel
Summary:        KDE Image Plugin Interface
Group:          Development/Libraries/KDE
Provides:       libkipi6-devel = %version
Obsoletes:      libkipi6-devel <= 4.1.87
Requires:       libkde4-devel
Requires:       libkipi8 = %version

%description devel
This package provides a generic KDE Image Plug-in Interface used by
some KDE image applications. Plug-ins for this interface are in the
kipi-plugins package.

%files devel
%defattr(-,root,root)
%doc COPYING README
%_kde4_libdir/libkipi.so
/usr/include/libkipi/
%_kde4_libdir/pkgconfig/libkipi.pc

%changelog
openSUSE Build Service is sponsored by