File libkipi.spec of Package libkipi.openSUSE_Leap_42.1_Update

#
# spec file for package libkipi
#
# 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 30_0_0
%define libname libKF5Kipi

Name:           libkipi
BuildRequires:  extra-cmake-modules >= 1.1.0
BuildRequires:  kconfig-devel >= 5.1.0
BuildRequires:  ki18n-devel >= 5.1.0
BuildRequires:  kservice-devel >= 5.1.0
BuildRequires:  kxmlgui-devel >= 5.1.0
BuildRequires:  pkgconfig(Qt5Core) >= 5.2.0
BuildRequires:  pkgconfig(Qt5Gui) >= 5.2.0
BuildRequires:  pkgconfig(Qt5Widgets) >= 5.2.0
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:        15.12.0
Release:        0
Source0:        %{name}-%{version}.tar.xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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_kf5 -d build
  %make_jobs

%install
  %kf5_makeinstall -C build

%package -n %{libname}%{_so}
Summary:        KDE Image Plug-In Interface
Group:          Development/Libraries/KDE

%description -n %{libname}%{_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 %{libname}%{_so}
%defattr(-,root,root)
%_kf5_libdir/%{libname}.so.*
%_kf5_iconsdir/hicolor/*/apps/kipi.png
%_kf5_servicetypesdir/kipiplugin.desktop
%_kf5_datadir/kipi/

%post -n %{libname}%{_so} -p /sbin/ldconfig

%postun -n %{libname}%{_so} -p /sbin/ldconfig

%package devel
Summary:        KDE Image Plugin Interface
Group:          Development/Libraries/KDE
Requires:       %{libname}%{_so} = %version
Requires:       kconfig-devel >= 5.1.0
Requires:       ki18n-devel >= 5.1.0
Requires:       kservice-devel >= 5.1.0
Requires:       kxmlgui-devel >= 5.1.0
Requires:       pkgconfig(Qt5Core) >= 5.2.0
Requires:       pkgconfig(Qt5Gui) >= 5.2.0
Requires:       pkgconfig(Qt5Widgets) >= 5.2.0
Obsoletes:      libkipi-kf5-devel < %{version}
Provides:       libkipi-kf5-devel = %{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
%_kf5_libdir/%{libname}.so
%_kf5_includedir/KIPI/
%_kf5_includedir/libkipi_version.h
%_kf5_libdir/cmake/KF5Kipi/

%changelog
openSUSE Build Service is sponsored by