- updated to 5.14.5
[packages/kp5-powerdevil.git] / kp5-powerdevil.spec
1 %define         kdeplasmaver    5.14.5
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.14.5
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:  85cb6af97de3c5867aae2f5fb2a058a2
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-networkmanager-qt-devel
18 BuildRequires:  kf5-kactivities-devel
19 BuildRequires:  kf5-kauth-devel
20 BuildRequires:  kf5-kconfig-devel
21 BuildRequires:  kf5-kdbusaddons-devel
22 BuildRequires:  kf5-kdelibs4support-devel
23 BuildRequires:  kf5-kglobalaccel-devel
24 BuildRequires:  kf5-ki18n-devel
25 BuildRequires:  kf5-kidletime-devel
26 BuildRequires:  kf5-kio-devel
27 BuildRequires:  kf5-knotifyconfig-devel
28 BuildRequires:  kf5-solid-devel
29 BuildRequires:  kf5-kwayland-devel
30 BuildRequires:  kp5-libkscreen-devel
31 BuildRequires:  kp5-plasma-workspace-devel
32 BuildRequires:  libxcb-devel
33 BuildRequires:  rpmbuild(macros) >= 1.164
34 BuildRequires:  xz
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %define         qt5dir          %{_libdir}/qt5
38
39 %description
40 Manages the power consumption settings of a Plasma Shell.
41
42 %prep
43 %setup -q -n %{kpname}-%{version}
44
45 %build
46 install -d build
47 cd build
48 %cmake \
49         -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
50         ../
51 %{__make}
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55
56 %{__make} -C build/ install \
57         DESTDIR=$RPM_BUILD_ROOT
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 /etc/dbus-1/system.d/org.kde.powerdevil.backlighthelper.conf
70 %attr(755,root,root) %{_libexecdir}/org_kde_powerdevil
71 %attr(755,root,root) %{_libexecdir}/kauth/backlighthelper
72 %attr(755,root,root) %{_libexecdir}/kauth/discretegpuhelper
73 %attr(755,root,root) %ghost %{_libdir}/libpowerdevilconfigcommonprivate.so.5
74 %attr(755,root,root) %{_libdir}/libpowerdevilconfigcommonprivate.so.*.*.*
75 %attr(755,root,root) %ghost  %{_libdir}/libpowerdevilcore.so.2
76 %attr(755,root,root) %{_libdir}/libpowerdevilcore.so.*.*.*
77 %attr(755,root,root) %ghost  %{_libdir}/libpowerdevilui.so.5
78 %attr(755,root,root) %{_libdir}/libpowerdevilui.so.*.*.*
79 %attr(755,root,root) %{_libdir}/qt5/plugins/kcm_powerdevilactivitiesconfig.so
80 %attr(755,root,root) %{_libdir}/qt5/plugins/kcm_powerdevilglobalconfig.so
81 %attr(755,root,root) %{_libdir}/qt5/plugins/kcm_powerdevilprofilesconfig.so
82 #%attr(755,root,root) %{_libdir}/qt5/plugins/kded_powerdevil.so
83 %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevilbrightnesscontrolaction_config.so
84 %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevildimdisplayaction_config.so
85 %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevildpmsaction.so
86 %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevildpmsaction_config.so
87 %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevilhandlebuttoneventsaction_config.so
88 %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevilkeyboardbrightnesscontrolaction_config.so
89 %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevilrunscriptaction_config.so
90 %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevilsuspendsessionaction_config.so
91 %{_datadir}/dbus-1/system-services/org.kde.powerdevil.backlighthelper.service
92 %{_datadir}/knotifications5/powerdevil.notifyrc
93 #%{_datadir}/kservices5/kded/powerdevil.desktop
94 %{_datadir}/kservices5/powerdevil*.desktop
95 %{_datadir}/kservicetypes5/powerdevilaction.desktop
96 %{_datadir}/polkit-1/actions/org.kde.powerdevil.backlighthelper.policy
97
98 /etc/dbus-1/system.d/org.kde.powerdevil.discretegpuhelper.conf
99 /etc/xdg/autostart/powerdevil.desktop
100 %{_libdir}/libpowerdevilconfigcommonprivate.so
101 %{_libdir}/libpowerdevilcore.so
102 %{_libdir}/libpowerdevilui.so
103 %dir %{_libdir}/qt5/plugins/kf5/powerdevil
104 %{_libdir}/qt5/plugins/kf5/powerdevil/powerdevilupowerbackend.so
105 %{_libdir}/qt5/plugins/powerdevilwirelesspowersavingaction_config.so
106 %{_datadir}/dbus-1/system-services/org.kde.powerdevil.discretegpuhelper.service
107 %{_datadir}/polkit-1/actions/org.kde.powerdevil.discretegpuhelper.policy
This page took 0.059402 seconds and 3 git commands to generate.