summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-01-10 08:52:05 +0000
committerCoprDistGit <infra@openeuler.org>2025-01-10 08:52:05 +0000
commit538c179cf2c09ed72a4d333ccb20699a60585ca2 (patch)
tree46a80bb29d0bf3604c91b5714e333e038eb8509f
parent1cdebed8ca519a84ae406d50e5e5d02c08320430 (diff)
automatic import of file-reorganize
-rw-r--r--file-reorganize.spec15
-rw-r--r--sources2
2 files changed, 8 insertions, 9 deletions
diff --git a/file-reorganize.spec b/file-reorganize.spec
index 9f9ce0a..9965bdd 100644
--- a/file-reorganize.spec
+++ b/file-reorganize.spec
@@ -26,11 +26,10 @@ else
wget -O Cangjie-0.53.13-linux_aarch64.tar.gz "https://cangjie-lang.cn/v1/files/auth/downLoad?nsId=142267&fileName=Cangjie-0.53.13-linux_aarch64.tar.gz&objectKey=6719f1ec3af6947e3c6af328"
tar -xzvf Cangjie-0.53.13-linux_aarch64.tar.gz
fi
-mv cangjie /root/
-source /root/cangjie/envsetup.sh
+source cangjie/envsetup.sh
%build
-source /root/cangjie/envsetup.sh
+source cangjie/envsetup.sh
if [[ `uname -m` == "x86_64" ]]; then
cp /usr/lib/gcc/x86_64-openEuler-linux/12/crtbeginS.o %{_builddir}/%{name}-%{version}
@@ -46,14 +45,14 @@ cjpm build
%install
# 将需要打包的文件拷贝到buildroot目录中去
plt=`uname -m`
-mkdir -p %{buildroot}/root/file-reorganize
-mkdir -p %{buildroot}/root/file-reorganize/config
-cp -r %{_builddir}/%{name}-%{version}/target/release/bin/* %{buildroot}/root/file-reorganize
-cp -r %{_builddir}/%{name}-%{version}/config/* %{buildroot}/root/file-reorganize
+mkdir -p %{buildroot}/tmp/file-reorganize
+mkdir -p %{buildroot}/tmp/file-reorganize/config
+cp -r %{_builddir}/%{name}-%{version}/target/release/bin/* %{buildroot}/tmp/file-reorganize
+cp -r %{_builddir}/%{name}-%{version}/config/* %{buildroot}/tmp/file-reorganize
%files
# 指定将要部署的文件有哪些
-/root/file-reorganize/*
+/tmp/file-reorganize/*
%changelog
* Tue Dec 24 2024 x_haihua <x_haihua@163.com>
diff --git a/sources b/sources
index dc6fa56..529c3d3 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-490cae4d8d6369b861ddb73e4478dbdb file-reorganize-1.0.tar.gz
+f91f777957a5b74f401f50a4f7795c1c file-reorganize-1.0.tar.gz