diff options
| -rw-r--r-- | .gitignore | 6 | ||||
| -rw-r--r-- | loggpt.spec | 31 | ||||
| -rw-r--r-- | sources | 11 |
3 files changed, 35 insertions, 13 deletions
@@ -2,3 +2,9 @@ /wheelhouse_1.tar /wheelhouse_2.tar /wheelhouse_3.tar +/wheelhouse_aarch64_1.tar +/wheelhouse_aarch64_2.tar +/wheelhouse_aarch64_3.tar +/wheelhouse_x86_64_1.tar +/wheelhouse_x86_64_2.tar +/wheelhouse_x86_64_3.tar 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 \ @@ -1,4 +1,7 @@ -11ef1870703da07eeaf86155cfab8d95 loggpt-1.0.0.tar.gz -6c340c7268563e739df21a5f5ddb2d55 wheelhouse_1.tar -af701b1a7d31b17f0aab47b98a0651e9 wheelhouse_2.tar -d52be6405ccb43df580fc323517a7b64 wheelhouse_3.tar +1cbaf5ea206e9d37071d9c04d7cc2996 loggpt-1.0.0.tar.gz +b21222c88b6167299a3853ce4d380a88 wheelhouse_aarch64_1.tar +db22dbad044500443609eeb4cf65c510 wheelhouse_aarch64_2.tar +513f44a5f83e263a961fdd5135a563a2 wheelhouse_aarch64_3.tar +0abcb42dd454736dc5b502263da3afad wheelhouse_x86_64_1.tar +98016997b64ca44612c7d42c08a6cd80 wheelhouse_x86_64_2.tar +c5b1e292e9f09121ccc6ebb8128e039c wheelhouse_x86_64_3.tar |
