File calendarsupport.spec of Package calendarsupport

#
# spec file for package calendarsupport
#
# 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/
#


%define lname libKF5CalendarSupport5
Name:           calendarsupport
Version:        16.08.2
Release:        0
Summary:        KDE PIM calendaring support library
License:        GPL-2.0+ and LGPL-2.1+
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
Group:          Development/Libraries
Url:            http://www.kde.org
Source0:        %{name}-%{version}.tar.xz
# It can only build on the same platforms as Qt Webengine
ExclusiveArch:  %ix86 x86_64 %arm aarch64 mips mips64
BuildRequires:  akonadi-calendar-devel
BuildRequires:  akonadi-mime-devel = %{version}
BuildRequires:  akonadi-server-devel
BuildRequires:  extra-cmake-modules >= 5.19.0
BuildRequires:  kcalcore-devel
BuildRequires:  kcalutils-devel
BuildRequires:  kcodecs-devel
BuildRequires:  kdepim-apps-libs-devel
BuildRequires:  kf5-filesystem
BuildRequires:  kholidays-devel
BuildRequires:  ki18n-devel
BuildRequires:  kidentitymanagement-devel
BuildRequires:  kmime-devel
BuildRequires:  pimcommon-devel
BuildRequires:  pkgconfig(Qt5Test) >= 5.4.0
BuildRequires:  pkgconfig(Qt5UiTools) >= 5.4.0
BuildRequires:  pkgconfig(Qt5Widgets) >= 5.4.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package contains the calendarsupport library, used by KDE PIM applications to handle calendaring.

%package -n %{lname}
Summary:        Library for handling calendaring in PIM applications
License:        GPL-2.0+ and LGPL-2.1+
Group:          System/Libraries
Requires:       %{name}

%description -n %{lname}
This package contains the calendarsupport library, used by KDE PIM applications to handle calendaring.

%package devel
Summary:        Development package for the KDEPIM Calendarsupport library
License:        LGPL-2.1+
Group:          Development/Libraries
Requires:       %{lname} = %{version}
Requires:       kmime-devel >= %{version}
Requires:       kidentitymanagement-devel >= %{version}
Requires:       akonadi-calendar-devel >= %{version}

%description devel
The development package for the calendarsupport libraries

%prep
%setup -q

%build
%cmake_kf5 -d build

%make_jobs

%install
%kf5_makeinstall -C build

%post -n %{lname}  -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{_kf5_configdir}/calendarsupport.categories
%{_kf5_servicetypesdir}/calendarplugin.desktop

%files devel
%defattr(-,root,root)
%{_includedir}/KF5/CalendarSupport/
%{_includedir}/KF5/calendarsupport/
%{_includedir}/KF5/calendarsupport_version.h
%{_libdir}/cmake/KF5CalendarSupport/
%{_libdir}/qt5/mkspecs/modules/qt_CalendarSupport.pri
%{_libdir}/libKF5CalendarSupport.so

%files -n %{lname}
%defattr(-,root,root)
%{_libdir}/libKF5CalendarSupport.so.*

%changelog
openSUSE Build Service is sponsored by