]>
Commit | Line | Data |
---|---|---|
3ed63358 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
f4b1a728 | 4 | %define kdeplasmaver 5.27.8 |
ff1229a3 | 5 | %define qtver 5.15.2 |
a4ba1965 AM |
6 | %define kpname sddm-kcm |
7 | ||
8 | Summary: KDE Config Module for SDDM | |
9 | Name: kp5-%{kpname} | |
f4b1a728 | 10 | Version: 5.27.8 |
906e3ef9 | 11 | Release: 1 |
a4ba1965 AM |
12 | License: LGPL v2.1+ |
13 | Group: X11/Libraries | |
ac9e7d77 | 14 | Source0: https://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz |
f4b1a728 | 15 | # Source0-md5: 9092a4d88f27a998ddf248f1b8f1ddec |
a4ba1965 AM |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
cedf3f9c | 18 | BuildRequires: cmake >= 3.16.0 |
a4ba1965 AM |
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 | |
e4ff7cf2 | 25 | BuildRequires: ninja |
a4ba1965 AM |
26 | BuildRequires: rpmbuild(macros) >= 1.164 |
27 | BuildRequires: xz | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %define qt5dir %{_libdir}/qt5 | |
31 | ||
32 | %description | |
33 | KDE Config Module for SDDM. | |
34 | ||
35 | %prep | |
36 | %setup -q -n %{kpname}-%{version} | |
37 | ||
38 | %build | |
cedf3f9c WF |
39 | %cmake -B build \ |
40 | -G Ninja \ | |
3ed63358 | 41 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
a4ba1965 | 42 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
cedf3f9c WF |
43 | -DHTML_INSTALL_DIR=%{_kdedocdir} |
44 | %ninja_build -C build | |
a4ba1965 | 45 | |
3ed63358 WF |
46 | %if %{with tests} |
47 | ctest | |
48 | %endif | |
49 | ||
a4ba1965 AM |
50 | %install |
51 | rm -rf $RPM_BUILD_ROOT | |
e4ff7cf2 | 52 | %ninja_install -C build |
a4ba1965 | 53 | |
34429314 | 54 | %find_lang %{kpname} --all-name --with-kde |
a4ba1965 AM |
55 | |
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
92b847cc ER |
59 | %post -p /sbin/ldconfig |
60 | %postun -p /sbin/ldconfig | |
a4ba1965 AM |
61 | |
62 | %files -f %{kpname}.lang | |
63 | %defattr(644,root,root,755) | |
82f36713 | 64 | %attr(755,root,root) %{_libexecdir}/kauth/kcmsddm_authhelper |
a4ba1965 | 65 | %{_datadir}/dbus-1/system-services/org.kde.kcontrol.kcmsddm.service |
a4ba1965 | 66 | %{_datadir}/polkit-1/actions/org.kde.kcontrol.kcmsddm.policy |
e6e1df0e | 67 | %attr(755,root,root) %{_bindir}/sddmthemeinstaller |
38a1e1bf WF |
68 | %{_datadir}/dbus-1/system.d/org.kde.kcontrol.kcmsddm.conf |
69 | %{_datadir}/knsrcfiles/sddmtheme.knsrc | |
38a1e1bf WF |
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 | |
375673ba WF |
76 | %{_libdir}/qt5/plugins/plasma/kcms/systemsettings/kcm_sddm.so |
77 | %{_desktopdir}/kcm_sddm.desktop |