File libkleo.spec of Package libkleo
#
# spec file for package libkleo
#
# Copyright (c) 2016 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/
#
Name: libkleo
Version: 16.08.2
Release: 0
Summary: Base package of kdepim
License: GPL-2.0 and GPL-2.0+ and LGPL-2.1+
Group: System/Libraries
Url: http://www.kde.org
Source0: %{name}-%{version}.tar.xz
BuildRequires: boost-devel
BuildRequires: extra-cmake-modules >= 5.19.0
BuildRequires: gpgmepp5-devel
BuildRequires: kconfig-devel
BuildRequires: kcompletion-devel
BuildRequires: kcoreaddons-devel
BuildRequires: kf5-filesystem
BuildRequires: ki18n-devel
BuildRequires: kpimtextedit-devel
BuildRequires: kwidgetsaddons-devel
BuildRequires: kwindowsystem-devel
BuildRequires: pkgconfig(Qt5Widgets) >= 5.4.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package contains the libkleo library.
%prep
%setup -q
%build
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C build
%package -n libKF5Libkleo5
Summary: LibKleo library for kdepim
License: LGPL-2.1+
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
Group: System/Libraries
Requires: libkleo = %{version}
%description -n libKF5Libkleo5
LibKleo library
%post -n libKF5Libkleo5 -p /sbin/ldconfig
%postun -n libKF5Libkleo5 -p /sbin/ldconfig
%package devel
Summary: Development package for libkleo
License: LGPL-2.1+
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
Group: Development/Libraries/KDE
Requires: libKF5Libkleo5 = %{version}
Requires: gpgmepp5-devel
%description devel
The development package for the libkleo libraries
%files devel
%defattr(-,root,root)
%{_includedir}/KF5/Libkleo/
%{_includedir}/KF5/libkleo/
%{_includedir}/KF5/libkleo_version.h
%{_libdir}/cmake/KF5Libkleo/
%{_libdir}/libKF5Libkleo.so
%{_libdir}/qt5/mkspecs/modules/qt_Libkleo.pri
%files
%defattr(-,root,root)
%{_kf5_configdir}/libkleopatrarc
%{_datadir}/libkleopatra/
%{_kf5_configdir}/libkleo.categories
%files -n libKF5Libkleo5
%defattr(-,root,root)
%{_libdir}/libKF5Libkleo.so.*
%changelog