File ksysguard6.spec of Package ksysguard6

#
# spec file for package ksysguard5
#
# Copyright (c) 2021 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:           ksysguard6
Version:        5.21.90
Release:        0
Summary:        KDE System Guard daemon
License:        GPL-2.0-only
Group:          System/GUI/KDE
URL:            https://github.com/zvova7890/ksysguard6
Source:          _service
Source3:        ksysguardd.service
# PATCH-FIX-OPENSUSE 0001-Use-run-for-ksysguardd-s-pid-file.patch
Patch0:         0001-Use-run-for-ksysguardd-s-pid-file.patch
BuildRequires:  kf6-extra-cmake-modules
BuildRequires:  kf6-filesystem
BuildRequires:  libsensors4-devel
BuildRequires:  systemd-rpm-macros
BuildRequires:  xz
BuildRequires:  pkgconfig(libpcap)
BuildRequires:  xz
BuildRequires:  libnl-devel
BuildRequires:  cmake(KF6Config)
BuildRequires:  cmake(KF6CoreAddons)
BuildRequires:  cmake(KF6DBusAddons)
BuildRequires:  cmake(KF6DocTools)
BuildRequires:  cmake(KF6I18n)
BuildRequires:  cmake(KF6IconThemes)
BuildRequires:  cmake(KF6ItemViews)
BuildRequires:  cmake(KF6KIO)
BuildRequires:  cmake(KF6NewStuff)
BuildRequires:  cmake(KF6Auth)
BuildRequires:  cmake(KF6Notifications)
#BuildRequires:  cmake(KSysGuard)
BuildRequires:  libksysguard6-devel
#BuildRequires:  cmake(Qt6WebEngineWidgets)
BuildRequires:  cmake(KF6WindowSystem)
BuildRequires:  cmake(KF6ConfigWidgets)
BuildRequires:  cmake(KF6GlobalAccel)
BuildRequires:  cmake(KF6XmlGui)
BuildRequires:  qt6-qmlcompiler-private-devel
BuildRequires:  cmake(Qt6GuiPrivate)
BuildRequires:  cmake(Qt6Widgets)
BuildRequires:  cmake(Qt6Xml)
BuildRequires:  fdupes pkgconfig(libcap)
BuildRequires:  pkgconfig(libcap)
# kde#421514
BuildRequires:  cmake(Qt6Test)
Recommends:     %{name}-lang
#Requires:       libksysguard5-plugins
BuildRequires:  update-desktop-files
Provides:       kdebase4-workspace-ksysguardd = %{version}
Obsoletes:      kdebase4-workspace-ksysguardd < %{version}
%{systemd_ordering}


%description
This package contains the ksysguard daemon and application.

This package can be installed on servers without any other KDE packages
to enable monitoring them remotely with ksysguard.

%lang_package

%package devel
Summary:        Development headers and libraries for ksysguard6
Group:          Development/Libraries/C and C++

%description devel
This package contains the ksysguard daemon and application.

This package can be installed on servers without any other KDE packages
to enable monitoring them remotely with ksysguard.

%prep
%setup -q -n %_sourcedir/%name-%version -T -D
%__mkdir -p %_builddir/%_sourcedir
%__ln -rs %_sourcedir/%name-%version %_builddir/%_sourcedir
%build
%cmake_kf6 -DWITH_X11=OFF 
%kf6_build

%install
%kf6_install 


%suse_update_desktop_file    org.kde.ksysguard      System Monitor

install -D -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/ksysguardd.service

%fdupes %{buildroot}%{_kf6_sharedir}
%find_lang  %{name} --with-man  --with-html --all-name
%pre
%service_add_pre ksysguardd.service

%preun
%service_del_preun ksysguardd.service

%post
%service_add_post ksysguardd.service

%postun
%service_del_postun ksysguardd.service

%files
%license COPYING*
%{_kf6_bindir}/ksysguard
%{_kf6_bindir}/systemmonitor
%{_kf6_bindir}/ksysguardd
%config %{_kf6_sysconfdir}/ksysguarddrc
%{_kf6_knsrcfilesdir}/ksysguard.knsrc
%{_kf6_applicationsdir}/org.kde.ksysguard.desktop
%{_kf6_applicationsdir}/org.kde.systemmonitor.desktop
%{_kf6_notificationsdir}/
%{_kf6_iconsdir}/hicolor/*/*/
%{_kf6_sharedir}/ksysguard/
%{_kf6_sharedir}/kxmlgui5/
%{_kf6_plugindir}/kf6/kded/%name.so
%{_kf6_appstreamdir}/org.kde.ksysguard.appdata.xml
%{_unitdir}/ksysguardd.service
%{_kf6_libdir}/libprocesscore_ksg6.so.*
%{_kf6_plugindir}/%name
%{_kf6_libexecdir}/kauth/ksysguardprocesslist_helper_ksg6
%{_libexecdir}/%name
%{_kf6_dbuspolicydir}/org.kde.ksysguard.processlisthelper_ksg6.conf
%{_kf6_sharedir}/dbus-1/system-services/org.kde.ksysguard.processlisthelper_ksg6.service
%{_datadir}/polkit-1/actions/org.kde.ksysguard.processlisthelper_ksg6.policy
%files devel
%{_includedir}/%name
%{_kf6_libdir}/libprocesscore_ksg6.so

%files lang -f %{name}.lang
%changelog
openSUSE Build Service is sponsored by