File kup.spec of Package kup

#
# spec file for package kup
#
# Copyright (c) 2021 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 https://bugs.opensuse.org/
#


# See also http://en.opensuse.org/openSUSE:Specfile_guidelines
%define soname 0
%define sonum 19
Name:           kup
Version:        0.10.0
Release:        0
Summary:        A KDE-based frontend for the very excellent bup backup software
License:        GPL-2.0-or-later
Group:          System/GUI/KDE
URL:            https://invent.kde.org/kde/kup
Source0:        https://download.kde.org/stable/%{name}/%{name}-%{version}.tar.xz
Source1:        https://download.kde.org/stable/%{name}/%{name}-%{version}.tar.xz.sig
Source2:        %{name}.keyring
BuildRequires:  extra-cmake-modules
BuildRequires:  kf5-filesystem
BuildRequires:  libqt5-qtbase-devel
BuildRequires:  openssl-devel
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  cmake(KF5Config)
BuildRequires:  cmake(KF5CoreAddons)
BuildRequires:  cmake(KF5DBusAddons)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5IdleTime)
BuildRequires:  cmake(KF5Init)
BuildRequires:  cmake(KF5JobWidgets)
BuildRequires:  cmake(KF5KIO)
BuildRequires:  cmake(KF5Notifications)
BuildRequires:  cmake(KF5Plasma) >= 5.96.0
BuildRequires:  cmake(KF5Solid)
BuildRequires:  cmake(KF5WidgetsAddons)
BuildRequires:  cmake(KF5WindowSystem)
BuildRequires:  cmake(KF5XmlGui)
BuildRequires:  cmake(KF5KCMUtils)
BuildRequires:  pkgconfig(libgit2)
Requires:       application(systemsettings.desktop)
Requires:       kde-cli-tools5
Recommends:     %{name}-lang = %{version}
Recommends:     bup
Recommends:     rsync
Obsoletes:      kup-backup < %{version}
Provides:       kup-backup = %{version}

%description
Kup currently consists of two parts:

- Configuration module, available in your system settings. Here you can configure backup
plans, what to include, where to backup to and how often. You can also see the status for
these backup plans to monitor if you're running low on disk space etc.
- A small program running in the background, with a system tray icon that shows up when
a backup destination is available. This program will monitor to see when your backup destination
is available and schedule and run backups.

%lang_package

%prep
%setup -q -n kup-%{version}

%build
%cmake_kf5 -d build -- -DLIB_INSTALL_DIR=%%{_kf5_libdir}
%make_jobs

%install
%kf5_makeinstall -C build
%suse_update_desktop_file -r %{buildroot}%{_kf5_applicationsdir}/kcm_kup.desktop
%suse_update_desktop_file -r kup-daemon
%find_lang %{name}

%files
%{_kf5_plugindir}/plasma/kcms/systemsettings_qwidgets/kcm_kup.so
%{_kf5_plugindir}/kf5/kio/kio_bup.so
%dir %{_libdir}/qt5/plugins/plasma/dataengine
%{_kf5_plugindir}/plasma/dataengine/plasma_engine_kup.so
%{_kf5_bindir}/kup-daemon
%{_kf5_bindir}/kup-filedigger
%{_kf5_bindir}/kup-purger
%{_kf5_iconsdir}/*/*/*/*
%{_kf5_applicationsdir}/*.desktop
%dir %{_kf5_plasmadir}/plasmoids
%dir %{_kf5_plasmadir}/plasmoids/org.kde.kupapplet
%dir %{_kf5_plasmadir}/plasmoids/org.kde.kupapplet/contents
%dir %{_kf5_plasmadir}/plasmoids/org.kde.kupapplet/contents/ui
%{_kf5_plasmadir}/plasmoids/org.kde.kupapplet/contents/ui/FullRepresentation.qml
%{_kf5_plasmadir}/plasmoids/org.kde.kupapplet/contents/ui/main.qml
%{_kf5_plasmadir}/plasmoids/org.kde.kupapplet/metadata.*
%{_kf5_plasmadir}/services/kupservice.operations
%{_kf5_plasmadir}/services/kupdaemonservice.operations
%{_sysconfdir}/xdg/autostart/kup-daemon.desktop
%{_datadir}/knotifications5/kupdaemon.notifyrc
%{_datadir}/metainfo/org.kde.kupapplet.appdata.xml
%{_datadir}/metainfo/org.kde.kup.appdata.xml
%{_datadir}/qlogging-categories5/kup.categories

%files lang -f %{name}.lang
%license LICENSES/*

%changelog

openSUSE Build Service is sponsored by