File plymouth-kcm.spec of Package plymouth-kcm
#
# spec file for package plymouth-kcm
#
# Copyright (c) 2017 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 http://bugs.opensuse.org/
#
%bcond_without lang
Name: plymouth-kcm
Version: 5.12.9
Release: 0
%define kf5_version 5.29.0
Summary: KCM to manage the Plymouth (Boot) theme
License: GPL-2.0+
Group: System/GUI/KDE
Url: http://www.kde.org
Source: https://download.kde.org/stable/plasma/%{version}/plymouth-kcm-%{version}.tar.xz
# PATCH-FIX-OPENSUSE
Patch1: 0001-Adjust-debianisms.patch
BuildRequires: extra-cmake-modules >= %kf5_version
BuildRequires: cmake(Qt5Core) >= 5.5.0
BuildRequires: cmake(Qt5DBus)
BuildRequires: cmake(Qt5Gui)
BuildRequires: cmake(Qt5Quick)
BuildRequires: cmake(Qt5Widgets)
BuildRequires: cmake(KF5Archive) >= %kf5_version
BuildRequires: cmake(KF5NewStuff) >= %kf5_version
BuildRequires: cmake(KF5NewStuffCore) >= %kf5_version
BuildRequires: cmake(KF5KIO) >= %kf5_version
BuildRequires: cmake(KF5KCMUtils) >= %kf5_version
BuildRequires: cmake(KF5Declarative) >= %kf5_version
BuildRequires: cmake(KF5Crash) >= %kf5_version
BuildRequires: cmake(KF5I18n) >= %kf5_version
BuildRequires: cmake(KF5Config) >= %kf5_version
BuildRequires: cmake(KF5ConfigWidgets) >= %kf5_version
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
KCM to manage the Plymouth (Boot) theme
%if %{with lang}
%lang_package
%endif
%prep
%setup -q
%patch1 -p1
%build
%cmake_kf5 -d build
%make_jobs
%install
%make_install -C build
%if %{with lang}
%find_lang %{name} --with-man --all-name
%endif
%files
%defattr(-,root,root)
%doc COPYING* CONTRIBUTORS
%{_sysconfdir}/dbus-1/system.d/org.kde.kcontrol.kcmplymouth.conf
%{_datadir}/dbus-1/system-services/org.kde.kcontrol.kcmplymouth.service
%{_datadir}/polkit-1/actions/org.kde.kcontrol.kcmplymouth.policy
%{_kf5_configdir}/plymouth.knsrc
%{_kf5_bindir}/kplymouththemeinstaller
%{_libdir}/libexec/kauth/plymouthhelper
%dir %{_kf5_plugindir}/kcms
%{_kf5_plugindir}/kcms/kcm_plymouth.so
%dir %{_kf5_sharedir}/kpackage
%dir %{_kf5_sharedir}/kpackage/kcms
%{_kf5_sharedir}/kpackage/kcms/kcm_plymouth
%{_kf5_servicesdir}/kcm_plymouth.desktop
%if %{with lang}
%files lang -f %{name}.lang
%endif
%changelog