]> git.pld-linux.org Git - packages/kp5-ksystemstats.git/blame - kp5-ksystemstats.spec
- updated to 5.27.11
[packages/kp5-ksystemstats.git] / kp5-ksystemstats.spec
CommitLineData
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
7Summary: ksystemstats
8Name: kp5-%{kpname}
187de526 9Version: 5.27.11
e9d5aea3 10Release: 1
0fda9c70
WF
11License: BSD Clause 2
12Group: X11/Libraries
e9d5aea3 13Source0: https://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz
187de526 14# Source0-md5: 06ecaee6cf15c3c78ce705190e65e65d
0fda9c70 15URL: http://www.kde.org/
e9d5aea3 16BuildRequires: Qt5Core-devel >= 5.15.0
4e2f1fda 17BuildRequires: cmake >= 3.16.0
0fda9c70 18BuildRequires: gettext-devel
e9d5aea3
WF
19BuildRequires: kf5-extra-cmake-modules >= 5.82
20BuildRequires: kf5-kcoreaddons-devel >= 5.85.0
21BuildRequires: kf5-kdbusaddons-devel >= 5.82
22BuildRequires: kf5-kio-devel >= 5.82
23BuildRequires: kf5-networkmanager-qt-devel >= 5.82
24BuildRequires: kf5-solid-devel >= 5.85.0
0fda9c70
WF
25BuildRequires: kp5-libksysguard-devel
26BuildRequires: libnl-devel
e9d5aea3
WF
27BuildRequires: udev-devel
28
0fda9c70
WF
29BuildRequires: ninja
30BuildRequires: pkgconfig
e9d5aea3
WF
31BuildRequires: qt5-build >= %{qtver}
32BuildRequires: qt5-qmake
0fda9c70
WF
33BuildRequires: rpmbuild(macros) >= 1.596
34BuildRequires: tar >= 1:1.22
35BuildRequires: xz
36BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38%description
39KSystemStats is a daemon that collects statistics about the running
40system.
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}
54ctest
55%endif
56
0fda9c70
WF
57%install
58rm -rf $RPM_BUILD_ROOT
59install -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
65rm -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
This page took 0.772997 seconds and 4 git commands to generate.