Compare commits
10 Commits
8192235223
...
4607dc7c91
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4607dc7c91 | ||
|
|
f7ba6f7f3f | ||
|
|
52a6bab896 | ||
|
|
1127950f67 | ||
|
|
3df8ef7a4b | ||
|
|
584caba421 | ||
|
|
d2beae15e3 | ||
|
|
23637dbbf8 | ||
|
|
ad4421ea38 | ||
|
|
4a8735c628 |
41
0001-fix-build-error.patch
Normal file
41
0001-fix-build-error.patch
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
From bcb66e042058c44dc3b2018ddfb2ce41e6bdc079 Mon Sep 17 00:00:00 2001
|
||||||
|
From: liuzhilin <liuzhilin@uniontech.com>
|
||||||
|
Date: Fri, 12 Apr 2024 16:31:04 +0800
|
||||||
|
Subject: [PATCH] fix-build-error
|
||||||
|
|
||||||
|
---
|
||||||
|
deepin-system-monitor-main/CMakeLists.txt | 3 +++
|
||||||
|
deepin-system-monitor-plugin-popup/CMakeLists.txt | 3 +++
|
||||||
|
2 files changed, 6 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/deepin-system-monitor-main/CMakeLists.txt b/deepin-system-monitor-main/CMakeLists.txt
|
||||||
|
index 035dad5..0f95bf2 100644
|
||||||
|
--- a/deepin-system-monitor-main/CMakeLists.txt
|
||||||
|
+++ b/deepin-system-monitor-main/CMakeLists.txt
|
||||||
|
@@ -68,6 +68,9 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/3rdparty)
|
||||||
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/include)
|
||||||
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/libsmartcols/src)
|
||||||
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../)
|
||||||
|
+include_directories(/usr/include/dtk5/DWidget/)
|
||||||
|
+include_directories(/usr/include/dtk5/DCore/)
|
||||||
|
+include_directories(/usr/include/dtk5/DGui/)
|
||||||
|
|
||||||
|
#安全测试加固编译参数
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -z relro -z now -z noexecstack -pie")
|
||||||
|
diff --git a/deepin-system-monitor-plugin-popup/CMakeLists.txt b/deepin-system-monitor-plugin-popup/CMakeLists.txt
|
||||||
|
index c430c98..0d0f7f8 100644
|
||||||
|
--- a/deepin-system-monitor-plugin-popup/CMakeLists.txt
|
||||||
|
+++ b/deepin-system-monitor-plugin-popup/CMakeLists.txt
|
||||||
|
@@ -278,6 +278,9 @@ target_include_directories(${PROJECT_NAME} PUBLIC
|
||||||
|
# ${Qt5Widgets_INCLUDE_DIRS}
|
||||||
|
# ${DtkWidget_INCLUDE_DIRS}
|
||||||
|
${DdeDockInterface_INCLUDE_DIRS}
|
||||||
|
+ /usr/include/dtk5/DWidget/
|
||||||
|
+ /usr/include/dtk5/DCore/
|
||||||
|
+ /usr/include/dtk5/DGui/
|
||||||
|
)
|
||||||
|
target_link_libraries(${PROJECT_NAME}
|
||||||
|
Qt5::Core
|
||||||
|
--
|
||||||
|
2.39.3
|
||||||
|
|
||||||
@ -1,17 +1,45 @@
|
|||||||
From 388df3fe9ed94a5c3aad00a15e9f1447ffac4139 Mon Sep 17 00:00:00 2001
|
From dcef19e4e0a1185e5b88fc039fde7f1f4d9c03c0 Mon Sep 17 00:00:00 2001
|
||||||
From: leeffo <leeffo@yeah.net>
|
From: leeffo <liweiganga@uniontech.com>
|
||||||
Date: Fri, 11 Nov 2022 14:50:33 +0800
|
Date: Mon, 24 Jul 2023 18:15:15 +0800
|
||||||
Subject: [PATCH] procps-ng update 4.0.0
|
Subject: [PATCH 1/2] procps-ng update 4.0.0
|
||||||
|
|
||||||
---
|
---
|
||||||
src/CMakeLists.txt | 2 +-
|
deepin-system-monitor-main/CMakeLists.txt | 2 +-
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
deepin-system-monitor-plugin-popup/CMakeLists.txt | 2 +-
|
||||||
|
tests/CMakeLists.txt | 2 +-
|
||||||
|
3 files changed, 3 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
diff --git a/deepin-system-monitor-main/CMakeLists.txt b/deepin-system-monitor-main/CMakeLists.txt
|
||||||
index 3a09f02..42e55fb 100644
|
index 07d25ec..035dad5 100644
|
||||||
--- a/src/CMakeLists.txt
|
--- a/deepin-system-monitor-main/CMakeLists.txt
|
||||||
+++ b/src/CMakeLists.txt
|
+++ b/deepin-system-monitor-main/CMakeLists.txt
|
||||||
@@ -27,7 +27,7 @@ find_package(DtkCore REQUIRED)
|
@@ -52,7 +52,7 @@ find_package(DtkCore REQUIRED)
|
||||||
|
find_package(DtkGui REQUIRED)
|
||||||
|
find_package(DtkWidget REQUIRED)
|
||||||
|
find_library(LIB_PCAP NAMES pcap REQUIRED)
|
||||||
|
-find_library(LIB_PROCPS NAMES procps REQUIRED)
|
||||||
|
+find_library(LIB_PROCPS NAMES proc2 REQUIRED)
|
||||||
|
find_library(LIB_XCB NAMES xcb REQUIRED)
|
||||||
|
find_library(LIB_XEXT NAMES Xext REQUIRED)
|
||||||
|
find_library(LIB_ICCCM NAMES xcb-icccm REQUIRED)
|
||||||
|
diff --git a/deepin-system-monitor-plugin-popup/CMakeLists.txt b/deepin-system-monitor-plugin-popup/CMakeLists.txt
|
||||||
|
index 45d29e8..c430c98 100644
|
||||||
|
--- a/deepin-system-monitor-plugin-popup/CMakeLists.txt
|
||||||
|
+++ b/deepin-system-monitor-plugin-popup/CMakeLists.txt
|
||||||
|
@@ -43,7 +43,7 @@ find_package(DtkCore REQUIRED)
|
||||||
|
find_package(DtkGui REQUIRED)
|
||||||
|
find_package(DtkWidget REQUIRED)
|
||||||
|
find_package(Qt5Svg REQUIRED)
|
||||||
|
-find_library(LIB_PROPS NAMES procps REQUIRED)
|
||||||
|
+find_library(LIB_PROPS NAMES proc2 REQUIRED)
|
||||||
|
find_library(LIB_XCB NAMES xcb REQUIRED)
|
||||||
|
find_library(LIB_XEXT NAMES Xext REQUIRED)
|
||||||
|
find_library(LIB_ICCCM NAMES xcb-icccm REQUIRED)
|
||||||
|
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
|
||||||
|
index 9469596..fc92bf3 100644
|
||||||
|
--- a/tests/CMakeLists.txt
|
||||||
|
+++ b/tests/CMakeLists.txt
|
||||||
|
@@ -70,7 +70,7 @@ find_package(DtkCore REQUIRED)
|
||||||
find_package(DtkGui REQUIRED)
|
find_package(DtkGui REQUIRED)
|
||||||
find_package(DtkWidget REQUIRED)
|
find_package(DtkWidget REQUIRED)
|
||||||
find_library(LIB_PCAP NAMES pcap REQUIRED)
|
find_library(LIB_PCAP NAMES pcap REQUIRED)
|
||||||
|
|||||||
@ -0,0 +1,28 @@
|
|||||||
|
From f977aeddbf2283a856bf5bb738f3e119bc0fe087 Mon Sep 17 00:00:00 2001
|
||||||
|
From: leeffo <liweiganga@uniontech.com>
|
||||||
|
Date: Mon, 24 Jul 2023 18:15:35 +0800
|
||||||
|
Subject: [PATCH 2/2] Remove all symbol table and relocation information from
|
||||||
|
the executable
|
||||||
|
|
||||||
|
---
|
||||||
|
CMakeLists.txt | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index f9f71cd..16330d1 100644
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -22,8 +22,8 @@ else()
|
||||||
|
# -Wl, -O2 Enable linker optimizations
|
||||||
|
# -Wl, --gc-sections Remove unused code resulting from -fdsta-sections and
|
||||||
|
# -ffunction-sections
|
||||||
|
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -O2 -Wl,--gc-sections")
|
||||||
|
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -O2 -Wl,--gc-sections")
|
||||||
|
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -O2 -Wl,--gc-sections -s ")
|
||||||
|
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -O2 -Wl,--gc-sections -s")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
#是否开启Wayland编译
|
||||||
|
--
|
||||||
|
2.20.1
|
||||||
|
|
||||||
@ -0,0 +1,82 @@
|
|||||||
|
From 8f76d34ed203bc07d20ba0283c95903de5347888 Mon Sep 17 00:00:00 2001
|
||||||
|
From: yangxianzhao <yangxianzhao@uniontech.com>
|
||||||
|
Date: Thu, 6 Apr 2023 14:50:02 +0800
|
||||||
|
Subject: [PATCH] Fix incomplete display of the system monitor when the
|
||||||
|
resolution is 1020*768
|
||||||
|
|
||||||
|
---
|
||||||
|
src/CMakeLists.txt | 1 +
|
||||||
|
src/constant.h | 27 +++++++++++++++++++++++++++
|
||||||
|
src/main.cpp | 3 ++-
|
||||||
|
3 files changed, 30 insertions(+), 1 deletion(-)
|
||||||
|
create mode 100644 src/constant.h
|
||||||
|
|
||||||
|
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||||
|
index 5df6473..b71fced 100644
|
||||||
|
--- a/src/CMakeLists.txt
|
||||||
|
+++ b/src/CMakeLists.txt
|
||||||
|
@@ -59,6 +59,7 @@ set(HPP_GLOBAL
|
||||||
|
compact_disk_monitor.h
|
||||||
|
smooth_curve_generator.h
|
||||||
|
settings.h
|
||||||
|
+ constant.h
|
||||||
|
)
|
||||||
|
|
||||||
|
set(CPP_GLOBAL
|
||||||
|
diff --git a/src/constant.h b/src/constant.h
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000..9a2967d
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/src/constant.h
|
||||||
|
@@ -0,0 +1,27 @@
|
||||||
|
+/*
|
||||||
|
+* Copyright (C) 2011 ~ 2020 Uniontech Software Technology Co.,Ltd
|
||||||
|
+*
|
||||||
|
+* Author: Wang Yong <wangyong@deepin.com>
|
||||||
|
+* Maintainer: maojj <maojunjie@uniontech.com>
|
||||||
|
+*
|
||||||
|
+* This program is free software: you can redistribute it and/or modify
|
||||||
|
+* it under the terms of the GNU General Public License as published by
|
||||||
|
+* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
+* any later version.
|
||||||
|
+* This program is distributed in the hope that it will be useful,
|
||||||
|
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
+* GNU General Public License for more details.
|
||||||
|
+* You should have received a copy of the GNU General Public License
|
||||||
|
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
+*/
|
||||||
|
+
|
||||||
|
+#ifndef CONSTANT_H
|
||||||
|
+#define CONSTANT_H
|
||||||
|
+
|
||||||
|
+namespace Constant {
|
||||||
|
+const int WINDOW_MIN_WIDTH = 900;
|
||||||
|
+const int WINDOW_MIN_HEIGHT = 750;
|
||||||
|
+}; // namespace Constant
|
||||||
|
+
|
||||||
|
+#endif
|
||||||
|
diff --git a/src/main.cpp b/src/main.cpp
|
||||||
|
index 10c7725..bd5b407 100644
|
||||||
|
--- a/src/main.cpp
|
||||||
|
+++ b/src/main.cpp
|
||||||
|
@@ -23,6 +23,7 @@
|
||||||
|
#include "settings.h"
|
||||||
|
#include "gui/main_window.h"
|
||||||
|
#include "common/perf.h"
|
||||||
|
+#include "constant.h"
|
||||||
|
|
||||||
|
#include <DApplication>
|
||||||
|
#include <DApplicationSettings>
|
||||||
|
@@ -85,7 +86,7 @@ int main(int argc, char *argv[])
|
||||||
|
&DApplication::newInstanceStarted,
|
||||||
|
&mw,
|
||||||
|
&MainWindow::activateWindow);
|
||||||
|
-
|
||||||
|
+ mw.setMinimumSize(QSize(Constant::WINDOW_MIN_WIDTH, Constant::WINDOW_MIN_HEIGHT));
|
||||||
|
Dtk::Widget::moveToCenter(&mw);
|
||||||
|
mw.show();
|
||||||
|
|
||||||
|
--
|
||||||
|
2.18.4
|
||||||
|
|
||||||
121
0003-feat-add-build-option-to-disable-wayland-support.patch
Normal file
121
0003-feat-add-build-option-to-disable-wayland-support.patch
Normal file
@ -0,0 +1,121 @@
|
|||||||
|
From 982cf2a7b7a60843f17b103ecafa150dd4f557da Mon Sep 17 00:00:00 2001
|
||||||
|
From: leeffo <liweiganga@uniontech.com>
|
||||||
|
Date: Tue, 25 Jul 2023 11:33:00 +0800
|
||||||
|
Subject: [PATCH] feat: add build option to disable wayland support
|
||||||
|
|
||||||
|
---
|
||||||
|
.../gui/xwin_kill_preview_widget.cpp | 26 +++++++++++++++----
|
||||||
|
1 file changed, 21 insertions(+), 5 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/deepin-system-monitor-main/gui/xwin_kill_preview_widget.cpp b/deepin-system-monitor-main/gui/xwin_kill_preview_widget.cpp
|
||||||
|
index 077aa1e..26ec724 100644
|
||||||
|
--- a/deepin-system-monitor-main/gui/xwin_kill_preview_widget.cpp
|
||||||
|
+++ b/deepin-system-monitor-main/gui/xwin_kill_preview_widget.cpp
|
||||||
|
@@ -37,12 +37,14 @@ XWinKillPreviewWidget::XWinKillPreviewWidget(QWidget *parent) : QWidget(parent)
|
||||||
|
{
|
||||||
|
// new window manager instance
|
||||||
|
m_wminfo = new WMInfo();
|
||||||
|
-//不再使用CMakeList开关宏的方式,改用全局变量运行时控制
|
||||||
|
-//WaylandCentered定义在common/common.h中,在main函数开头进行初始化判断
|
||||||
|
+// 如果在编译时选择支持Wayland,运行时会由全局变量WaylandCentered控制
|
||||||
|
+// WaylandCentered定义在common/common.h中,在main函数开头进行初始化判断
|
||||||
|
+#ifdef USE_DEEPIN_WAYLAND
|
||||||
|
if (WaylandCentered) {
|
||||||
|
m_connectionThread = new QThread(this);
|
||||||
|
m_connectionThreadObject = new ConnectionThread();
|
||||||
|
}
|
||||||
|
+#endif // USE_DEEPIN_WAYLAND
|
||||||
|
|
||||||
|
// init ui components & connections
|
||||||
|
initUI();
|
||||||
|
@@ -66,11 +68,13 @@ XWinKillPreviewWidget::~XWinKillPreviewWidget()
|
||||||
|
releaseMouse();
|
||||||
|
releaseKeyboard();
|
||||||
|
delete m_wminfo;
|
||||||
|
+#ifdef USE_DEEPIN_WAYLAND
|
||||||
|
if (WaylandCentered) {
|
||||||
|
m_connectionThread->quit();
|
||||||
|
m_connectionThread->wait();
|
||||||
|
m_connectionThreadObject->deleteLater();
|
||||||
|
}
|
||||||
|
+#endif // USE_DEEPIN_WAYLAND
|
||||||
|
}
|
||||||
|
|
||||||
|
// mouse press event
|
||||||
|
@@ -82,6 +86,7 @@ void XWinKillPreviewWidget::mousePressEvent(QMouseEvent *event)
|
||||||
|
}
|
||||||
|
// get the list of windows under cursor in stacked order when mouse pressed
|
||||||
|
auto pos = QCursor::pos();
|
||||||
|
+#ifdef USE_DEEPIN_WAYLAND
|
||||||
|
if (WaylandCentered) {
|
||||||
|
double ratio = QGuiApplication::primaryScreen()->devicePixelRatio(); // 获得当前的缩放比例
|
||||||
|
QRect screenRect;
|
||||||
|
@@ -119,7 +124,9 @@ void XWinKillPreviewWidget::mousePressEvent(QMouseEvent *event)
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
- } else {
|
||||||
|
+ }
|
||||||
|
+#endif // USE_DEEPIN_WAYLAND
|
||||||
|
+ if (!WaylandCentered) {
|
||||||
|
double ratio = QGuiApplication::primaryScreen()->devicePixelRatio(); // 获得当前的缩放比例
|
||||||
|
QRect screenRect;
|
||||||
|
for (auto screen : QApplication::screens()) {
|
||||||
|
@@ -165,6 +172,7 @@ void XWinKillPreviewWidget::mousePressEvent(QMouseEvent *event)
|
||||||
|
// mouse move event handler
|
||||||
|
void XWinKillPreviewWidget::mouseMoveEvent(QMouseEvent *)
|
||||||
|
{
|
||||||
|
+#ifdef USE_DEEPIN_WAYLAND
|
||||||
|
if (WaylandCentered) {
|
||||||
|
double ratio = QGuiApplication::primaryScreen()->devicePixelRatio(); // 获得当前的缩放比例
|
||||||
|
auto pos = QCursor::pos();
|
||||||
|
@@ -236,7 +244,9 @@ void XWinKillPreviewWidget::mouseMoveEvent(QMouseEvent *)
|
||||||
|
bg->clearSelection();
|
||||||
|
emit cursorUpdated(m_defaultCursor);
|
||||||
|
}
|
||||||
|
- } else {
|
||||||
|
+ }
|
||||||
|
+#endif // USE_DEEPIN_WAYLAND
|
||||||
|
+ if (!WaylandCentered) {
|
||||||
|
double ratio = QGuiApplication::primaryScreen()->devicePixelRatio(); // 获得当前的缩放比例
|
||||||
|
auto pos = QCursor::pos();
|
||||||
|
QRect screenRect;
|
||||||
|
@@ -351,9 +361,10 @@ void XWinKillPreviewWidget::initUI()
|
||||||
|
// snapshot current scree
|
||||||
|
auto pixmap = screen->grabWindow(m_wminfo->getRootWindow());
|
||||||
|
|
||||||
|
+#ifdef USE_DEEPIN_WAYLAND
|
||||||
|
if (WaylandCentered)
|
||||||
|
pixmap = screen->grabWindow(m_windowStates.end()->windowId);
|
||||||
|
-
|
||||||
|
+#endif // USE_DEEPIN_WAYLAND
|
||||||
|
pixmap = pixmap.copy(geom.x(), geom.y(), static_cast<int>(geom.width() * devicePixelRatioF()), static_cast<int>(geom.height() * devicePixelRatioF()));
|
||||||
|
// create preview background widget for each screen
|
||||||
|
auto *background = new XWinKillPreviewBackgroundWidget(pixmap, this);
|
||||||
|
@@ -378,6 +389,7 @@ void XWinKillPreviewWidget::initUI()
|
||||||
|
// wayland协议下建立连接
|
||||||
|
void XWinKillPreviewWidget::initConnections()
|
||||||
|
{
|
||||||
|
+#ifdef USE_DEEPIN_WAYLAND
|
||||||
|
if (WaylandCentered) {
|
||||||
|
connect(m_connectionThreadObject, &ConnectionThread::connected, this,
|
||||||
|
[this] {
|
||||||
|
@@ -394,7 +406,10 @@ void XWinKillPreviewWidget::initConnections()
|
||||||
|
|
||||||
|
m_connectionThreadObject->initConnection();
|
||||||
|
}
|
||||||
|
+#endif // USE_DEEPIN_WAYLAND
|
||||||
|
}
|
||||||
|
+
|
||||||
|
+#ifdef USE_DEEPIN_WAYLAND
|
||||||
|
//打印当前窗口信息接口
|
||||||
|
void XWinKillPreviewWidget::print_window_states(const QVector<ClientManagement::WindowState> &m_windowStates)
|
||||||
|
{
|
||||||
|
@@ -447,3 +462,4 @@ void XWinKillPreviewWidget::setupRegistry(Registry *registry)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
+#endif // USE_DEEPIN_WAYLAND
|
||||||
|
--
|
||||||
|
2.20.1
|
||||||
|
|
||||||
Binary file not shown.
BIN
deepin-system-monitor-5.9.31.tar.gz
Normal file
BIN
deepin-system-monitor-5.9.31.tar.gz
Normal file
Binary file not shown.
@ -1,21 +1,17 @@
|
|||||||
##%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
%define pkgrelease 4
|
|
||||||
%if 0%{?openeuler}
|
|
||||||
%define specrelease %{pkgrelease}
|
|
||||||
%else
|
|
||||||
## allow specrelease to have configurable %%{?dist} tag in other distribution
|
|
||||||
%define specrelease %{pkgrelease}%{?dist}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Name: deepin-system-monitor
|
Name: deepin-system-monitor
|
||||||
Version: 5.8.11
|
Version: 5.9.31
|
||||||
|
|
||||||
Release: %{specrelease}
|
Release: 2
|
||||||
Summary: A more user-friendly system monitor
|
Summary: A more user-friendly system monitor
|
||||||
License: GPLv3
|
License: GPLv3
|
||||||
URL: https://github.com/linuxdeepin/deepin-system-monitor
|
URL: https://github.com/linuxdeepin/deepin-system-monitor
|
||||||
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
Patch0: 0001-procps-ng-update-4.0.0.patch
|
Patch0: 0001-procps-ng-update-4.0.0.patch
|
||||||
|
Patch1: 0002-Remove-all-symbol-table-and-relocation-information-f.patch
|
||||||
|
Patch2: 0003-feat-add-build-option-to-disable-wayland-support.patch
|
||||||
|
Patch3: 0001-fix-build-error.patch
|
||||||
|
|
||||||
BuildRequires: qt5-devel
|
BuildRequires: qt5-devel
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
@ -23,7 +19,6 @@ BuildRequires: cmake
|
|||||||
BuildRequires: dtkwidget-devel
|
BuildRequires: dtkwidget-devel
|
||||||
BuildRequires: dtkcore-devel
|
BuildRequires: dtkcore-devel
|
||||||
BuildRequires: pkgconfig(dtkgui)
|
BuildRequires: pkgconfig(dtkgui)
|
||||||
# BuildRequires: pkgconfig(dtkwm)
|
|
||||||
|
|
||||||
BuildRequires: procps-ng-devel
|
BuildRequires: procps-ng-devel
|
||||||
BuildRequires: pkgconfig(xcb)
|
BuildRequires: pkgconfig(xcb)
|
||||||
@ -45,12 +40,16 @@ BuildRequires: desktop-file-utils
|
|||||||
BuildRequires: libappstream-glib
|
BuildRequires: libappstream-glib
|
||||||
BuildRequires: deepin-gettext-tools
|
BuildRequires: deepin-gettext-tools
|
||||||
BuildRequires: qt5-qtbase-private-devel
|
BuildRequires: qt5-qtbase-private-devel
|
||||||
# BuildRequires: dtkwm-devel
|
|
||||||
# BuildRequires: qt5-qtmultimedia-devel
|
# BuildRequires: qt5-qtmultimedia-devel
|
||||||
# BuildRequires: dtkcore-devel >= 5.1
|
# BuildRequires: dtkcore-devel >= 5.1
|
||||||
BuildRequires: libicu-devel
|
BuildRequires: libicu-devel
|
||||||
BuildRequires: libnl3-devel
|
BuildRequires: libnl3-devel
|
||||||
BuildRequires: systemd-devel
|
BuildRequires: systemd-devel
|
||||||
|
BuildRequires: dde-qt-dbus-factory-devel
|
||||||
|
BuildRequires: gsettings-qt-devel
|
||||||
|
BuildRequires: kf5-kwayland-devel
|
||||||
|
BuildRequires: dde-dock-devel
|
||||||
|
BuildRequires: wayland-devel
|
||||||
# BuildRequires: pkgconfig(libnl-route-3)
|
# BuildRequires: pkgconfig(libnl-route-3)
|
||||||
#Requires: hicolor-icon-theme
|
#Requires: hicolor-icon-theme
|
||||||
Recommends: deepin-manual
|
Recommends: deepin-manual
|
||||||
@ -60,21 +59,23 @@ Recommends: deepin-manual
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
# %setup -q
|
|
||||||
####sed -i 's|lrelease|lrelease-qt5|' translations/translate_generation.sh
|
|
||||||
|
|
||||||
# %patch0 -p1
|
sed -i 's:/usr/lib/:%{_libdir}/:' deepin-system-monitor-plugin/CMakeLists.txt
|
||||||
|
sed -i 's:/usr/lib/x86_64-linux-gnu/qt5/bin/:%{_qt5_bindir}/:' \
|
||||||
|
deepin-system-monitor-daemon/translations/translate_generation.sh \
|
||||||
|
deepin-system-monitor-plugin/translations/translate_generation.sh
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export PATH=%{_qt5_bindir}:$PATH
|
|
||||||
sed -i "s|^cmake_minimum_required.*|cmake_minimum_required(VERSION 3.0)|" $(find . -name "CMakeLists.txt")
|
sed -i "s|^cmake_minimum_required.*|cmake_minimum_required(VERSION 3.0)|" $(find . -name "CMakeLists.txt")
|
||||||
mkdir build && pushd build
|
%cmake \
|
||||||
%cmake -DCMAKE_BUILD_TYPE=Release ../ -DAPP_VERSION=%{version} -DVERSION=%{version}
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
%make_build
|
-DUSE_DEEPIN_WAYLAND=OFF
|
||||||
popd
|
|
||||||
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install -C build INSTALL_ROOT="%buildroot"
|
%make_install INSTALL_ROOT="%buildroot"
|
||||||
|
|
||||||
# %check
|
# %check
|
||||||
# desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop ||:
|
# desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop ||:
|
||||||
@ -99,12 +100,37 @@ fi
|
|||||||
%caps(cap_kill,cap_net_raw,cap_dac_read_search,cap_sys_ptrace=+ep) %{_bindir}/%{name}
|
%caps(cap_kill,cap_net_raw,cap_dac_read_search,cap_sys_ptrace=+ep) %{_bindir}/%{name}
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{_datadir}/applications/%{name}.desktop
|
%{_datadir}/applications/%{name}.desktop
|
||||||
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
|
#%%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
|
||||||
%{_datadir}/%{name}/translations/*.qm
|
%{_datadir}/%{name}/translations/*.qm
|
||||||
%{_datadir}/polkit-1/actions/com.deepin.pkexec.deepin-system-monitor.policy
|
%{_datadir}/polkit-1/actions/com.deepin.pkexec.deepin-system-monitor.policy
|
||||||
%{_datadir}/deepin-manual/manual-assets/application/deepin-system-monitor/system-monitor/*
|
%{_datadir}/deepin-manual/manual-assets/application/deepin-system-monitor/system-monitor/*
|
||||||
|
%{_datadir}/glib-2.0/schemas/
|
||||||
|
%{_libdir}/dde-dock/plugins/libdeepin-system-monitor-plugin.so
|
||||||
|
%{_datadir}/%{name}-plugin/
|
||||||
|
%{_bindir}/%{name}-plugin-popup
|
||||||
|
%{_datadir}/dbus-1/services/
|
||||||
|
%{_datadir}/%{name}-plugin-popup/
|
||||||
|
%{_bindir}/%{name}-daemon
|
||||||
|
%{_sysconfdir}/xdg/autostart
|
||||||
|
%{_datadir}/%{name}-daemon/
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Apr 12 2024 liuzhilin <liuzhilin@uniontech.com> - 5.9.31-2
|
||||||
|
- fix-build-error
|
||||||
|
|
||||||
|
* Mon Jul 24 2023 leeffo <liweiganga@uniontech.com> - 5.9.31-1
|
||||||
|
- upgrade to version 5.9.31
|
||||||
|
|
||||||
|
* Mon Apr 10 2023 liweiganga <liweiganga@uniontech.com> - 5.8.28-1
|
||||||
|
- update: update to 5.8.28
|
||||||
|
|
||||||
|
* Thu Apr 06 2023 yangxianzhao <yangxianzhao@uniontech.com> - 5.8.11-6
|
||||||
|
- Fix incomplete display of the system monitor when the resolution is 1020 * 768
|
||||||
|
|
||||||
|
* Wed Mar 15 2023 liweiganga <liweiganga@uniontech.com> - 5.8.11-5
|
||||||
|
- feat: fix strip
|
||||||
|
|
||||||
* Fri Feb 10 2023 liweiganga <liweiganga@uniontech.com> - 5.8.11-4
|
* Fri Feb 10 2023 liweiganga <liweiganga@uniontech.com> - 5.8.11-4
|
||||||
- feat: update changes due to procps-ng upgrade
|
- feat: update changes due to procps-ng upgrade
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user