summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-01-12 11:53:55 +0000
committerCoprDistGit <infra@openeuler.org>2025-01-12 11:53:55 +0000
commit79af24c5214ab50511faddc1ae411744b713d323 (patch)
tree00061b044d7f97555886fda55f09df3059bf13df
parent8f8436e2a0e8e07aa4ae68303cb22530d5a4de9d (diff)
automatic import of hello-cangjie-eur
-rw-r--r--hello_cangjie_eur.spec15
1 files changed, 4 insertions, 11 deletions
diff --git a/hello_cangjie_eur.spec b/hello_cangjie_eur.spec
index 959ba3b..384f045 100644
--- a/hello_cangjie_eur.spec
+++ b/hello_cangjie_eur.spec
@@ -12,14 +12,6 @@ A demo for Cangjie and Eur.
%global debug_package %{nil}
-# 检查文件是否存在,并设置一个宏
-if [ ! -f %{_builddir}/Cangjie-0.53.13-linux_x64.tar.gz ]; then
- %global file_not_exists 1
-else
- %global file_not_exists 0
-fi
-
-
# 根据环境设置下载地址
%ifarch x86_64
# 这里的指令仅在 x86_64 架构下运行
@@ -38,9 +30,10 @@ fi
%build
cd %{_builddir}
-%if %{file_not_exists}
- wget -O Cangjie-0.53.13-linux.tar.gz %{download_url}
-%endif
+# 检查文件是否存在,并设置一个宏
+if [ ! -f %{_builddir}/Cangjie-0.53.13-linux.tar.gz ]
+ wget -O Cangjie-0.53.13-linux.tar.gz %{download_url}
+fi
tar xvf Cangjie-0.53.13-linux.tar.gz