diff options
author | CoprDistGit <infra@openeuler.org> | 2025-09-17 09:27:20 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2025-09-17 09:27:20 +0000 |
commit | c01640541ec59363cb4c99f38dcf3323a66f5dbf (patch) | |
tree | c6a83b1b8cd2f073b751adc89cacf4c27652f499 | |
parent | 7e9fca272084f07f19a641d31717f862c4778e15 (diff) |
automatic import of osmind-aiopeneuler24.03_LTS_SP2openeuler24.03_LTS_SP1openeuler24.03_LTSopeneuler22.03_LTS_SP4openeuler22.03_LTS_SP3openeuler22.03_LTS_SP2openeuler22.03_LTSopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | osmind-ai.spec | 56 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 58 insertions, 0 deletions
@@ -0,0 +1 @@ +/osmind-ai-1.0.0.tar.gz diff --git a/osmind-ai.spec b/osmind-ai.spec new file mode 100644 index 0000000..61f27e9 --- /dev/null +++ b/osmind-ai.spec @@ -0,0 +1,56 @@ +Name: osmind-ai +Version: 1.0.0 +Release: 1%{?dist} +Summary: OSMind AI Service + +License: MulanPSL-2.0 +URL: https://gitee.com/Victeo/osmind-aiservice +Source0: %{name}-%{version}.tar.gz + +%global debug_package %{nil} +%global _enable_debug_package 0 + +#BuildRequires: go +Requires: systemd + +%description +OSMind AI Service packaged as RPM. + +%prep +%setup -q + +%build +go mod tidy +go build -o osmind_agent cmd/einoagent/main.go # 替换为你的编译命令 + +%install +# 创建目录 +install -d -m 755 %{buildroot}/opt/osmind_ai +install -d -m 755 %{buildroot}%{_unitdir} + +# 复制二进制文件 +install -m 755 osmind_agent %{buildroot}/opt/osmind_ai/ + +# 复制 systemd 服务文件 +install -m 644 osmind-ai.service %{buildroot}%{_unitdir}/ + +%post +# systemd 配置 +%systemd_post osmind-ai.service + +%preun +# 卸载前停止服务 +%systemd_preun osmind-ai.service + +%postun +# 清理配置 +%systemd_postun_with_restart osmind-ai.service + +%files +%dir /opt/osmind_ai +/opt/osmind_ai/osmind_agent +%{_unitdir}/osmind-ai.service + +%changelog +* Tue Sep 16 2025 ShiLei <845621916@qq.com> - 1.0.0-1 +- Initial package @@ -0,0 +1 @@ +bd73e415036a47173d2f195be721f86f osmind-ai-1.0.0.tar.gz |