- updated to 5.22.5
[packages/kp5-powerdevil.git] / kp5-powerdevil.spec
CommitLineData
19b2e39c 1%define kdeplasmaver 5.22.5
218fcf7d 2%define qtver 5.9.0
ede5ff2b
AM
3%define kpname powerdevil
4
5Summary: Manages the power consumption settings of a Plasma Shell
6Name: kp5-%{kpname}
19b2e39c 7Version: 5.22.5
e403a439 8Release: 1
ede5ff2b
AM
9License: LGPL v2.1+
10Group: X11/Libraries
11Source0: http://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz
19b2e39c 12# Source0-md5: c686c77be3904ba77dfa019f93c4cca0
ede5ff2b
AM
13URL: http://www.kde.org/
14BuildRequires: Qt5Core-devel >= %{qtver}
15BuildRequires: cmake >= 2.8.12
f111e374 16BuildRequires: kf5-bluez-qt-devel
ede5ff2b
AM
17BuildRequires: kf5-kactivities-devel
18BuildRequires: kf5-kauth-devel
19BuildRequires: kf5-kconfig-devel
20BuildRequires: kf5-kdbusaddons-devel
21BuildRequires: kf5-kdelibs4support-devel
22BuildRequires: kf5-kglobalaccel-devel
23BuildRequires: kf5-ki18n-devel
24BuildRequires: kf5-kidletime-devel
25BuildRequires: kf5-kio-devel
26BuildRequires: kf5-knotifyconfig-devel
f111e374 27BuildRequires: kf5-kwayland-devel
625d6547
WF
28BuildRequires: kf5-networkmanager-qt-devel
29BuildRequires: kf5-solid-devel
ede5ff2b 30BuildRequires: kp5-libkscreen-devel
2b835aaa 31BuildRequires: kp5-plasma-workspace-devel >= %{kdeplasmaver}
ede5ff2b 32BuildRequires: libxcb-devel
0ac77d42 33BuildRequires: ninja
ede5ff2b
AM
34BuildRequires: rpmbuild(macros) >= 1.164
35BuildRequires: xz
36BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38%define qt5dir %{_libdir}/qt5
39
40%description
41Manages the power consumption settings of a Plasma Shell.
42
43%prep
44%setup -q -n %{kpname}-%{version}
45
46%build
47install -d build
48cd build
0ac77d42 49%cmake -G Ninja \
ede5ff2b 50 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
625d6547 51 -DHTML_INSTALL_DIR=%{_kdedocdir} \
ede5ff2b 52 ../
0ac77d42 53%ninja_build
ede5ff2b
AM
54
55%install
56rm -rf $RPM_BUILD_ROOT
0ac77d42 57%ninja_install -C build
ede5ff2b 58
6b7138ac 59%find_lang %{kpname} --all-name --with-kde
ede5ff2b
AM
60
61%clean
62rm -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)
e3384a5a 69%attr(755,root,root) %{_libexecdir}/org_kde_powerdevil
5efff3e9
JR
70%attr(755,root,root) %{_libexecdir}/kauth/backlighthelper
71%attr(755,root,root) %{_libexecdir}/kauth/discretegpuhelper
1ee01981 72%ghost %{_libdir}/libpowerdevilconfigcommonprivate.so.5
ede5ff2b 73%attr(755,root,root) %{_libdir}/libpowerdevilconfigcommonprivate.so.*.*.*
1ee01981 74%ghost %{_libdir}/libpowerdevilcore.so.2
ede5ff2b 75%attr(755,root,root) %{_libdir}/libpowerdevilcore.so.*.*.*
1ee01981 76%ghost %{_libdir}/libpowerdevilui.so.5
ede5ff2b
AM
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
ede5ff2b
AM
81%attr(755,root,root) %{_libdir}/qt5/plugins/powerdevilbrightnesscontrolaction_config.so
82%attr(755,root,root) %{_libdir}/qt5/plugins/powerdevildimdisplayaction_config.so
ede5ff2b
AM
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
ede5ff2b
AM
90%{_datadir}/kservices5/powerdevil*.desktop
91%{_datadir}/kservicetypes5/powerdevilaction.desktop
92%{_datadir}/polkit-1/actions/org.kde.powerdevil.backlighthelper.policy
33e78e64 93/etc/xdg/autostart/powerdevil.desktop
33e78e64
WF
94%{_libdir}/libpowerdevilconfigcommonprivate.so
95%{_libdir}/libpowerdevilcore.so
96%{_libdir}/libpowerdevilui.so
33e78e64
WF
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
625d6547
WF
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.099338 seconds and 4 git commands to generate.