3 %bcond_with tests # build with tests
4 %define kdeplasmaver 5.27.7
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: 293fa8cd57834e07c719a055e2b47fbe
16 URL: http://www.kde.org/
17 BuildRequires: Qt5Core-devel >= %{qtver}
18 BuildRequires: cmake >= 3.16.0
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}
41 %{!?with_tests:-DBUILD_TESTING=OFF} \
42 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
43 -DHTML_INSTALL_DIR=%{_kdedocdir}
51 rm -rf $RPM_BUILD_ROOT
52 %ninja_install -C build
54 %find_lang %{kpname} --all-name --with-kde
57 rm -rf $RPM_BUILD_ROOT
59 %post -p /sbin/ldconfig
60 %postun -p /sbin/ldconfig
62 %files -f %{kpname}.lang
63 %defattr(644,root,root,755)
64 %attr(755,root,root) %{_libexecdir}/kauth/kcmsddm_authhelper
65 %{_datadir}/dbus-1/system-services/org.kde.kcontrol.kcmsddm.service
66 %{_datadir}/polkit-1/actions/org.kde.kcontrol.kcmsddm.policy
67 %attr(755,root,root) %{_bindir}/sddmthemeinstaller
68 %{_datadir}/dbus-1/system.d/org.kde.kcontrol.kcmsddm.conf
69 %{_datadir}/knsrcfiles/sddmtheme.knsrc
70 %dir %{_datadir}/kpackage/kcms/kcm_sddm
71 %dir %{_datadir}/kpackage/kcms/kcm_sddm/contents
72 %dir %{_datadir}/kpackage/kcms/kcm_sddm/contents/ui
73 %{_datadir}/kpackage/kcms/kcm_sddm/contents/ui/Advanced.qml
74 %{_datadir}/kpackage/kcms/kcm_sddm/contents/ui/DetailsDialog.qml
75 %{_datadir}/kpackage/kcms/kcm_sddm/contents/ui/main.qml
76 %{_libdir}/qt5/plugins/plasma/kcms/systemsettings/kcm_sddm.so
77 %{_desktopdir}/kcm_sddm.desktop