]>
Commit | Line | Data |
---|---|---|
d097503a WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
105cf7c4 | 4 | %define kdeplasmaver 5.27.11 |
f3b492ea | 5 | %define qtver 5.15.2 |
ede5ff2b AM |
6 | %define kpname powerdevil |
7 | ||
8 | Summary: Manages the power consumption settings of a Plasma Shell | |
9 | Name: kp5-%{kpname} | |
105cf7c4 | 10 | Version: 5.27.11 |
fddf3365 | 11 | Release: 2 |
ede5ff2b AM |
12 | License: LGPL v2.1+ |
13 | Group: X11/Libraries | |
d483963c | 14 | Source0: https://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz |
105cf7c4 | 15 | # Source0-md5: cec65575ae03f47616ee334135574e43 |
76fe6325 | 16 | URL: https://www.kde.org/ |
d483963c | 17 | BuildRequires: Qt5Core-devel >= %{qtver} |
fa54e9e0 | 18 | BuildRequires: cmake >= 3.16.0 |
d483963c WF |
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 | |
ede5ff2b | 36 | BuildRequires: kp5-libkscreen-devel |
2b835aaa | 37 | BuildRequires: kp5-plasma-workspace-devel >= %{kdeplasmaver} |
ede5ff2b | 38 | BuildRequires: libxcb-devel |
0ac77d42 | 39 | BuildRequires: ninja |
ede5ff2b AM |
40 | BuildRequires: rpmbuild(macros) >= 1.164 |
41 | BuildRequires: xz | |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
43 | ||
d483963c | 44 | %define qt5dir %{_libdir}/qt5 |
ede5ff2b AM |
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 | |
fa54e9e0 WF |
53 | %cmake -B build \ |
54 | -G Ninja \ | |
d097503a | 55 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
ede5ff2b | 56 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
fa54e9e0 WF |
57 | -DHTML_INSTALL_DIR=%{_kdedocdir} |
58 | %ninja_build -C build | |
ede5ff2b | 59 | |
d097503a WF |
60 | %if %{with tests} |
61 | ctest | |
62 | %endif | |
63 | ||
ede5ff2b AM |
64 | %install |
65 | rm -rf $RPM_BUILD_ROOT | |
0ac77d42 | 66 | %ninja_install -C build |
ede5ff2b | 67 | |
6b7138ac | 68 | %find_lang %{kpname} --all-name --with-kde |
ede5ff2b AM |
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) | |
e3384a5a | 78 | %attr(755,root,root) %{_libexecdir}/org_kde_powerdevil |
d483963c WF |
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.*.*.* | |
1ee01981 | 83 | %ghost %{_libdir}/libpowerdevilcore.so.2 |
ede5ff2b | 84 | %attr(755,root,root) %{_libdir}/libpowerdevilcore.so.*.*.* |
d483963c WF |
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 | |
ede5ff2b | 94 | %{_datadir}/dbus-1/system-services/org.kde.powerdevil.backlighthelper.service |
d483963c | 95 | %{_datadir}/knotifications5/powerdevil.notifyrc |
ede5ff2b | 96 | %{_datadir}/polkit-1/actions/org.kde.powerdevil.backlighthelper.policy |
33e78e64 | 97 | /etc/xdg/autostart/powerdevil.desktop |
33e78e64 WF |
98 | %{_libdir}/libpowerdevilconfigcommonprivate.so |
99 | %{_libdir}/libpowerdevilcore.so | |
d483963c WF |
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 | |
33e78e64 WF |
104 | %{_datadir}/dbus-1/system-services/org.kde.powerdevil.discretegpuhelper.service |
105 | %{_datadir}/polkit-1/actions/org.kde.powerdevil.discretegpuhelper.policy | |
625d6547 WF |
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 | |
d483963c | 109 | %attr(755,root,root) %{_prefix}/libexec/kauth/chargethresholdhelper |
625d6547 WF |
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 | |
d483963c WF |
113 | %{_datadir}/qlogging-categories5/powerdevil.categories |
114 | %{_libdir}/qt5/plugins/powerdevilpowerprofileaction_config.so | |
4a6b8337 | 115 | |
d483963c WF |
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 | |
4a6b8337 | 132 | %{_desktopdir}/kcm_powerdevilprofilesconfig.desktop |