summaryrefslogtreecommitdiff
path: root/Document_Classification.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-12-26 09:08:57 +0000
committerCoprDistGit <infra@openeuler.org>2024-12-26 09:08:57 +0000
commit1367db42b984ba8540691b4e043556cc5b3fa745 (patch)
tree952d4583a9157aff0c1ed048d3a929eb6267d971 /Document_Classification.spec
parent84a0317343d53f3fab87e310bf89e4f3c62f4d0c (diff)
automatic import of Document_Classification
Diffstat (limited to 'Document_Classification.spec')
-rw-r--r--Document_Classification.spec26
1 files changed, 1 insertions, 25 deletions
diff --git a/Document_Classification.spec b/Document_Classification.spec
index 138087d..ac36f32 100644
--- a/Document_Classification.spec
+++ b/Document_Classification.spec
@@ -26,32 +26,8 @@ It includes [文件分类,将一个路径下的文件夹和子文件夹遍历
# 准备阶段的命令,通常用于解压源代码等操作
%prep
echo "开始进入%prep阶段..."
-echo "当前工作目录:$(pwd)"
-if [! -r "/var/tmp/rpm-tmp.1gZrjF" ]; then
- echo "没有权限读取 /var/tmp/rpm-tmp.1gZrjF 文件,无法处理脚本内容,构建可能失败。"
- exit 1
-fi
-script_content=$(cat /var/tmp/rpm-tmp.1gZrjF)
-if [! -w "/var/tmp/rpm-tmp.1gZrjF" ]; then
- echo "没有权限写入 /var/tmp/rpm-tmp.1gZrjF 文件,无法修正脚本内容,构建可能失败。"
- exit 1
-fi
-corrected_content=${script_content//$'\r'/}
-echo "$corrected_content" > /var/tmp/rpm-tmp.1gZrjF
-umask 022
-cd /builddir/build/BUILD
-# 检查源码包是否存在,假设源码包按规范命名为Document_Classification-1.0.0.tar.gz,可按实际调整
-if [! -f "/builddir/build/SOURCES/Document_Classification-1.0.0.tar.gz" ]; then
- echo "源码包 Document_Classification-1.0.0.tar.gz 不存在,构建将会失败。"
- exit 1
-fi
-# 简单验证源码包文件名格式(这里仅示例检查是否以.tar.gz结尾,可根据实际更细化要求调整)
-if [[! "/builddir/build/SOURCES/Document_Classification-1.0.0.tar.gz" =~ \.tar\.gz$ ]]; then
- echo "源码包文件名格式不符合要求,构建可能失败。"
- exit 1
-fi
%autosetup
-echo "已进入的源文件目录:$(pwd)"
+