- updated to 5.22.5
[packages/kp5-powerdevil.git] / kp5-powerdevil.spec
1 %define         kdeplasmaver    5.22.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.22.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:  c686c77be3904ba77dfa019f93c4cca0
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 >= %{kdeplasmaver}
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 %ghost %{_libdir}/libpowerdevilconfigcommonprivate.so.5
73 %attr(755,root,root) %{_libdir}/libpowerdevilconfigcommonprivate.so.*.*.*
74 %ghost  %{_libdir}/libpowerdevilcore.so.2
75 %attr(755,root,root) %{_libdir}/libpowerdevilcore.so.*.*.*
76 %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_config.so
84 %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevilhandlebuttoneventsaction_config.so
85 %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevilkeyboardbrightnesscontrolaction_config.so
86 %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevilrunscriptaction_config.so
87 %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevilsuspendsessionaction_config.so
88 %{_datadir}/dbus-1/system-services/org.kde.powerdevil.backlighthelper.service
89 %{_datadir}/knotifications5/powerdevil.notifyrc
90 %{_datadir}/kservices5/powerdevil*.desktop
91 %{_datadir}/kservicetypes5/powerdevilaction.desktop
92 %{_datadir}/polkit-1/actions/org.kde.powerdevil.backlighthelper.policy
93 /etc/xdg/autostart/powerdevil.desktop
94 %{_libdir}/libpowerdevilconfigcommonprivate.so
95 %{_libdir}/libpowerdevilcore.so
96 %{_libdir}/libpowerdevilui.so
97 %dir %{_libdir}/qt5/plugins/kf5/powerdevil
98 %{_libdir}/qt5/plugins/kf5/powerdevil/powerdevilupowerbackend.so
99 %{_libdir}/qt5/plugins/powerdevilwirelesspowersavingaction_config.so
100 %{_datadir}/dbus-1/system-services/org.kde.powerdevil.discretegpuhelper.service
101 %{_datadir}/polkit-1/actions/org.kde.powerdevil.discretegpuhelper.policy
102 %{_datadir}/dbus-1/system.d/org.kde.powerdevil.backlighthelper.conf
103 %{_datadir}/dbus-1/system.d/org.kde.powerdevil.discretegpuhelper.conf
104 %{systemduserunitdir}/plasma-powerdevil.service
105 %attr(755,root,root) %{_prefix}/libexec/kauth/chargethresholdhelper
106 %{_datadir}/dbus-1/system-services/org.kde.powerdevil.chargethresholdhelper.service
107 %{_datadir}/dbus-1/system.d/org.kde.powerdevil.chargethresholdhelper.conf
108 %{_datadir}/polkit-1/actions/org.kde.powerdevil.chargethresholdhelper.policy
109 %{_datadir}/qlogging-categories5/powerdevil.categories
This page took 0.108583 seconds and 3 git commands to generate.