]>
Commit | Line | Data |
---|---|---|
ede5ff2b AM |
1 | %define kdeplasmaver 5.4.0 |
2 | %define qtver 5.3.2 | |
3 | %define kpname powerdevil | |
4 | ||
5 | Summary: Manages the power consumption settings of a Plasma Shell | |
6 | Name: kp5-%{kpname} | |
7 | Version: 5.4.0 | |
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: d75f08371f19a1f890da03349f1ba60c | |
13 | URL: http://www.kde.org/ | |
14 | BuildRequires: Qt5Core-devel >= %{qtver} | |
15 | BuildRequires: cmake >= 2.8.12 | |
16 | BuildRequires: kf5-kactivities-devel | |
17 | BuildRequires: kf5-kauth-devel | |
18 | BuildRequires: kf5-kconfig-devel | |
19 | BuildRequires: kf5-kdbusaddons-devel | |
20 | BuildRequires: kf5-kdelibs4support-devel | |
21 | BuildRequires: kf5-kglobalaccel-devel | |
22 | BuildRequires: kf5-ki18n-devel | |
23 | BuildRequires: kf5-kidletime-devel | |
24 | BuildRequires: kf5-kio-devel | |
25 | BuildRequires: kf5-knotifyconfig-devel | |
26 | BuildRequires: kf5-solid-devel | |
27 | BuildRequires: kp5-libkscreen-devel | |
ba73e5bf | 28 | BuildRequires: kp5-plasma-workspace |
ede5ff2b AM |
29 | BuildRequires: libxcb-devel |
30 | BuildRequires: rpmbuild(macros) >= 1.164 | |
31 | BuildRequires: xz | |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
33 | ||
34 | %define qt5dir %{_libdir}/qt5 | |
35 | ||
36 | %description | |
37 | Manages the power consumption settings of a Plasma Shell. | |
38 | ||
39 | %prep | |
40 | %setup -q -n %{kpname}-%{version} | |
41 | ||
42 | %build | |
43 | install -d build | |
44 | cd build | |
45 | %cmake \ | |
46 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ | |
47 | ../ | |
48 | %{__make} | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %{__make} -C build/ install \ | |
54 | DESTDIR=$RPM_BUILD_ROOT | |
55 | ||
56 | %find_lang %{kpname} --all-name | |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %post -p /sbin/ldconfig | |
62 | %postun -p /sbin/ldconfig | |
63 | ||
64 | %files -f %{kpname}.lang | |
65 | %defattr(644,root,root,755) | |
66 | /etc/dbus-1/system.d/org.kde.powerdevil.backlighthelper.conf | |
67 | %attr(755,root,root) %{_libdir}/kauth/backlighthelper | |
68 | %attr(755,root,root) %ghost %{_libdir}/libpowerdevilconfigcommonprivate.so.5 | |
69 | %attr(755,root,root) %{_libdir}/libpowerdevilconfigcommonprivate.so.*.*.* | |
70 | %attr(755,root,root) %ghost %{_libdir}/libpowerdevilcore.so.2 | |
71 | %attr(755,root,root) %{_libdir}/libpowerdevilcore.so.*.*.* | |
72 | %attr(755,root,root) %ghost %{_libdir}/libpowerdevilui.so.5 | |
73 | %attr(755,root,root) %{_libdir}/libpowerdevilui.so.*.*.* | |
74 | %attr(755,root,root) %{_libdir}/qt5/plugins/kcm_powerdevilactivitiesconfig.so | |
75 | %attr(755,root,root) %{_libdir}/qt5/plugins/kcm_powerdevilglobalconfig.so | |
76 | %attr(755,root,root) %{_libdir}/qt5/plugins/kcm_powerdevilprofilesconfig.so | |
77 | %attr(755,root,root) %{_libdir}/qt5/plugins/kded_powerdevil.so | |
78 | %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevilbrightnesscontrolaction_config.so | |
79 | %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevildimdisplayaction_config.so | |
80 | %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevildpmsaction.so | |
81 | %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevildpmsaction_config.so | |
82 | %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevilhandlebuttoneventsaction_config.so | |
83 | %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevilkeyboardbrightnesscontrolaction_config.so | |
84 | %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevilrunscriptaction_config.so | |
85 | %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevilsuspendsessionaction_config.so | |
86 | %{_datadir}/dbus-1/system-services/org.kde.powerdevil.backlighthelper.service | |
87 | %{_datadir}/knotifications5/powerdevil.notifyrc | |
88 | %{_datadir}/kservices5/kded/powerdevil.desktop | |
89 | %{_datadir}/kservices5/powerdevil*.desktop | |
90 | %{_datadir}/kservicetypes5/powerdevilaction.desktop | |
91 | %{_datadir}/polkit-1/actions/org.kde.powerdevil.backlighthelper.policy |