diff --git a/libksysguard-5.22.2.1_fix-processcore-on-gcc8.patch b/libksysguard-5.22.2.1_fix-processcore-on-gcc8.patch new file mode 100644 index 0000000..dcebad5 --- /dev/null +++ b/libksysguard-5.22.2.1_fix-processcore-on-gcc8.patch @@ -0,0 +1,24 @@ +From 47a9b6c58db012941a1c0e171c6abfdaef31acd1 Mon Sep 17 00:00:00 2001 +From: Troy Dawson +Date: Fri, 25 Jun 2021 06:43:04 -0700 +Subject: [PATCH] fix processcore on gcc8 + +--- + processcore/CMakeLists.txt | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/processcore/CMakeLists.txt b/processcore/CMakeLists.txt +index c28d364..d3da632 100644 +--- a/processcore/CMakeLists.txt ++++ b/processcore/CMakeLists.txt +@@ -36,6 +36,7 @@ target_link_libraries(processcore + KF5::CoreAddons + KF5::Service + ZLIB::ZLIB ++ $<$,$,9.0>>:stdc++fs> + ) + + if( ${CMAKE_SYSTEM_NAME} MATCHES "NetBSD" ) +-- +2.27.0 + diff --git a/libksysguard-5.25.5.tar.xz b/libksysguard-5.25.5.tar.xz new file mode 100644 index 0000000..4777c58 Binary files /dev/null and b/libksysguard-5.25.5.tar.xz differ diff --git a/libksysguard.spec b/libksysguard.spec new file mode 100644 index 0000000..4ff0b68 --- /dev/null +++ b/libksysguard.spec @@ -0,0 +1,150 @@ + +Name: libksysguard +Summary: Library for managing processes running on the system +Version: 5.25.5 +Release: 1 + +License: GPLv2+ +URL: https://invent.kde.org/plasma/%{name} + +%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 +Patch1: libksysguard-5.22.2.1_fix-processcore-on-gcc8.patch + +BuildRequires: extra-cmake-modules +BuildRequires: kf5-rpm-macros +BuildRequires: cmake(KF5CoreAddons) +BuildRequires: cmake(KF5Config) +BuildRequires: cmake(KF5I18n) +BuildRequires: cmake(KF5WindowSystem) +BuildRequires: cmake(KF5Completion) +BuildRequires: cmake(KF5Auth) +BuildRequires: cmake(KF5WidgetsAddons) +BuildRequires: cmake(KF5IconThemes) +BuildRequires: cmake(KF5ConfigWidgets) +BuildRequires: cmake(KF5Service) +BuildRequires: cmake(KF5GlobalAccel) +BuildRequires: cmake(KF5KIO) +BuildRequires: cmake(KF5Declarative) +BuildRequires: cmake(KF5NewStuff) +BuildRequires: cmake(KF5Plasma) +BuildRequires: qt5-qttools-devel +BuildRequires: qt5-qtbase-devel +BuildRequires: qt5-qtx11extras-devel +BuildRequires: qt5-qtwebchannel-devel +# We have this but didn't build +#BuildRequires: qt5-qtwebengine-devel + +BuildRequires: pkgconfig(libpcap) +BuildRequires: pkgconfig(libnl-3.0) pkgconfig(libnl-route-3.0) +BuildRequires: libXres-devel +BuildRequires: lm_sensors-devel +BuildRequires: zlib-devel + +Obsoletes: kf5-ksysguard < 5.1.95 +Provides: kf5-ksysguard = %{version}-%{release} + +Requires: %{name}-common = %{version}-%{release} +Conflicts: ksysguard-backend < 5.21.90 + +%description +KSysGuard library provides API to read and manage processes +running on the system. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +BuildRequires: qt5-qtbase-devel +Requires: cmake(KF5Config) +Requires: cmake(KF5I18n) +Requires: cmake(KF5IconThemes) +Obsoletes: kf5-ksysguard-devel < 5.1.95 +Provides: kf5-ksysguard-devel = %{version}-%{release} +Conflicts: kde-workspace-devel < 1:4.11.16-11 + +%package common +Summary: Runtime data files shared by libksysguard and ksysguard-libs +Conflicts: libksysguard < 5.2.1-2 +Conflicts: ksysguard < 5.2 + +%description common +%{summary}. + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%autosetup -n %{name}-%{version} -p1 + + +%build +mkdir %{_target_platform} +pushd %{_target_platform} +%{cmake_kf5} .. \ + -DKDE_INSTALL_INCLUDEDIR:PATH=%{_kf5_includedir} +popd +%make_build -C %{_target_platform} + + +%install +make install/fast DESTDIR=%{buildroot} -C %{_target_platform} + +%find_lang ksysguard_qt5 --with-qt --with-kde --all-name + + +%ldconfig_scriptlets + +%files -f ksysguard_qt5.lang +%license LICENSES +%{_kf5_libdir}/liblsofui.so.* +%{_kf5_libdir}/libprocessui.so.* +%{_kf5_libdir}/libprocesscore.so.* +%{_kf5_libdir}/libksignalplotter.so.* +%{_kf5_libdir}/libksgrd.so.* +%{_kf5_libdir}/libKSysGuardFormatter.so* +%{_kf5_libdir}/libKSysGuardSensors.so* +%{_kf5_libdir}/libKSysGuardSensorFaces.so* +%{_kf5_datadir}/ksysguard/ +%{_kf5_datadir}/qlogging-categories5/libksysguard.categories +%{_qt5_plugindir}/kpackage/packagestructure/sensorface_packagestructure.so +%{_qt5_plugindir}/designer/ksignalplotter5widgets.so +%{_qt5_plugindir}/designer/ksysguard*.so +%{_qt5_qmldir}/org/kde/ksysguard/ + +%{_kf5_libdir}/libKSysGuardSystemStats.so.* +%{_qt5_plugindir}/ksysguard/ +%{_libexecdir}/ksysguard/ +%{_kf5_datadir}/dbus-1/interfaces/org.kde.ksystemstats.xml + +%files common +%{_kf5_libexecdir}/kauth/ksysguardprocesslist_helper +%{_datadir}/dbus-1/system.d/org.kde.ksysguard.processlisthelper.conf +%{_datadir}/dbus-1/system-services/org.kde.ksysguard.processlisthelper.service +%{_datadir}/polkit-1/actions/org.kde.ksysguard.processlisthelper.policy +%{_datadir}/knsrcfiles/* + +%files devel +%{_kf5_includedir}/ksysguard/ +%{_kf5_libdir}/liblsofui.so +%{_kf5_libdir}/libprocessui.so +%{_kf5_libdir}/libprocesscore.so +%{_kf5_libdir}/libksignalplotter.so +%{_kf5_libdir}/libksgrd.so +%{_kf5_libdir}/cmake/KSysGuard/ +%{_kf5_libdir}/cmake/KF5SysGuard/ +%{_kf5_libdir}/libKSysGuardSystemStats.so + + +%changelog +* Thu Sep 08 2022 misaka00251 - 5.25.5-1 +- Upgrade package version to 5.25.5 + +* Fri Jul 15 2022 misaka00251 - 5.25.4-1 +- Init package (Thanks to fedora team) diff --git a/libksysguard.yml b/libksysguard.yml new file mode 100644 index 0000000..af5e48a --- /dev/null +++ b/libksysguard.yml @@ -0,0 +1,4 @@ +version_control: git +src_repo: https://invent.kde.org/plasma/libksysguard.git +tag_prefix: "" +separator: "."