]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
4 | %define kdeplasmaver 5.27.11 | |
5 | %define qtver 5.15.2 | |
6 | %define kpname powerdevil | |
7 | ||
8 | Summary: Manages the power consumption settings of a Plasma Shell | |
9 | Name: kp5-%{kpname} | |
10 | Version: 5.27.11 | |
11 | Release: 2 | |
12 | License: LGPL v2.1+ | |
13 | Group: X11/Libraries | |
14 | Source0: https://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz | |
15 | # Source0-md5: cec65575ae03f47616ee334135574e43 | |
16 | URL: https://www.kde.org/ | |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: cmake >= 3.16.0 | |
19 | BuildRequires: kf5-bluez-qt-devel | |
20 | BuildRequires: kf5-kactivities-devel | |
21 | BuildRequires: kf5-kauth-devel | |
22 | BuildRequires: kf5-kcmutils-devel | |
23 | BuildRequires: kf5-kconfig-devel | |
24 | BuildRequires: kf5-kdbusaddons-devel | |
25 | BuildRequires: kf5-kdelibs4support-devel | |
26 | BuildRequires: kf5-kglobalaccel-devel | |
27 | BuildRequires: kf5-ki18n-devel | |
28 | BuildRequires: kf5-kidletime-devel | |
29 | BuildRequires: kf5-kio-devel | |
30 | BuildRequires: kf5-kirigami2-devel | |
31 | BuildRequires: kf5-knotifications-devel | |
32 | BuildRequires: kf5-knotifyconfig-devel | |
33 | BuildRequires: kf5-kwayland-devel | |
34 | BuildRequires: kf5-networkmanager-qt-devel | |
35 | BuildRequires: kf5-solid-devel | |
36 | BuildRequires: kp5-libkscreen-devel | |
37 | BuildRequires: kp5-plasma-workspace-devel >= %{kdeplasmaver} | |
38 | BuildRequires: libxcb-devel | |
39 | BuildRequires: ninja | |
40 | BuildRequires: rpmbuild(macros) >= 1.164 | |
41 | BuildRequires: xz | |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
43 | ||
44 | %define qt5dir %{_libdir}/qt5 | |
45 | ||
46 | %description | |
47 | Manages the power consumption settings of a Plasma Shell. | |
48 | ||
49 | %prep | |
50 | %setup -q -n %{kpname}-%{version} | |
51 | ||
52 | %build | |
53 | %cmake -B build \ | |
54 | -G Ninja \ | |
55 | %{!?with_tests:-DBUILD_TESTING=OFF} \ | |
56 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ | |
57 | -DHTML_INSTALL_DIR=%{_kdedocdir} | |
58 | %ninja_build -C build | |
59 | ||
60 | %if %{with tests} | |
61 | ctest | |
62 | %endif | |
63 | ||
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | %ninja_install -C build | |
67 | ||
68 | %find_lang %{kpname} --all-name --with-kde | |
69 | ||
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %post -p /sbin/ldconfig | |
74 | %postun -p /sbin/ldconfig | |
75 | ||
76 | %files -f %{kpname}.lang | |
77 | %defattr(644,root,root,755) | |
78 | %attr(755,root,root) %{_libexecdir}/org_kde_powerdevil | |
79 | %attr(755,root,root) %{_libexecdir}/kauth/backlighthelper | |
80 | %attr(755,root,root) %{_libexecdir}/kauth/discretegpuhelper | |
81 | %ghost %{_libdir}/libpowerdevilconfigcommonprivate.so.5 | |
82 | %attr(755,root,root) %{_libdir}/libpowerdevilconfigcommonprivate.so.*.*.* | |
83 | %ghost %{_libdir}/libpowerdevilcore.so.2 | |
84 | %attr(755,root,root) %{_libdir}/libpowerdevilcore.so.*.*.* | |
85 | %ghost %{_libdir}/libpowerdevilui.so.5 | |
86 | %attr(755,root,root) %{_libdir}/libpowerdevilui.so.*.*.* | |
87 | %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevilbrightnesscontrolaction_config.so | |
88 | %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevildimdisplayaction_config.so | |
89 | %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevildpmsaction_config.so | |
90 | %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevilhandlebuttoneventsaction_config.so | |
91 | %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevilkeyboardbrightnesscontrolaction_config.so | |
92 | %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevilrunscriptaction_config.so | |
93 | %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevilsuspendsessionaction_config.so | |
94 | %{_datadir}/dbus-1/system-services/org.kde.powerdevil.backlighthelper.service | |
95 | %{_datadir}/knotifications5/powerdevil.notifyrc | |
96 | %{_datadir}/polkit-1/actions/org.kde.powerdevil.backlighthelper.policy | |
97 | /etc/xdg/autostart/powerdevil.desktop | |
98 | %{_libdir}/libpowerdevilconfigcommonprivate.so | |
99 | %{_libdir}/libpowerdevilcore.so | |
100 | %{_libdir}/libpowerdevilui.so | |
101 | %dir %{_libdir}/qt5/plugins/kf5/powerdevil | |
102 | %{_libdir}/qt5/plugins/kf5/powerdevil/powerdevilupowerbackend.so | |
103 | %{_libdir}/qt5/plugins/powerdevilwirelesspowersavingaction_config.so | |
104 | %{_datadir}/dbus-1/system-services/org.kde.powerdevil.discretegpuhelper.service | |
105 | %{_datadir}/polkit-1/actions/org.kde.powerdevil.discretegpuhelper.policy | |
106 | %{_datadir}/dbus-1/system.d/org.kde.powerdevil.backlighthelper.conf | |
107 | %{_datadir}/dbus-1/system.d/org.kde.powerdevil.discretegpuhelper.conf | |
108 | %{systemduserunitdir}/plasma-powerdevil.service | |
109 | %attr(755,root,root) %{_prefix}/libexec/kauth/chargethresholdhelper | |
110 | %{_datadir}/dbus-1/system-services/org.kde.powerdevil.chargethresholdhelper.service | |
111 | %{_datadir}/dbus-1/system.d/org.kde.powerdevil.chargethresholdhelper.conf | |
112 | %{_datadir}/polkit-1/actions/org.kde.powerdevil.chargethresholdhelper.policy | |
113 | %{_datadir}/qlogging-categories5/powerdevil.categories | |
114 | %{_libdir}/qt5/plugins/powerdevilpowerprofileaction_config.so | |
115 | ||
116 | %{_libdir}/qt5/plugins/plasma/kcms/systemsettings_qwidgets/kcm_powerdevilactivitiesconfig.so | |
117 | %{_libdir}/qt5/plugins/plasma/kcms/systemsettings_qwidgets/kcm_powerdevilglobalconfig.so | |
118 | %{_libdir}/qt5/plugins/plasma/kcms/systemsettings_qwidgets/kcm_powerdevilprofilesconfig.so | |
119 | %dir %{_libdir}/qt5/plugins/powerdevil | |
120 | %dir %{_libdir}/qt5/plugins/powerdevil/action | |
121 | %{_libdir}/qt5/plugins/powerdevil/action/powerdevil_brightnesscontrolaction.so | |
122 | %{_libdir}/qt5/plugins/powerdevil/action/powerdevil_dimdisplayaction.so | |
123 | %{_libdir}/qt5/plugins/powerdevil/action/powerdevil_dpmsaction.so | |
124 | %{_libdir}/qt5/plugins/powerdevil/action/powerdevil_handlebuttoneventsaction.so | |
125 | %{_libdir}/qt5/plugins/powerdevil/action/powerdevil_keyboardbrightnesscontrolaction.so | |
126 | %{_libdir}/qt5/plugins/powerdevil/action/powerdevil_powerprofileaction.so | |
127 | %{_libdir}/qt5/plugins/powerdevil/action/powerdevil_runscriptaction.so | |
128 | %{_libdir}/qt5/plugins/powerdevil/action/powerdevil_suspendsessionaction.so | |
129 | %{_libdir}/qt5/plugins/powerdevil/action/powerdevil_wirelesspowersavingaction.so | |
130 | %{_desktopdir}/kcm_powerdevilactivitiesconfig.desktop | |
131 | %{_desktopdir}/kcm_powerdevilglobalconfig.desktop | |
132 | %{_desktopdir}/kcm_powerdevilprofilesconfig.desktop |