From 1c4aecba2eae4cb7d035b5f67b5dc6b573eab2e5 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 26 Dec 2024 12:11:52 +0000 Subject: automatic import of Document_Classification --- Document_Classification-1.0.0.spec | 44 ++++++++++++++------------------------ 1 file changed, 16 insertions(+), 28 deletions(-) diff --git a/Document_Classification-1.0.0.spec b/Document_Classification-1.0.0.spec index 4f1395f..1813c2b 100644 --- a/Document_Classification-1.0.0.spec +++ b/Document_Classification-1.0.0.spec @@ -1,47 +1,35 @@ -# 软件包名称 Name: Document_Classification -# 软件包版本号 -Version: 1.0.0 -# 发布号,每次发布时递增,初始可以为 1 -Release: 1%{?dist} -# 软件包的简短描述 -Summary: This is a sample package for [文件分类] -# 软件包的许可证 -License: GPLv3+ -# 软件包的主页 URL,如果有,修改为实际的项目网址 -URL: https://gitee.com/crayon-xiaoxin-xin/XiaoWu.git +Version:1.0.0 +Release:1%{?dist} +Summary:file reoganize -# 定义软件包的原始源代码的获取位置和文件名格式 -Source0: %{name}-%{version}.tar.gz +License:GPLv3+ +URL: https://gitee.com/crayon-xiaoxin-xin/XiaoWu.git +Source0:%{name}-%{version}.tar.gz -# 生成调试相关的软件包内容 %define debug_package %{nil} -# 软件包的详细描述 %description -This is a more detailed description of my_package. -It includes [文件分类,将一个路径下的文件夹和子文件夹遍历,按照文件类型移动到file、doc、exe、txt,其中file属于其他文件]. -# 准备阶段的命令 %prep -echo "开始进入%prep阶段..." %autosetup -echo "已进入的源文件目录:$(pwd)" - -# 构建阶段的命令 %build cjpm build -# 安装阶段的命令 %install -mkdir -p %{buildroot}/root/Document_Classification/bin -mkdir -p %{buildroot}/root/Document_Classification/conf -cp -r %{_builddir}/%{name}-%{version}/target/release/bin/* %{buildroot}/root/Document_Classification +# 将需要打包的文件拷贝到buildroot目录中去 +mkdir -p %{buildroot}/root/Document-Classification/bin +mkdir -p %{buildroot}/root/Document-Classification/conf +cp -r %{_builddir}/%{name}-%{version}/target/release/bin/* %{buildroot}/root/Document-Classification/bin -# 定义软件包中的文件和目录的权限设置 %files -/root/Document_Classification/bin/* +# 指定将要部署的文件有哪些 +/root/Document-Classification/bin/* + +%changelog +* Tue Dec 24 2024 Xiaowu <3260998685@qq.com> +- -- cgit v1.2.3