Init package
This commit is contained in:
parent
dd120f8099
commit
01bdf9d6d0
24
libksysguard-5.22.2.1_fix-processcore-on-gcc8.patch
Normal file
24
libksysguard-5.22.2.1_fix-processcore-on-gcc8.patch
Normal file
@ -0,0 +1,24 @@
|
||||
From 47a9b6c58db012941a1c0e171c6abfdaef31acd1 Mon Sep 17 00:00:00 2001
|
||||
From: Troy Dawson <tdawson@redhat.com>
|
||||
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
|
||||
+ $<$<AND:$<CXX_COMPILER_ID:GNU>,$<VERSION_LESS:$<CXX_COMPILER_VERSION>,9.0>>:stdc++fs>
|
||||
)
|
||||
|
||||
if( ${CMAKE_SYSTEM_NAME} MATCHES "NetBSD" )
|
||||
--
|
||||
2.27.0
|
||||
|
||||
BIN
libksysguard-5.25.4.tar.xz
Normal file
BIN
libksysguard-5.25.4.tar.xz
Normal file
Binary file not shown.
147
libksysguard.spec
Normal file
147
libksysguard.spec
Normal file
@ -0,0 +1,147 @@
|
||||
|
||||
Name: libksysguard
|
||||
Summary: Library for managing processes running on the system
|
||||
Version: 5.25.4
|
||||
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
|
||||
* Fri Jul 15 2022 misaka00251 <misaka00251@misakanet.cn> - 5.25.4-1
|
||||
- Init package (Thanks to fedora team)
|
||||
4
libksysguard.yml
Normal file
4
libksysguard.yml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: git
|
||||
src_repo: https://invent.kde.org/plasma/libksysguard.git
|
||||
tag_prefix: ""
|
||||
separator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user