File plasma5-pk-updates.spec of Package plasma5-pk-updates
#
# spec file for package plasma5-pk-updates
#
# Copyright (c) 2019 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 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-FEATURE-OPENSUSE
Patch100: 0001-Hide-option-to-install-updates-on-Tumbleweed.patch
BuildRequires: PackageKit-Qt5-devel
BuildRequires: cmake >= 3.0
BuildRequires: extra-cmake-modules >= 1.3.0
BuildRequires: kcoreaddons-devel >= 5.25.0
BuildRequires: kdelibs4support-devel >= 5.25.0
BuildRequires: ki18n-devel >= 5.25.0
BuildRequires: kiconthemes-devel >= 5.25.0
BuildRequires: knotifications-devel >= 5.25.0
BuildRequires: plasma-framework-devel >= 5.25.0
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: pkgconfig(Qt5Widgets)
Requires: PackageKit
Recommends: %{name}-lang = %{version}
%if 0%{?suse_version} > 1314 && "%{suse_version}" != "1320"
# Use a fake version number as that the apper version is higher than 0.2
Provides: apper = 1.0
Obsoletes: apper < 1.0
Obsoletes: apper-lang < 1.0
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Plasma applet for software updates using PackageKit.
%lang_package
%prep
%setup -q -n plasma-pk-updates-%{version} -a 1
%autopatch -p1
%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
%defattr(-,root,root)
%files
%defattr(-,root,root)
%license LICENSE
%{_kf5_qmldir}/
%{_kf5_plasmadir}/
%{_kf5_servicesdir}/
%{_kf5_appstreamdir}/
%changelog