File kcm_systemd.spec of Package kcm_systemd-kde4
#
# spec file for package kcm_systemd
#
# 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/
#
%define kdeapps_id 161871
%define rname kcmsystemd
Name: kcm_systemd
Summary: A systemd control module for KDE
License: GPL-3.0
Group: System/GUI/KDE
Version: 0.7.0
Release: 0
Url: http://kde-apps.org/content/show.php/%{rname}?content=%{kdeapps_id}
Source0: http://kde-apps.org/CONTENT/content-files/%{kdeapps_id}-%{rname}-%{version}.tar.gz
%if %{suse_version} >= 1500
BuildRequires: libboost_filesystem-devel
BuildRequires: libboost_system-devel
BuildRequires: libboost_chrono-devel
%else
BuildRequires: boost-devel >= 1.45.0
%endif
BuildRequires: libkde4-devel >= 4.4.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_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.
%prep
%setup -q -n %{rname}-%{version}
%build
%cmake_kde4 -d build
%make_jobs
%install
%kde4_makeinstall -C build
%kde_post_install
#E: suse-dbus-unauthorized-service (Badness: 10000) /usr/share/dbus-1/system-services/org.kde.kcontrol.kcmsystemd.service
#E: suse-dbus-unauthorized-service (Badness: 10000) /etc/dbus-1/system.d/org.kde.kcontrol.kcmsystemd.conf
echo "setBadness('suse-dbus-unauthorized-service', 0)" > $RPM_SOURCE_DIR/%name-rpmlintrc
%files
%defattr(-,root,root)
%doc LICENSE NEWS README.md
%{_kde4_modulesdir}/kcm_systemd.so
%{_kde4_modulesdir}/libexec/kcmsystemdhelper
%{_kde4_servicesdir}/kcm_systemd.desktop
%{_kde4_datadir}/dbus-1/system-services/org.kde.kcontrol.kcmsystemd.service
%{_kde4_datadir}/polkit-1/actions/org.kde.kcontrol.kcmsystemd.policy
%config %{_kde4_sysconfdir}/dbus-1/system.d/org.kde.kcontrol.kcmsystemd.conf
%changelog