File plasmoid-network-monitor.spec of Package plasmoid-network-monitor

#
# spec file for package plasmoid-network-monitor
#
# Copyright (c) 2018 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 http://bugs.opensuse.org/
#


Name:           plasmoid-network-monitor
Summary:        Plasma 5 applet for monitoring active network connections
Version:        1.7.3
Release:        1
Url:            https://github.com/kotelnik/plasma-applet-network-monitor
Source0:        https://github.com/kotelnik/plasma-applet-network-monitor/archive/v%{version}.tar.gz#/plasma-applet-network-monitor-%{version}.tar.gz
License:        GPL-2.0
Group:          System/GUI/KDE
Requires:       plasma5-desktop
BuildRequires:  cmake(KF5Plasma)
BuildRequires:  fdupes
BuildArch:      noarch

%description
Plasmoid for plasma panel.
Monitors network speed of currently active connections.

%prep
%setup -q -n plasma-applet-network-monitor-%{version}

%build
%cmake_kf5 -d build

%install
%kf5_makeinstall -C build

%fdupes -s %{buildroot}

%files
%defattr(-,root,root)
%dir %{_kf5_plasmadir}/plasmoids
%{_kf5_plasmadir}/plasmoids/org.kde.networkMonitor
%{_kf5_servicesdir}/plasma-applet-org.kde.networkMonitor.desktop
%{_kf5_appstreamdir}/org.kde.networkMonitor.appdata.xml
%doc README.md
%license LICENSE

%changelog