File kcm_systemd.spec of Package kcm_systemd
#
# spec file for package kcm_systemd
#
# 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: kcm_systemd
Version: 1.2.1
Release: 0
Summary: A systemd control module for KDE
License: GPL-3.0-only
Group: System/GUI/KDE
URL: https://github.com/KDE/systemd-kcm
Source0: https://download.kde.org/stable/systemd-kcm/systemd-kcm-%{version}.tar.xz
Source99: kcm_systemd-rpmlintrc
BuildRequires: boost-devel >= 1.45
BuildRequires: extra-cmake-modules
BuildRequires: kauth-devel
BuildRequires: kconfigwidgets-devel
BuildRequires: kcoreaddons-devel
BuildRequires: kcrash-devel
BuildRequires: kf5-filesystem
BuildRequires: ki18n-devel
BuildRequires: kio-devel
BuildRequires: kservice-devel
BuildRequires: kwidgetsaddons-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(systemd)
Recommends: kcm_systemd-lang = %{version}
Provides: kcm_systemd-kf5 = %{version}
Obsoletes: kcm_systemd-kf5 < %{version}
Provides: kcm_systemd-kf5-lang = %{version}
Obsoletes: kcm_systemd-kf5-lang < %{version}
%{?systemd_requires}
%description
Systemd control module for KDE. It provides a graphical frontend for the
systemd daemon, which allow for viewing and controlling systemd units,
as well as modifying configuration files.
%lang_package
%prep
%setup -q -n systemd-kcm-%{version}
%build
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C build
# the category is distributed with systemsettings5
rm -rfv %{buildroot}%{_kf5_servicesdir}/settings-system-administration.desktop
%find_lang systemd-kcm
%files
%license COPYING
%doc NEWS
%{_kf5_plugindir}/kcm_systemd.so
%if 0%{?sle_version} >= 150500 && 0%{?is_opensuse} || 0%{?suse_version} > 1500
%if 0%{?suse_version} > 1500
/usr/libexec/kauth/kcmsystemdhelper
%else
/usr/lib/kauth/kcmsystemdhelper
%endif
%else
%{_kf5_libdir}/libexec/kauth/kcmsystemdhelper
%endif
%{_kf5_servicesdir}/kcm_systemd.desktop
%{_kf5_sharedir}/dbus-1/system-services/org.kde.kcontrol.kcmsystemd.service
%{_kf5_sharedir}/polkit-1/actions/org.kde.kcontrol.kcmsystemd.policy
%config %{_kf5_sharedir}/dbus-1/system.d/org.kde.kcontrol.kcmsystemd.conf
%files -f systemd-kcm.lang lang
%changelog