summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-01-12 11:39:54 +0000
committerCoprDistGit <infra@openeuler.org>2025-01-12 11:39:54 +0000
commit8f8436e2a0e8e07aa4ae68303cb22530d5a4de9d (patch)
tree5d3968e96f96c685f4348f70df8caa77494cccbf
parenta4a5de85e5b7eb1f2802359d3e81a672e51af3b1 (diff)
automatic import of hello-cangjie-eur
-rw-r--r--hello_cangjie_eur.spec6
1 files changed, 3 insertions, 3 deletions
diff --git a/hello_cangjie_eur.spec b/hello_cangjie_eur.spec
index e39626c..959ba3b 100644
--- a/hello_cangjie_eur.spec
+++ b/hello_cangjie_eur.spec
@@ -10,7 +10,6 @@ BuildRequires: wget, dnf-plugins-core, binutils, glibc-devel, gcc-c++, openssl
%description
A demo for Cangjie and Eur.
-
%global debug_package %{nil}
# 检查文件是否存在,并设置一个宏
@@ -20,6 +19,7 @@ else
%global file_not_exists 0
fi
+
# 根据环境设置下载地址
%ifarch x86_64
# 这里的指令仅在 x86_64 架构下运行
@@ -46,10 +46,10 @@ tar xvf Cangjie-0.53.13-linux.tar.gz
%install
-cd %{_builddir}/%{name}
+cd %{_builddir}/%{name}-%{version}
rm -rf %{_buildrootdir}/*
source %{_builddir}/cangjie/envsetup.sh
-cjpm install --root %{_buildrootdir}/%{name}-%{version}-%{release}
+cjpm install --root %{_buildrootdir}/%{name}-%{version}-%{release}.%{_arch}
%clean