File systemdgenie.spec of Package systemdgenie
%define qt_min 5.15.2
%define kf5_min 5.95.0
%define systemd_min 209
Name: systemdgenie
Summary: Systemd control for KDE
License: GPL-3.0
Group: System/GUI/KDE
Version: 0.99.0+git20230618.b2e299e
Release: 0
Url: https://anongit.kde.org/systemdgenie.git
Source0: %{name}-%{version}.tar.xz
Source99: %{name}-rpmlintrc
BuildRequires: cmake >= 2.8.12
BuildRequires: extra-cmake-modules
BuildRequires: pkgconfig(Qt5Widgets) >= %{qt_min}
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: cmake(KF5Auth) >= %{kf5_min}
BuildRequires: cmake(KF5CoreAddons)
BuildRequires: cmake(KF5Crash)
BuildRequires: cmake(KF5I18n)
BuildRequires: cmake(KF5XmlGui)
BuildRequires: systemd >= %{systemd_min}
BuildRequires: systemd-devel >= %{systemd_min}
Conflicts: kcm_systemd
Conflicts: kcm_systemd5
Recommends: %{name}-lang = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{?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
sed -i 's/Qt;KDE;System;/System;Settings;System;Monitor;/' src/org.kde.systemdgenie.desktop
%build
export KAUTH_HELPER_INSTALL_DIR=%{_kf5_libexecdir}/kauth/
%cmake_kf5
%make_jobs
%install
export KAUTH_HELPER_INSTALL_DIR=%{_kf5_libexecdir}/kauth/
%kf5_makeinstall
mkdir -p %{buildroot}%{_kf5_libexecdir}/kauth/
mv %{buildroot}/%{_kf5_libexecdir}/../kauth/* %{buildroot}/%{_kf5_libexecdir}/kauth/
%find_lang %{name}
%files
%defattr(-,root,root)
%doc COPYING NEWS README.md
%{_bindir}/%{name}
%{_kf5_libexecdir}/kauth*
%{_kf5_kxmlguidir}/systemdgenie
%{_kf5_applicationsdir}/org.kde.systemdgenie.desktop
%{_datadir}/polkit-1/actions/org.kde.kcontrol.systemdgenie.policy
%{_datadir}/dbus-1/system-services/org.kde.kcontrol.systemdgenie.service
%config %{_datadir}/dbus-1/system.d/org.kde.kcontrol.systemdgenie.conf
%files lang -f %{name}.lang
%changelog