summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--file-reognaze.spec37
-rw-r--r--sources1
3 files changed, 39 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..ab57239 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/file-reorganize-0.1.tar.gz
diff --git a/file-reognaze.spec b/file-reognaze.spec
new file mode 100644
index 0000000..5508bf2
--- /dev/null
+++ b/file-reognaze.spec
@@ -0,0 +1,37 @@
+Name: file-reorganize
+Version:0.1
+Release: 1%{?dist}
+Summary: file reoganize
+
+License: MulanPSL2.0
+URL: https://atomgit.com/x_haihua/file-reoganize.git
+Source0: %{name}-%{version}.tar.gz
+
+%define debug_package %{nil}
+
+%description
+
+
+%prep
+%autosetup
+
+
+%build
+cjpm build
+
+%install
+# 将需要打包的文件拷贝到buildroot目录中去
+mkdir -p %{buildroot}/root/file-reorganize/bin
+mkdir -p %{buildroot}/root/file-reorganize/config
+cp -r %{_builddir}/%{name}-%{version}/target/release/bin/* %{buildroot}/root/file-reorganize/bin
+cp -r %{_builddir}/%{name}-%{version}/config/* %{buildroot}/root/file-reorganize/config
+
+%files
+# 指定将要部署的文件有哪些
+/root/file-reorganize/bin/*
+/root/file-reorganize/config/*
+
+
+%changelog
+* Tue Dec 24 2024 x_haihua <x_haihua@163.com>
+-
diff --git a/sources b/sources
new file mode 100644
index 0000000..175669f
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+c321394613426ff488bc097cacbb6260 file-reorganize-0.1.tar.gz