!1 Init package
From: @misaka00251 Reviewed-by: @panchenbo Signed-off-by: @panchenbo
This commit is contained in:
commit
dc9665d9ef
BIN
ksystemstats-5.25.5.tar.xz
Normal file
BIN
ksystemstats-5.25.5.tar.xz
Normal file
Binary file not shown.
84
ksystemstats.spec
Normal file
84
ksystemstats.spec
Normal file
@ -0,0 +1,84 @@
|
|||||||
|
Name: ksystemstats
|
||||||
|
Version: 5.25.5
|
||||||
|
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
|
||||||
|
* Wed Jul 20 2022 misaka00251 <misaka00251@misakanet.cn> - 5.25.5-1
|
||||||
|
- Init package
|
||||||
4
ksystemstats.yaml
Normal file
4
ksystemstats.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: KDE/ksystemstats
|
||||||
|
tag_prefix: "^v"
|
||||||
|
separator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user