summaryrefslogtreecommitdiff
path: root/hello_cangjie_eur.spec
diff options
context:
space:
mode:
Diffstat (limited to 'hello_cangjie_eur.spec')
-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