From 0a1b2b498b51370b43b2cd0223c48d6c696c8320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=E9=B8=BF=E5=AE=87?= Date: Mon, 16 Jun 2025 16:18:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(rpm)=EF=BC=9A=E6=9B=B4=E6=96=B0=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8F=B7=E8=87=B3=200.9.6-6=EF=BC=8C=E5=90=AF?= =?UTF-8?q?=E7=94=A8=E8=87=AA=E5=8A=A8=E6=8F=90=E4=BE=9B=E5=B9=B6=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=20Electron=20=E5=86=85=E9=83=A8=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 史鸿宇 --- build/linux/euler-copilot-web.spec | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/build/linux/euler-copilot-web.spec b/build/linux/euler-copilot-web.spec index 3b90548..30f83bd 100644 --- a/build/linux/euler-copilot-web.spec +++ b/build/linux/euler-copilot-web.spec @@ -1,5 +1,3 @@ -AutoReq: no -%undefine __find_requires # Be sure buildpolicy set to do nothing %define __spec_install_post %{nil} # Something that need for rpm-4.1 @@ -18,7 +16,7 @@ AutoReq: no BuildArch: aarch64 x86_64 Name: euler-copilot-web Version: 0.9.6 -Release: 5%{?dist} +Release: 6%{?dist} License: MulanPSL-2.0 Summary: openEuler 智能化解决方案 Web 前端 Source0: %{name}-%{version}.tar.gz @@ -43,6 +41,15 @@ openEuler 智能化解决方案 Web 前端 # Electron 客户端 Group: Applications/Utilities Summary: openEuler 智能化解决方案桌面客户端 + +# 启用自动 provide 但过滤掉 Electron 内部库 +# 过滤掉 Electron 应用内部的共享库,这些不应该作为系统级别的 provides +%global __provides_exclude_from ^/opt/Intelligence/.*\\.so.*$ +%global __provides_exclude ^(libEGL\\.so|libGLESv2\\.so|libffmpeg\\.so|libvk_swiftshader\\.so|libvulkan\\.so).*$ + +AutoReq: no +%undefine __find_requires + Requires: which Requires: at-spi2-core Requires: gtk3 @@ -52,8 +59,6 @@ Requires: nss Requires: xdg-utils Requires: (libXtst or libXtst6) Requires: (libuuid or libuuid1) -Requires(post): /bin/sh -Requires(postun): /bin/sh %description -n euler-copilot-desktop openEuler 智能化解决方案桌面客户端 @@ -310,6 +315,9 @@ fi %changelog +* Mon Jun 16 2025 openEuler - 0.9.6-6 +- 优化 RPM 打包配置:启用自动 provide 并过滤 Electron 内部库 + * Wed Jun 11 2025 openEuler - 0.9.6-5 - 修复桌面端 YAML 编辑器无法粘贴文本的问题 -- Gitee