summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hello_cangjie_eur.spec11
1 files changed, 10 insertions, 1 deletions
diff --git a/hello_cangjie_eur.spec b/hello_cangjie_eur.spec
index 8ed24c2..47cf4d7 100644
--- a/hello_cangjie_eur.spec
+++ b/hello_cangjie_eur.spec
@@ -1,6 +1,6 @@
Name: hello-cangjie-eur
Version: 0.0.8
-Release: 7%{?dist}
+Release: 8%{?dist}
Summary: Cangjie Eur demo.
License: MIT
Source: https://github.com/stevending1st/%{name}/archive/refs/tags/v%{version}.tar.gz
@@ -53,6 +53,15 @@ cjpm install --root %{_buildrootdir}/%{name}-%{version}-%{release}.%{_arch}
%clean
rm -rf %{buildroot}
+%pre
+echo "================================"
+echo $HOME/.bashrc
+cat $HOME/.bashrc
+echo "================================"
+echo "source %{_libdir}/cangjie/envsetup.sh" >> $HOME/.bashrc
+cat $HOME/.bashrc
+echo "================================"
+source $HOME/.bashrc
%post
for user_dir in /home/*