From 3eb43bd899b77ee37bce9cf4de4d83b10fc30a6a Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 5 Nov 2025 06:21:16 +0000 Subject: automatic import of loggpt --- loggpt.spec | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) (limited to 'loggpt.spec') diff --git a/loggpt.spec b/loggpt.spec index 3db6653..cbc78bc 100644 --- a/loggpt.spec +++ b/loggpt.spec @@ -9,9 +9,16 @@ Summary: loggpt Service License: MulanPSL-2.0 URL: https://gitee.com/Victeo/AOPS_MCP_Server Source0: %{name}-%{version}.tar.gz -Source1: wheelhouse_1.tar -Source2: wheelhouse_2.tar -Source3: wheelhouse_3.tar + +# x86_64 dependencies +Source1: wheelhouse_x86_64_1.tar +Source2: wheelhouse_x86_64_2.tar +Source3: wheelhouse_x86_64_3.tar + +# aarch64 dependencies +Source4: wheelhouse_aarch64_1.tar +Source5: wheelhouse_aarch64_2.tar +Source6: wheelhouse_aarch64_3.tar %global debug_package %{nil} %global _enable_debug_package 0 @@ -29,9 +36,17 @@ loggpt Service packaged as RPM. %prep %setup -q -cp -f %{SOURCE1} %{_builddir} -cp -f %{SOURCE2} %{_builddir} -cp -f %{SOURCE3} %{_builddir} +%ifarch x86_64 +cp -f %{SOURCE1} %{_builddir}/wheelhouse_1.tar +cp -f %{SOURCE2} %{_builddir}/wheelhouse_2.tar +cp -f %{SOURCE3} %{_builddir}/wheelhouse_3.tar +%endif + +%ifarch aarch64 +cp -f %{SOURCE4} %{_builddir}/wheelhouse_1.tar +cp -f %{SOURCE5} %{_builddir}/wheelhouse_2.tar +cp -f %{SOURCE6} %{_builddir}/wheelhouse_3.tar +%endif %build mkdir -p %{_builddir}/%{name}-%{version}/wheelhouse @@ -45,9 +60,7 @@ mkdir -p %{buildroot}/opt/%{name} # 复制wheelhouse离线包 tar -x -M -f %{_builddir}/wheelhouse_1.tar -f %{_builddir}/wheelhouse_2.tar -f %{_builddir}/wheelhouse_3.tar -C %{buildroot}/opt/%{name}/ -rm -rf %{_builddir}/wheelhouse_1.tar -rm -rf %{_builddir}/wheelhouse_2.tar -rm -rf %{_builddir}/wheelhouse_3.tar +rm -rf %{_builddir}/wheelhouse_*.tar # 复制项目代码(排除不需要的文件) find %{_builddir}/%{name}-%{version} -maxdepth 1 \ -- cgit v1.2.3