- updated to 5.15.3
[packages/kp5-powerdevil.git] / kp5-powerdevil.spec
1 %define         kdeplasmaver    5.15.3
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.15.3
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:  72da38b000b84ebb350b2842c22438bb
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:  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         ../
52 %ninja_build
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 %ninja_install -C build
57
58 %find_lang %{kpname} --all-name --with-kde
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %post -p /sbin/ldconfig
64 %postun -p /sbin/ldconfig
65
66 %files -f %{kpname}.lang
67 %defattr(644,root,root,755)
68 /etc/dbus-1/system.d/org.kde.powerdevil.backlighthelper.conf
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/kded_powerdevil.so
82 %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevilbrightnesscontrolaction_config.so
83 %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevildimdisplayaction_config.so
84 %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevildpmsaction.so
85 %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevildpmsaction_config.so
86 %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevilhandlebuttoneventsaction_config.so
87 %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevilkeyboardbrightnesscontrolaction_config.so
88 %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevilrunscriptaction_config.so
89 %attr(755,root,root) %{_libdir}/qt5/plugins/powerdevilsuspendsessionaction_config.so
90 %{_datadir}/dbus-1/system-services/org.kde.powerdevil.backlighthelper.service
91 %{_datadir}/knotifications5/powerdevil.notifyrc
92 #%{_datadir}/kservices5/kded/powerdevil.desktop
93 %{_datadir}/kservices5/powerdevil*.desktop
94 %{_datadir}/kservicetypes5/powerdevilaction.desktop
95 %{_datadir}/polkit-1/actions/org.kde.powerdevil.backlighthelper.policy
96
97 /etc/dbus-1/system.d/org.kde.powerdevil.discretegpuhelper.conf
98 /etc/xdg/autostart/powerdevil.desktop
99 %{_libdir}/libpowerdevilconfigcommonprivate.so
100 %{_libdir}/libpowerdevilcore.so
101 %{_libdir}/libpowerdevilui.so
102 %dir %{_libdir}/qt5/plugins/kf5/powerdevil
103 %{_libdir}/qt5/plugins/kf5/powerdevil/powerdevilupowerbackend.so
104 %{_libdir}/qt5/plugins/powerdevilwirelesspowersavingaction_config.so
105 %{_datadir}/dbus-1/system-services/org.kde.powerdevil.discretegpuhelper.service
106 %{_datadir}/polkit-1/actions/org.kde.powerdevil.discretegpuhelper.policy
This page took 0.176131 seconds and 3 git commands to generate.