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