3 %bcond_with tests # build with tests
4 %define kdeplasmaver 5.25.5
6 %define kpname sddm-kcm
8 Summary: KDE Config Module for SDDM
14 Source0: https://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz
15 # Source0-md5: 0b65ef99ec595249f5fb1782d9a3407f
16 URL: http://www.kde.org/
17 BuildRequires: Qt5Core-devel >= %{qtver}
18 BuildRequires: cmake >= 2.8.12
19 BuildRequires: kf5-kauth-devel
20 BuildRequires: kf5-kconfigwidgets-devel
21 BuildRequires: kf5-kcoreaddons-devel
22 BuildRequires: kf5-ki18n-devel
23 BuildRequires: kf5-kio-devel
24 BuildRequires: kf5-kxmlgui-devel
26 BuildRequires: rpmbuild(macros) >= 1.164
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 %define qt5dir %{_libdir}/qt5
33 KDE Config Module for SDDM.
36 %setup -q -n %{kpname}-%{version}
42 %{!?with_tests:-DBUILD_TESTING=OFF} \
43 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
44 -DHTML_INSTALL_DIR=%{_kdedocdir} \
53 rm -rf $RPM_BUILD_ROOT
54 %ninja_install -C build
56 %find_lang %{kpname} --all-name --with-kde
59 rm -rf $RPM_BUILD_ROOT
61 %post -p /sbin/ldconfig
62 %postun -p /sbin/ldconfig
64 %files -f %{kpname}.lang
65 %defattr(644,root,root,755)
66 %attr(755,root,root) %{_libexecdir}/kauth/kcmsddm_authhelper
67 %{_datadir}/dbus-1/system-services/org.kde.kcontrol.kcmsddm.service
68 %{_datadir}/polkit-1/actions/org.kde.kcontrol.kcmsddm.policy
69 %attr(755,root,root) %{_bindir}/sddmthemeinstaller
70 %{_datadir}/dbus-1/system.d/org.kde.kcontrol.kcmsddm.conf
71 %{_datadir}/knsrcfiles/sddmtheme.knsrc
72 %dir %{_datadir}/kpackage/kcms/kcm_sddm
73 %dir %{_datadir}/kpackage/kcms/kcm_sddm/contents
74 %dir %{_datadir}/kpackage/kcms/kcm_sddm/contents/ui
75 %{_datadir}/kpackage/kcms/kcm_sddm/contents/ui/Advanced.qml
76 %{_datadir}/kpackage/kcms/kcm_sddm/contents/ui/DetailsDialog.qml
77 %{_datadir}/kpackage/kcms/kcm_sddm/contents/ui/main.qml
78 %{_libdir}/qt5/plugins/plasma/kcms/systemsettings/kcm_sddm.so
79 %{_desktopdir}/kcm_sddm.desktop