diff options
author | CoprDistGit <infra@openeuler.org> | 2024-12-26 07:39:24 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-12-26 07:39:24 +0000 |
commit | d82d402804a426b548717ee0ca61cc07ef541b62 (patch) | |
tree | 685a324e4f9785567053c8e4c9b9bbd6cc459e76 | |
parent | 1db5ab5bb356da44c7800cbb9fee839afda4de79 (diff) |
automatic import of Document_Classification
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Document_Classification.spec | 43 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 45 insertions, 0 deletions
@@ -0,0 +1 @@ +/Document_Classification-1.0.0.tar.gz diff --git a/Document_Classification.spec b/Document_Classification.spec new file mode 100644 index 0000000..4a561dd --- /dev/null +++ b/Document_Classification.spec @@ -0,0 +1,43 @@ +# 软件包名称
+Name: Document_Classification
+# 软件包版本号
+Version: 1.0.0
+# 发布号,每次发布时递增,初始可以为 1
+Release: 1%{?dist}
+# 软件包的简短描述,简要说明软件包的功能
+Summary: This is a sample package for [文件分类]
+# 软件包的许可证,修改为你的软件包所使用的许可证(如 GPL、MIT 等)
+License: GPLv3
+# 软件包的主页 URL,如果有,修改为实际的项目网址
+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
+%autosetup
+
+# 构建阶段的命令,根据项目的实际构建过程进行修改
+%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
+
+# 定义软件包中的文件和目录的权限设置
+%files
+/root/Document_Classification/bin/*
+
@@ -0,0 +1 @@ +f2cc4984fc50d84ce5ecf14eb8868b5d Document_Classification-1.0.0.tar.gz |