File plasma-vault.spec of Package plasma-vault

#
# spec file for package plasma-vault
#
# 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:           plasma-vault
Version:        5.12.8
Release:        0
%define kf5_version 5.17.0
Summary:        Plasma applet and services for creating encrypted vaults
License:        GPL-2.0+
Group:          Productivity/Security
Url:            http://www.kde.org
Source:         https://download.kde.org/stable/plasma/%{version}/plasma-vault-%{version}.tar.xz
BuildRequires:  extra-cmake-modules >= %kf5_version
BuildRequires:  libksysguard5-devel
BuildRequires:  cmake(KF5Activities) >= %kf5_version
BuildRequires:  cmake(KF5Config) >= %kf5_version
BuildRequires:  cmake(KF5ConfigWidgets) >= %kf5_version
BuildRequires:  cmake(KF5CoreAddons) >= %kf5_version
BuildRequires:  cmake(KF5DBusAddons) >= %kf5_version
BuildRequires:  cmake(KF5I18n) >= %kf5_version
BuildRequires:  cmake(KF5KIO) >= %kf5_version
BuildRequires:  cmake(KF5Plasma) >= %kf5_version
BuildRequires:  cmake(KF5WidgetsAddons) >= %kf5_version
BuildRequires:  cmake(KF5WindowSystem) >= %kf5_version
BuildRequires:  cmake(Qt5Core) >= 5.7.1
BuildRequires:  cmake(Qt5DBus)
BuildRequires:  cmake(Qt5Gui)
BuildRequires:  cmake(Qt5Quick)
BuildRequires:  cmake(Qt5Widgets)
Recommends:     %{name}-lang
Requires:       plasma-vault-backend
# We recommend encfs for now as cryfs has certain issues
Recommends:     plasma-vault-backend-encfs
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Plasma Vault is a plasmoid for creating and managing encrypted vaults

%package backend-encfs
Summary:        Necessary packages for plasma-vault to support encfs vaults
Group:          Productivity/Security
Provides:       plasma-vault-backend
Requires:       %{name} = %{version}
Requires:       encfs

%description backend-encfs
This package pulls in dependencies for the plasma-vault encfs backend.

%package backend-cryfs
Summary:        Necessary packages for plasma-vault to support cryfs vaults
Group:          Productivity/Security
Provides:       plasma-vault-backend
Requires:       %{name} = %{version}
# Previous versions could not update properly
Requires:       cryfs >= 0.9.9

%description backend-cryfs
This package pulls in dependencies for the plasma-vault cryfs backend.

%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)
%license COPYING*
%{_kf5_plugindir}/kf5/kded/
%dir %{_kf5_plugindir}/plasma/applets
%{_kf5_plugindir}/plasma/applets/plasma_applet_vault.so
%dir %{_kf5_plasmadir}/plasmoids
%{_kf5_plasmadir}/plasmoids/org.kde.plasma.vault
%{_kf5_servicesdir}/plasma-applet-org.kde.plasma.vault.desktop
%{_kf5_appstreamdir}/

%if %{with lang}
%files lang -f %{name}.lang
%license COPYING*
%endif

%files backend-encfs
%license COPYING*

%if 0%{?suse_version} >= 1500
%files backend-cryfs
%license COPYING*
%endif

%changelog
openSUSE Build Service is sponsored by