File libkgapi.spec of Package libkgapi
#
# spec file for package libkgapi
#
# 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: libkgapi
Version: 5.3.1
Release: 0
Summary: Extension for accessing your Google data
License: GPL-2.0+
Group: System/GUI/KDE
Url: http://www.kde.org
Source0: http://download.kde.org/stable/%{name}/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires: extra-cmake-modules >= 5.17.0
BuildRequires: kf5-filesystem
BuildRequires: cmake(KF5CalendarCore) >= 5.2.80
BuildRequires: cmake(KF5Contacts) >= 5.2.80
BuildRequires: cmake(KF5CoreAddons) >= 5.17.0
BuildRequires: cmake(KF5KIO) >= 5.17.0
BuildRequires: cmake(KF5WindowSystem) >= 5.17.0
BuildRequires: cmake(Qt5Core) >= 5.4.0
BuildRequires: cmake(Qt5LinguistTools) >= 5.4.0
BuildRequires: cmake(Qt5WebKitWidgets) >= 5.4.0
BuildRequires: cmake(Qt5Widgets) >= 5.4.0
BuildRequires: cmake(Qt5Xml) >= 5.4.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
An extension for accessing some Google services, such as Google Calendar, Google Contacts and Google tasks.
%package -n libKF5GAPIBlogger5
Summary: Extension for accessing your Google data
Group: System/GUI/KDE
Recommends: %{name}-lang = %{version}
%description -n libKF5GAPIBlogger5
An extension for accessing some Google services, such as Google Calendar, Google Contacts and Google tasks.
%package -n libKF5GAPICalendar5
Summary: Extension for accessing your Google data
Group: System/GUI/KDE
Recommends: %{name}-lang = %{version}
%description -n libKF5GAPICalendar5
An extension for accessing some Google services, such as Google Calendar, Google Contacts and Google tasks.
%package -n libKF5GAPIContacts5
Summary: Extension for accessing your Google data
Group: System/GUI/KDE
Recommends: %{name}-lang = %{version}
%description -n libKF5GAPIContacts5
An extension for accessing some Google services, such as Google Calendar, Google Contacts and Google tasks.
%package -n libKF5GAPICore5
Summary: Extension for accessing your Google data
Group: System/GUI/KDE
Recommends: %{name}-lang = %{version}
%description -n libKF5GAPICore5
An extension for accessing some Google services, such as Google Calendar, Google Contacts and Google tasks.
%package -n libKF5GAPIDrive5
Summary: Extension for accessing your Google data
Group: System/GUI/KDE
Recommends: %{name}-lang = %{version}
%description -n libKF5GAPIDrive5
An extension for accessing some Google services, such as Google Calendar, Google Contacts and Google tasks.
%package -n libKF5GAPILatitude5
Summary: Extension for accessing your Google data
Group: System/GUI/KDE
Recommends: %{name}-lang = %{version}
%description -n libKF5GAPILatitude5
An extension for accessing some Google services, such as Google Calendar, Google Contacts and Google tasks.
%package -n libKF5GAPIMaps5
Summary: Extension for accessing your Google data
Group: System/GUI/KDE
Recommends: %{name}-lang = %{version}
%description -n libKF5GAPIMaps5
An extension for accessing some Google services, such as Google Calendar, Google Contacts and Google tasks.
%package -n libKF5GAPITasks5
Summary: Extension for accessing your Google data
Group: System/GUI/KDE
Recommends: %{name}-lang = %{version}
%description -n libKF5GAPITasks5
An extension for accessing some Google services, such as Google Calendar, Google Contacts and Google tasks.
%package devel
Summary: KDE PIM Libraries: Build Environment
Group: Development/Libraries/KDE
Requires: kcalcore-devel
Requires: kcontacts5-devel
Requires: kcoreaddons-devel
Requires: libKF5GAPIBlogger5 = %{version}
Requires: libKF5GAPICalendar5 = %{version}
Requires: libKF5GAPIContacts5 = %{version}
Requires: libKF5GAPICore5 = %{version}
Requires: libKF5GAPIDrive5 = %{version}
Requires: libKF5GAPILatitude5 = %{version}
Requires: libKF5GAPIMaps5 = %{version}
Requires: libKF5GAPITasks5 = %{version}
Obsoletes: libkgapi5-devel < %{version}
Provides: libkgapi5-devel = %{version}
%description devel
This package contains all necessary include files and libraries needed
to develop KDE PIM applications.
%package lang
Summary: Languages for package %{name}
Group: System/Localization
BuildArch: noarch
%description lang
Provides translations to the package %{name}
%prep
%setup -q -n libkgapi-%{version}
%build
%cmake_kf5 -d build -- -DBUILD_TESTING=ON
%make_jobs
%install
%kf5_makeinstall -C build
%find_lang libkgapi_qt --with-qt --all-name
%post -n libKF5GAPIBlogger5 -p /sbin/ldconfig
%postun -n libKF5GAPIBlogger5 -p /sbin/ldconfig
%post -n libKF5GAPICalendar5 -p /sbin/ldconfig
%postun -n libKF5GAPICalendar5 -p /sbin/ldconfig
%post -n libKF5GAPIContacts5 -p /sbin/ldconfig
%postun -n libKF5GAPIContacts5 -p /sbin/ldconfig
%post -n libKF5GAPICore5 -p /sbin/ldconfig
%postun -n libKF5GAPICore5 -p /sbin/ldconfig
%post -n libKF5GAPIDrive5 -p /sbin/ldconfig
%postun -n libKF5GAPIDrive5 -p /sbin/ldconfig
%post -n libKF5GAPILatitude5 -p /sbin/ldconfig
%postun -n libKF5GAPILatitude5 -p /sbin/ldconfig
%post -n libKF5GAPIMaps5 -p /sbin/ldconfig
%postun -n libKF5GAPIMaps5 -p /sbin/ldconfig
%post -n libKF5GAPITasks5 -p /sbin/ldconfig
%postun -n libKF5GAPITasks5 -p /sbin/ldconfig
%files -n libKF5GAPIBlogger5
%defattr(-,root,root)
%doc LICENSE
%{_kf5_libdir}/libKF5GAPIBlogger.so.*
%files -n libKF5GAPICalendar5
%defattr(-,root,root)
%doc LICENSE
%{_kf5_libdir}/libKF5GAPICalendar.so.*
%files -n libKF5GAPIContacts5
%defattr(-,root,root)
%doc LICENSE
%{_kf5_libdir}/libKF5GAPIContacts.so.*
%files -n libKF5GAPICore5
%defattr(-,root,root)
%doc LICENSE
%{_kf5_libdir}/libKF5GAPICore.so.*
%{_kf5_configdir}/libkgapi.categories
%files -n libKF5GAPIDrive5
%defattr(-,root,root)
%doc LICENSE
%{_kf5_libdir}/libKF5GAPIDrive.so.*
%files -n libKF5GAPILatitude5
%defattr(-,root,root)
%doc LICENSE
%{_kf5_libdir}/libKF5GAPILatitude.so.*
%files -n libKF5GAPIMaps5
%defattr(-,root,root)
%doc LICENSE
%{_kf5_libdir}/libKF5GAPIMaps.so.*
%files -n libKF5GAPITasks5
%defattr(-,root,root)
%doc LICENSE
%{_kf5_libdir}/libKF5GAPITasks.so.*
%files devel
%defattr(-,root,root)
%doc LICENSE
%{_kf5_libdir}/libKF5GAPIBlogger.so
%{_kf5_libdir}/libKF5GAPICalendar.so
%{_kf5_libdir}/libKF5GAPIContacts.so
%{_kf5_libdir}/libKF5GAPICore.so
%{_kf5_libdir}/libKF5GAPIDrive.so
%{_kf5_libdir}/libKF5GAPILatitude.so
%{_kf5_libdir}/libKF5GAPIMaps.so
%{_kf5_libdir}/libKF5GAPITasks.so
%{_kf5_includedir}/
%{_kf5_libdir}/cmake/KF5GAPI/
%{_kf5_mkspecsdir}/qt_KGAPIBlogger.pri
%{_kf5_mkspecsdir}/qt_KGAPICalendar.pri
%{_kf5_mkspecsdir}/qt_KGAPIContacts.pri
%{_kf5_mkspecsdir}/qt_KGAPICore.pri
%{_kf5_mkspecsdir}/qt_KGAPIDrive.pri
%{_kf5_mkspecsdir}/qt_KGAPILatitude.pri
%{_kf5_mkspecsdir}/qt_KGAPIMaps.pri
%{_kf5_mkspecsdir}/qt_KGAPITasks.pri
%files lang -f libkgapi_qt.lang
%defattr(-,root,root,-)
%changelog