diff options
-rw-r--r-- | hello_cangjie_eur.spec | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hello_cangjie_eur.spec b/hello_cangjie_eur.spec index 3683aab..f2bd5a0 100644 --- a/hello_cangjie_eur.spec +++ b/hello_cangjie_eur.spec @@ -1,6 +1,6 @@ Name: hello-cangjie-eur Version: 0.0.8 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Cangjie Eur demo. License: MIT Source: https://github.com/stevending1st/%{name}/archive/refs/tags/v%{version}.tar.gz @@ -56,6 +56,8 @@ rm -rf %{buildroot} %pre #!/bin/bash +echo "$HOME" + # 根据环境设置下载地址 %ifarch x86_64 # 这里的指令仅在 x86_64 架构下运行 @@ -78,6 +80,7 @@ tar xvf Cangjie-0.53.13-linux.tar.gz rm -rf Cangjie-0.53.13-linux.tar.gz chmod 0755 %{_libdir}/cangjie/envsetup.sh chown root:root %{_libdir}/cangjie/envsetup.sh +chmod o+rx %{_libdir}/cangjie/envsetup.sh for user_dir in /home/* do |