diff --git a/ksystemstats-5.25.5.tar.xz b/ksystemstats-5.25.5.tar.xz new file mode 100644 index 0000000..6164a3f Binary files /dev/null and b/ksystemstats-5.25.5.tar.xz differ diff --git a/ksystemstats.spec b/ksystemstats.spec new file mode 100644 index 0000000..78de9fa --- /dev/null +++ b/ksystemstats.spec @@ -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 - 5.25.5-1 +- Init package diff --git a/ksystemstats.yaml b/ksystemstats.yaml new file mode 100644 index 0000000..3a42412 --- /dev/null +++ b/ksystemstats.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: KDE/ksystemstats +tag_prefix: "^v" +separator: "."