File ksysguard5.spec of Package ksysguard5
#
# spec file for package ksysguard5
#
# Copyright (c) 2014 SUSE LINUX Products 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: ksysguard5
Version: 5.1.0
Release: 0
Summary: KDE System Guard daemon
License: GPL-2.0
Group: System/GUI/KDE
Url: http://www.kde.org
Source: ksysguard-%{version}.1.tar.xz
Source1: ksysguardd.service
Source99: %{name}-rpmlintrc
# PATCH-FIX-OPENSUSE 0001-Use-run-for-ksysguardd-s-pid-file.patch
Patch0: 0001-Use-run-for-ksysguardd-s-pid-file.patch
BuildRequires: extra-cmake-modules
BuildRequires: gcc-c++
BuildRequires: kconfig-devel
BuildRequires: kcoreaddons-devel
BuildRequires: kdelibs4support-devel
BuildRequires: kf5-filesystem
BuildRequires: ki18n-devel
BuildRequires: kiconthemes-devel
BuildRequires: kinit-devel
BuildRequires: kitemviews-devel
BuildRequires: knewstuff-devel
BuildRequires: libksysguard5-devel
BuildRequires: libsensors4-devel
BuildRequires: plasma-framework-devel
BuildRequires: systemd-rpm-macros
BuildRequires: xz
BuildRequires: pkgconfig(Qt5Core) >= 5.3.0
BuildRequires: pkgconfig(Qt5Network) >= 5.3.0
BuildRequires: pkgconfig(Qt5Script) >= 5.3.0
BuildRequires: pkgconfig(Qt5Test) >= 5.3.0
BuildRequires: pkgconfig(Qt5WebKitWidgets) >= 5.3.0
BuildRequires: pkgconfig(Qt5Widgets) >= 5.3.0
BuildRequires: pkgconfig(Qt5X11Extras) >= 5.3.0
Requires: libksysguard5-helper
Requires: oxygen-icon-theme
Conflicts: kdebase4-workspace-ksysguardd
BuildRequires: update-desktop-files
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{?systemd_requires}
%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
%prep
%setup -q -n ksysguard-%{version}
%patch0 -p1
%build
%cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=share/locale/kf5
%make_jobs
%install
%kf5_makeinstall -C build
%suse_update_desktop_file ksysguard System Monitor
install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/ksysguardd.service
%pre
%service_add_pre ksysguardd.service
%preun
%service_del_preun ksysguardd.service
%post
/sbin/ldconfig
%service_add_post ksysguardd.service
%postun
/sbin/ldconfig
%service_del_postun ksysguardd.service
exit 0
%files
%defattr(-,root,root)
%doc COPYING*
%{_kf5_bindir}/ksysguard
%{_kf5_bindir}/ksysguardd
%config %{_kf5_sysconfdir}/ksysguarddrc
%config %{_kf5_configdir}/ksysguard.knsrc
%{_kf5_libdir}/libkdeinit5_ksysguard.so
%{_kf5_applicationsdir}/ksysguard.desktop
%{_kf5_notifydir}/
%dir %{_kf5_htmldir}/en
%dir %{_kf5_htmldir}
%{_kf5_htmldir}/en/ksysguard/
%{_kf5_iconsdir}/hicolor/*/*/
%{_kf5_sharedir}/ksysguard/
%{_kf5_sharedir}/kxmlgui5/
%{_unitdir}/ksysguardd.service
%files lang
%defattr(-,root,root)
%{_kf5_localedir}/
%changelog