File kio-gdrive.spec of Package kio-gdrive

# spec file for package kio-gdrive
# Copyright (c) 2020 SUSE LLC
# 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

%define kf5_version 5.71.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}')}
%bcond_without lang
Name:           kio-gdrive
Version:        20.08.0
Release:        0
Summary:        Google Drive KIO slave for KDE applications
License:        GPL-2.0-or-later
Group:          System/GUI/KDE
%if %{with lang}
Source2:        applications.keyring
BuildRequires:  extra-cmake-modules
BuildRequires:  intltool
BuildRequires:  cmake(KAccounts) >= 20.03.80
BuildRequires:  cmake(KF5DocTools) >= 5.48.0
BuildRequires:  cmake(KF5I18n) >= 5.48.0
BuildRequires:  cmake(KF5KIO) >= 5.48.0
BuildRequires:  cmake(KF5Notifications) >= 5.48.0
BuildRequires:  cmake(KPimGAPI) >= 5.11.41
BuildRequires:  cmake(Qt5Gui) >= 5.2.0
BuildRequires:  cmake(Qt5Network) >= 5.2.0
BuildRequires:  cmake(Qt5Widgets) >= 5.2.0
# Used by the .desktop file
Recommends:     dolphin5
# libkgapi has no ABI stability
%requires_eq    libKPimGAPICore5


Google Drive KIO slave for KDE applications.
KIO GDrive requires a KIO-enabled file manager at runtime,
otherwise there is no way to setup a Google Drive account.
This can be Dolphin or Gwenview or Konqueror.

%setup -q

  %cmake_kf5 -d build

  %kf5_makeinstall -C build
  %if %{with lang}
  %find_lang kio5_gdrive %{name}.lang

%license COPYING
%doc README.packagers
%doc %lang(en) %{_kf5_htmldir}/en/kioslave5/
%dir %{_kf5_sharedir}/remoteview

%if %{with lang}
%files lang -f %{name}.lang
%dir %{_kf5_sharedir}/locale/*
%dir %{_kf5_sharedir}/locale/*/LC_MESSAGES

openSUSE Build Service is sponsored by