3 %bcond_with tests # build with tests
4 %define kdeplasmaver 5.26.1
6 %define kpname plymouth-kcm
8 Summary: KDE Config Module for Plyouth
14 Source0: https://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz
15 # Source0-md5: 57d928ef871616ddbf38401debe1530a
16 URL: http://www.kde.org/
17 BuildRequires: Qt5Core-devel >= 5.15.0
18 BuildRequires: Qt5Gui-devel >= 5.15.0
19 BuildRequires: Qt5Network-devel >= 5.15.0
20 BuildRequires: Qt5Qml-devel >= 5.15.2
21 BuildRequires: Qt5Quick-devel >= 5.15.0
22 BuildRequires: cmake >= 2.8.12
23 BuildRequires: gettext-devel
24 BuildRequires: kf5-extra-cmake-modules >= 5.82
25 BuildRequires: kf5-karchive-devel >= 5.82
26 BuildRequires: kf5-kconfig-devel >= 5.82
27 BuildRequires: kf5-kdeclarative-devel >= 5.82
28 BuildRequires: kf5-ki18n-devel >= 5.82
29 BuildRequires: kf5-kio-devel >= 5.82
30 BuildRequires: kf5-knewstuff-devel >= 5.82
32 BuildRequires: plymouth-devel
33 BuildRequires: rpmbuild(macros) >= 1.164
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 %define qt5dir %{_libdir}/qt5
40 KDE Config Module for Plymouth.
43 %setup -q -n %{kpname}-%{version}
49 %{!?with_tests:-DBUILD_TESTING=OFF} \
50 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
51 -DHTML_INSTALL_DIR=%{_kdedocdir} \
60 rm -rf $RPM_BUILD_ROOT
61 %ninja_install -C build
63 %find_lang %{kpname} --all-name --with-kde
66 rm -rf $RPM_BUILD_ROOT
68 %post -p /sbin/ldconfig
69 %postun -p /sbin/ldconfig
71 %files -f %{kpname}.lang
72 %defattr(644,root,root,755)
73 %attr(755,root,root) %{_bindir}/kplymouththemeinstaller
74 %attr(755,root,root) %{_prefix}/libexec/kauth/plymouthhelper
75 %{_datadir}/dbus-1/system-services/org.kde.kcontrol.kcmplymouth.service
76 %{_datadir}/dbus-1/system.d/org.kde.kcontrol.kcmplymouth.conf
77 %{_datadir}/knsrcfiles/plymouth.knsrc
78 %dir %{_datadir}/kpackage/kcms/kcm_plymouth
79 %dir %{_datadir}/kpackage/kcms/kcm_plymouth/contents
80 %dir %{_datadir}/kpackage/kcms/kcm_plymouth/contents/ui
81 %{_datadir}/kpackage/kcms/kcm_plymouth/contents/ui/main.qml
82 %{_datadir}/polkit-1/actions/org.kde.kcontrol.kcmplymouth.policy
83 %{_libdir}/qt5/plugins/plasma/kcms/systemsettings/kcm_plymouth.so
84 %{_desktopdir}/kcm_plymouth.desktop