File kaccounts-integration.spec of Package kaccounts-integration
#
# spec file for package kaccounts-integration
#
# Copyright (c) 2017 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/
#
%bcond_without lang
Name: kaccounts-integration
Version: 17.04.2
Release: 0
%define kf5_version 5.26.0
# Latest stable Applications (e.g. 16.08 in KA, but 16.11.80 in KUA)
%{!?_kapp_version: %global _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
Summary: KDE Accounts Providers
License: GPL-2.0+
Group: System/GUI/KDE
Source: %{name}-%{version}.tar.xz
Source99: baselibs.conf
BuildRequires: cmake
BuildRequires: extra-cmake-modules
BuildRequires: kcmutils-devel
BuildRequires: kconfig-devel
BuildRequires: kcoreaddons-devel
BuildRequires: kdbusaddons-devel
BuildRequires: kdeclarative-devel
BuildRequires: kf5-filesystem
BuildRequires: ki18n-devel
BuildRequires: kiconthemes-devel
BuildRequires: kio-devel
BuildRequires: kwallet-devel
BuildRequires: kwidgetsaddons-devel
BuildRequires: libaccounts-glib-devel
BuildRequires: libaccounts-qt5-devel
BuildRequires: libsignon-qt5-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(Qt5Test) >= 5.2.0
BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0
Requires: ktp-accounts-kcm
Recommends: kaccounts-providers
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Small system to administer web accounts for the sites
and services across the KDE desktop, including: Google,
Facebook, Owncloud, IMAP, Jabber and others.
%package -n libkaccounts1
Summary: KDE Accounts Providers - System Library
Group: System/Libraries
Recommends: %{name}
%description -n libkaccounts1
Small system to administer web accounts for the sites
and services across the KDE desktop, including: Google,
Facebook, Owncloud, IMAP, Jabber and others.
%package devel
Summary: KDE Accounts Providers - Development Files
Group: Development/Libraries/KDE
Requires: kcoreaddons-devel
Requires: libaccounts-qt5-devel
Requires: libkaccounts1 = %{version}
Requires: pkgconfig(Qt5Core) >= 5.2.0
%description devel
Small system to administer web accounts for the sites
and services across the KDE desktop, including: Google,
Facebook, Owncloud, IMAP, Jabber and others. Devel files.
%if %{with lang}
%lang_package
%endif
%prep
%setup -q
%build
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C build
%if %{with lang}
%find_lang %{name} --with-man --all-name
%endif
%post -n libkaccounts1 -p /sbin/ldconfig
%postun -n libkaccounts1 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING*
%{_kf5_plugindir}/
%{_kf5_servicesdir}/
%{_kf5_qmldir}/
%files -n libkaccounts1
%defattr(-,root,root)
%{_kf5_libdir}/libkaccounts.so.*
%files devel
%defattr(-,root,root)
%{_kf5_prefix}/include/KAccounts/
%{_kf5_libdir}/cmake/KAccounts/
%{_kf5_libdir}/libkaccounts.so
%if %{with lang}
%files lang -f %{name}.lang
%doc COPYING*
%endif
%changelog