File libkipi.spec of Package libkipi
#
# spec file for package libkipi
#
# Copyright (c) 2013 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/
#
%define _so 11
Name: libkipi
BuildRequires: libkde4-devel
BuildRequires: oxygen-icon-theme-large
BuildRequires: xz
Summary: KDE Image Plugin Interface
License: BSD-3-Clause and GPL-2.0+ and LGPL-2.1+ and MIT
Group: Development/Libraries/KDE
Url: http://www.kde.org
Version: 4.12.0
Release: 0
Source0: %{name}-%{version}.tar.xz
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
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%kde4_makeinstall
%kde_post_install
%package -n %{name}%{_so}
Summary: KDE Image Plug-In Interface
Group: Development/Libraries/KDE
%requires_ge libqt4-x11
%description -n %{name}%{_so}
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 %{name}%{_so}
%defattr(-,root,root)
%_kde4_appsdir/kipi/
%_kde4_libdir/%{name}.so.*
%_kde4_datadir/icons/hicolor/*/apps/kipi.png
%_kde4_servicetypes/kipiplugin.desktop
%post -n libkipi%{_so} -p /sbin/ldconfig
%postun -n libkipi%{_so} -p /sbin/ldconfig
%package devel
Summary: KDE Image Plugin Interface
Group: Development/Libraries/KDE
Provides: %{name}6-devel = %version
Obsoletes: %{name}6-devel <= 4.1.87
Requires: %{name}%{_so} = %version
Requires: libkde4-devel
%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/%{name}.so
%_kde4_includedir/%{name}/
%_kde4_libdir/pkgconfig/%{name}.pc
%changelog