File kaccounts-providers.spec of Package kaccounts-providers
#
# spec file for package kaccounts-providers
#
# Copyright (c) 2018 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-providers
Version: 17.12.3
Release: 0
%define kf5_version 5.26.0
# Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA)
%{!?_kapp_version: %global _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
Summary: KDE Accounts Providers
License: GPL-2.0-or-later
Group: System/GUI/KDE
Source: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: extra-cmake-modules
BuildRequires: intltool
BuildRequires: kaccounts-integration-devel
BuildRequires: kdeclarative-devel
BuildRequires: kf5-filesystem
BuildRequires: ki18n-devel
BuildRequires: kio-devel
BuildRequires: kpackage-devel
BuildRequires: libaccounts-glib-devel
BuildRequires: libaccounts-qt5-devel
BuildRequires: libsignon-qt5-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(Qt5Widgets)
Requires: signon-plugin-oauth2
%if %{with lang}
Recommends: %{name}-lang
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
KDE Accounts Providers.
%if %{with lang}
%lang_package
%endif
%prep
%setup -q
%build
%cmake_kf5 -d build
%make_jobs
%install
%make_install -C build
%if %{with lang}
%find_lang %{name} --with-man --all-name
%endif
%files
%defattr(-,root,root)
%doc COPYING*
#{_kf5_iconsdir}/hicolor/*/*/*.png
%{_kf5_appstreamdir}/
%{_kf5_plugindir}/kaccounts/
%{_kf5_sharedir}/accounts/
%{_kf5_sharedir}/kpackage/
%{_kf5_sysconfdir}/signon-ui/
%if %{with lang}
%files lang -f %{name}.lang
%doc COPYING*
%endif
%changelog