]>
Commit | Line | Data |
---|---|---|
cb24d086 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
187de526 | 4 | %define kdeplasmaver 5.27.11 |
4ce27672 | 5 | %define qtver 5.15.2 |
0fda9c70 WF |
6 | %define kpname ksystemstats |
7 | Summary: ksystemstats | |
8 | Name: kp5-%{kpname} | |
187de526 | 9 | Version: 5.27.11 |
e9d5aea3 | 10 | Release: 1 |
0fda9c70 WF |
11 | License: BSD Clause 2 |
12 | Group: X11/Libraries | |
e9d5aea3 | 13 | Source0: https://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz |
187de526 | 14 | # Source0-md5: 06ecaee6cf15c3c78ce705190e65e65d |
0fda9c70 | 15 | URL: http://www.kde.org/ |
e9d5aea3 | 16 | BuildRequires: Qt5Core-devel >= 5.15.0 |
4e2f1fda | 17 | BuildRequires: cmake >= 3.16.0 |
0fda9c70 | 18 | BuildRequires: gettext-devel |
e9d5aea3 WF |
19 | BuildRequires: kf5-extra-cmake-modules >= 5.82 |
20 | BuildRequires: kf5-kcoreaddons-devel >= 5.85.0 | |
21 | BuildRequires: kf5-kdbusaddons-devel >= 5.82 | |
22 | BuildRequires: kf5-kio-devel >= 5.82 | |
23 | BuildRequires: kf5-networkmanager-qt-devel >= 5.82 | |
24 | BuildRequires: kf5-solid-devel >= 5.85.0 | |
0fda9c70 WF |
25 | BuildRequires: kp5-libksysguard-devel |
26 | BuildRequires: libnl-devel | |
e9d5aea3 WF |
27 | BuildRequires: udev-devel |
28 | ||
0fda9c70 WF |
29 | BuildRequires: ninja |
30 | BuildRequires: pkgconfig | |
e9d5aea3 WF |
31 | BuildRequires: qt5-build >= %{qtver} |
32 | BuildRequires: qt5-qmake | |
0fda9c70 WF |
33 | BuildRequires: rpmbuild(macros) >= 1.596 |
34 | BuildRequires: tar >= 1:1.22 | |
35 | BuildRequires: xz | |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
37 | ||
38 | %description | |
39 | KSystemStats is a daemon that collects statistics about the running | |
40 | system. | |
41 | ||
42 | %prep | |
43 | %setup -q -n %{kpname}-%{version} | |
44 | ||
45 | %build | |
4e2f1fda WF |
46 | %cmake -B build \ |
47 | -G Ninja \ | |
cb24d086 | 48 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
0fda9c70 | 49 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
4e2f1fda WF |
50 | -DHTML_INSTALL_DIR=%{_kdedocdir} |
51 | %ninja_build -C build | |
0fda9c70 | 52 | |
cb24d086 WF |
53 | %if %{with tests} |
54 | ctest | |
55 | %endif | |
56 | ||
0fda9c70 WF |
57 | %install |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | install -d $RPM_BUILD_ROOT%{_iconsdir}/{breeze-dark,breeze} | |
60 | %ninja_install -C build | |
61 | ||
62 | %find_lang %{kpname} --all-name --with-kde | |
63 | ||
64 | %clean | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %files -f %{kpname}.lang | |
68 | %defattr(644,root,root,755) | |
69 | %attr(755,root,root) %{_bindir}/kstatsviewer | |
70 | %attr(755,root,root) %{_bindir}/ksystemstats | |
71 | %{systemduserunitdir}/plasma-ksystemstats.service | |
e9d5aea3 WF |
72 | %{_libdir}/qt5/plugins/ksystemstats |
73 | %{_datadir}/dbus-1/services/org.kde.ksystemstats.service |