- updated to 5.15.3
[packages/kp5-powerdevil.git] / kp5-powerdevil.spec
CommitLineData
0ac77d42 1%define kdeplasmaver 5.15.3
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}
0ac77d42 7Version: 5.15.3
e403a439 8Release: 1
ede5ff2b
AM
9License: LGPL v2.1+
10Group: X11/Libraries
11Source0: http://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz
0ac77d42 12# Source0-md5: 72da38b000b84ebb350b2842c22438bb
ede5ff2b
AM
13URL: http://www.kde.org/
14BuildRequires: Qt5Core-devel >= %{qtver}
15BuildRequires: cmake >= 2.8.12
f111e374
JR
16BuildRequires: kf5-bluez-qt-devel
17BuildRequires: kf5-networkmanager-qt-devel
ede5ff2b
AM
18BuildRequires: kf5-kactivities-devel
19BuildRequires: kf5-kauth-devel
20BuildRequires: kf5-kconfig-devel
21BuildRequires: kf5-kdbusaddons-devel
22BuildRequires: kf5-kdelibs4support-devel
23BuildRequires: kf5-kglobalaccel-devel
24BuildRequires: kf5-ki18n-devel
25BuildRequires: kf5-kidletime-devel
26BuildRequires: kf5-kio-devel
27BuildRequires: kf5-knotifyconfig-devel
28BuildRequires: kf5-solid-devel
f111e374 29BuildRequires: kf5-kwayland-devel
ede5ff2b 30BuildRequires: kp5-libkscreen-devel
102dcee5 31BuildRequires: kp5-plasma-workspace-devel
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
AM
50 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
51 ../
0ac77d42 52%ninja_build
ede5ff2b
AM
53
54%install
55rm -rf $RPM_BUILD_ROOT
0ac77d42 56%ninja_install -C build
ede5ff2b 57
6b7138ac 58%find_lang %{kpname} --all-name --with-kde
ede5ff2b
AM
59
60%clean
61rm -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
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
ede5ff2b
AM
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
33e78e64 81#%attr(755,root,root) %{_libdir}/qt5/plugins/kded_powerdevil.so
ede5ff2b
AM
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
33e78e64 92#%{_datadir}/kservices5/kded/powerdevil.desktop
ede5ff2b
AM
93%{_datadir}/kservices5/powerdevil*.desktop
94%{_datadir}/kservicetypes5/powerdevilaction.desktop
95%{_datadir}/polkit-1/actions/org.kde.powerdevil.backlighthelper.policy
33e78e64
WF
96
97/etc/dbus-1/system.d/org.kde.powerdevil.discretegpuhelper.conf
98/etc/xdg/autostart/powerdevil.desktop
33e78e64
WF
99%{_libdir}/libpowerdevilconfigcommonprivate.so
100%{_libdir}/libpowerdevilcore.so
101%{_libdir}/libpowerdevilui.so
33e78e64
WF
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.060066 seconds and 4 git commands to generate.