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

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
# Updated translations
Source1:        plasma5-pk-updates-lang.tar.xz
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
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
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

Plasma applet for software updates using PackageKit.


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

  %cmake_kf5 -d build

  %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

%license LICENSE

openSUSE Build Service is sponsored by