File plasma5-pk-updates.spec of Package plasma5-pk-updates

#
# spec file for package plasma5-pk-updates
#
# 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 https://bugs.opensuse.org/
#


Name:           plasma5-pk-updates
Version:        0.3.2
Release:        0
Summary:        Software Update Manager for Plasma
License:        GPL-3.0-or-later
Group:          System/Packages
URL:            https://www.kde.org/
Source:         https://download.kde.org/stable/plasma-pk-updates/%{version}/plasma-pk-updates-%{version}.tar.xz
# Updated translations
Source1:        plasma5-pk-updates-lang.tar.xz
# PATCH-FIX-UPSTREAM
Patch0:         desktop.patch
# PATCH-FIX-UPSTREAM boo#1103678
Patch1:         0001-Hide-updates-and-checkbox-when-system-is-offline.patch
Patch2:         0002-Add-its-own-messageChanged-NOTIFY-signal-to-message.patch
Patch3:         0003-Delay-PkUpdates-checkUpdates-calls-if-the-network-is-offline.patch
# PATCH-FIX-UPSTREAM
Patch4:         0001-Replace-KIconLoader-pixmaps-with-standard-icon-names.patch
Patch5:         0002-Fix-usage-of-0-for-null-pointer-constants.patch
Patch6:         0003-Use-own-eventIds-and-ComponentName-instead-of-generi.patch
Patch7:         0004-Make-the-notifications-less-obtrusive.patch
Patch8:         0006-Remove-explicit-initialization-of-default-constructe.patch
Patch9:         0007-Port-away-from-KDELibs4Support-use-Solid-Power-inter.patch
# PATCH-FEATURE-UPSTREAM
Patch10:        0001-Add-support-for-license-prompts.patch
Patch11:        0001-Don-t-show-an-error-for-a-failed-automatic-refresh.patch
# To be sent upstream if confirmed to work as expected
Patch12:        0001-Limit-to-one-automatic-check-each-10-minutes.patch
Patch13:        0001-Also-treat-ErrorNotAuthorized-as-temporary.patch
BuildRequires:  PackageKit-Qt5-devel
BuildRequires:  cmake >= 3.0
BuildRequires:  extra-cmake-modules >= 1.3.0
BuildRequires:  kcoreaddons-devel >= 5.25.0
BuildRequires:  ki18n-devel >= 5.25.0
BuildRequires:  knotifications-devel >= 5.25.0
BuildRequires:  plasma-framework-devel >= 5.25.0
BuildRequires:  solid-devel
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Quick)
BuildRequires:  pkgconfig(Qt5Widgets)
Requires:       PackageKit
Recommends:     %{name}-lang = %{version}
# Use a fake version number higher than the last provided apper version (0.9.2)
Provides:       apper = 1.0
Obsoletes:      apper < 1.0
Obsoletes:      apper-lang < 1.0

%description
Plasma applet for software updates using PackageKit.

%lang_package

%prep
%autosetup -p1 -n plasma-pk-updates-%{version} -a 1

%build
  %cmake_kf5 -d build
  %make_jobs

%install
  %kf5_makeinstall -C build
  %find_lang pkupdates plasma-pk-updates.lang
  %find_lang plasma_applet_org.kde.plasma.pkupdates plasma-pk-updates.lang

%files lang -f plasma-pk-updates.lang

%files
%license LICENSE
%{_kf5_qmldir}/
%{_kf5_plasmadir}/
%{_kf5_servicesdir}/
%{_kf5_appstreamdir}/
%{_kf5_notifydir}/

%changelog
openSUSE Build Service is sponsored by