File tw-updater-plasmoid.spec of Package tw-updater-plasmoid

#
# spec file for package tw-updater-plasmoid
#
# 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:           tw-updater-plasmoid
Version:        1.0.2
Release:        0
Summary:        KDE Plasma Software Updater for openSUSE Tumbleweed
License:        GPL-2.0-or-later
Group:          System/Packages
Url:            https://www.contezero.com
Source:         tw-updater-plasmoid-%{version}.tar.gz
BuildRequires:  cmake >= 3.0
BuildRequires:  extra-cmake-modules >= 1.3.0
BuildRequires:  knotifications-devel
BuildRequires:  plasma-framework-devel
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Quick)
BuildRequires:  pkgconfig(Qt5Widgets)
Requires:       zypper
Requires:       screen
Requires:       coreutils
Requires:       grep
Requires:       polkit
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
KDE Plasma Software Updater for openSUSE Tumbleweed using zypper as backend.

%prep
%setup -q -n tw-updater-plasmoid-%{version}

%build
%cmake_kf5 -d build
%make_jobs

%install
%kf5_makeinstall -C build

%files
%defattr(-,root,root)
%license LICENSE
%{_bindir}/zypper-dup-wrapper
%dir %{_datadir}/polkit-1/
%dir %{_datadir}/polkit-1/actions/
%{_datadir}/polkit-1/actions/com.contezero.zypper-dup-wrapper.policy
%dir %{_kf5_qmldir}/org/kde/plasma/private
%{_kf5_qmldir}/org/kde/plasma/private/twupdater
%dir %{_kf5_plasmadir}/plasmoids/
%{_kf5_plasmadir}/plasmoids/com.contezero.twupdater
%{_kf5_appstreamdir}/com.contezero.twupdater.appdata.xml
%{_kf5_servicesdir}/plasma-applet-com.contezero.twupdater.desktop

%changelog