91 lines
2.4 KiB
RPMSpec
91 lines
2.4 KiB
RPMSpec
Name: ksystemstats
|
|
Version: 5.27.10
|
|
Release: 1
|
|
Summary: KSystemStats is a daemon that collects statistics about the running system.
|
|
License: GPLv2 or GPLv3
|
|
URL: https://invent.kde.org/plasma/%{name}
|
|
|
|
%global majmin %(echo %{version} | cut -d. -f1-2)
|
|
%global revision %(echo %{version} | cut -d. -f3)
|
|
%if %{revision} >= 50
|
|
%global stable unstable
|
|
%else
|
|
%global stable stable
|
|
%endif
|
|
|
|
Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{name}-%{version}.tar.xz
|
|
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: libappstream-glib
|
|
BuildRequires: libksysguard-devel >= %{majmin}
|
|
|
|
BuildRequires: kf5-rpm-macros
|
|
# macros in systemd
|
|
BuildRequires: systemd
|
|
BuildRequires: extra-cmake-modules >= 5.82
|
|
BuildRequires: cmake(KF5Config)
|
|
BuildRequires: cmake(KF5CoreAddons)
|
|
BuildRequires: cmake(KF5DBusAddons)
|
|
BuildRequires: cmake(KF5DocTools)
|
|
BuildRequires: cmake(KF5I18n)
|
|
BuildRequires: cmake(KF5IconThemes)
|
|
BuildRequires: cmake(KF5ItemViews)
|
|
BuildRequires: cmake(KF5KIO)
|
|
BuildRequires: cmake(KF5NewStuff)
|
|
BuildRequires: cmake(KF5Notifications)
|
|
BuildRequires: cmake(KF5Solid)
|
|
BuildRequires: cmake(KF5WindowSystem)
|
|
BuildRequires: cmake(KF5NetworkManagerQt)
|
|
BuildRequires: qt5-qtbase-devel
|
|
BuildRequires: libnl3-devel
|
|
BuildRequires: lm_sensors-devel
|
|
BuildRequires: systemd-devel
|
|
BuildRequires: pkgconfig(libpcap)
|
|
|
|
%description
|
|
KSystemStats is a daemon that collects statistics about the running system.
|
|
|
|
%package devel
|
|
Summary: Developer files for %{name}
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
%description devel
|
|
%{summary}.
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{version}
|
|
|
|
|
|
%build
|
|
mkdir %{_target_platform}
|
|
pushd %{_target_platform}
|
|
%{cmake_kf5} ..
|
|
popd
|
|
%make_build -C %{_target_platform}
|
|
|
|
|
|
%install
|
|
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
|
%find_lang ksystemstats_plugins
|
|
|
|
|
|
%files -f ksystemstats_plugins.lang
|
|
%doc README.md
|
|
%license LICENSES/*
|
|
%{_kf5_bindir}/ksystemstats
|
|
%{_kf5_bindir}/kstatsviewer
|
|
%{_datadir}/dbus-1/services/org.kde.ksystemstats.service
|
|
%{_userunitdir}/plasma-ksystemstats.service
|
|
%{_qt5_plugindir}/ksystemstats/
|
|
|
|
|
|
%changelog
|
|
* Mon Jan 08 2024 zhangxianting <zhangxianting@unintech.com> - 5.27.10-1
|
|
- Upgrade to 5.27.10
|
|
|
|
* Thu Sep 28 2023 misaka00251 <liuxin@iscas.ac.cn> - 5.27.6-1
|
|
- Upgrade to 5.27.6
|
|
|
|
* Wed Jul 20 2022 misaka00251 <misaka00251@misakanet.cn> - 5.25.5-1
|
|
- Init package
|