14 Star 2 Fork 2

src-openEuler/oeDeploy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
oedp.spec 3.15 KB
一键复制 编辑 原始数据 按行查看 历史
Dingjiahui 提交于 2025-05-07 14:57 +08:00 . chore: 发布 oedp 1.1.0-2 版本
%define _python_bytecompile_errors_terminate_build 0
Name: oedp
Version: 1.1.0
Release: 2
Summary: openEuler deploy tool
License: MulanPSL-2.0
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
Requires: python3, ansible, python3-prettytable, tar
%description
openEuler deploy tool
%prep
%setup -b 0 -n %{name}-%{version}
%build
%define debug_package %{nil}
%install
mkdir -p -m 700 %{buildroot}%{_var}/oedp/log
mkdir -p -m 700 %{buildroot}%{_var}/oedp/plugin
mkdir -p -m 700 %{buildroot}%{_var}/oedp/python
mkdir -p -m 700 %{buildroot}%{_var}/oedp/python/venv
mkdir -p -m 700 %{buildroot}%{_usr}/lib/oedp
mkdir -p -m 700 %{buildroot}%{_usr}/share/applications
mkdir -p -m 700 %{buildroot}%{_sysconfdir}/oedp/config
mkdir -p %{buildroot}%{_bindir}
touch %{buildroot}%{_var}/oedp/log/oedp.log
cp -rdpf %{_builddir}/%{name}-%{version}/src %{buildroot}%{_usr}/lib/oedp
mv %{buildroot}%{_usr}/lib/oedp/src/config/* %{buildroot}%{_sysconfdir}/oedp/config
mkdir -p -m 700 %{buildroot}%{_sysconfdir}/oedp/config/repo/cache
install -c -m 0400 %{_builddir}/%{name}-%{version}/static/* %{buildroot}%{_usr}/share/applications
install -c -m 0500 %{_builddir}/%{name}-%{version}/oedp.py %{buildroot}%{_bindir}/oedp
%postun
if [ $1 -eq 0 ]; then
# 卸载时删除可能会残留的目录
rm -rf /etc/oedp
rm -rf /var/oedp
rm -rf /usr/lib/oedp
fi
%files
%attr(0555,root,root) %dir %{_var}/oedp
%attr(0777,root,root) %dir %{_var}/oedp/log
%attr(0777,root,root) %dir %{_var}/oedp/plugin
%attr(0555,root,root) %dir %{_var}/oedp/python
%attr(0555,root,root) %dir %{_var}/oedp/python/venv
%attr(0555,root,root) %dir %{_usr}/lib/oedp
%attr(0777,root,root) %dir %{_sysconfdir}/oedp/config
%attr(0777,root,root) %dir %{_sysconfdir}/oedp/config/repo
%attr(0777,root,root) %dir %{_sysconfdir}/oedp/config/repo/cache
%attr(0666,root,root) %{_var}/oedp/log/oedp.log
%attr(0555,root,root) %{_usr}/lib/oedp/src/*
%attr(0666,root,root) %config(noreplace) %{_sysconfdir}/oedp/config/log.conf
%attr(0666,root,root) %config(noreplace) %{_sysconfdir}/oedp/config/repo/repo.conf
%attr(0644,root,root) %{_usr}/share/applications/*
%attr(0555,root,root) %{_bindir}/oedp
%changelog
* Sun Apr 27 2025 Ding Jiahui <dingjiahui4@huawei.com> - 1.1.0-2
- Fix some bugs of init module
* Sun Apr 27 2025 Liu Jiangbin <liujiangbin3@h-partners.com> - 1.1.0-1
- Support configurable plugin sources
- Support one-click initialization
- Fix the log permission bug
* Mon Mar 31 2025 Liu Jiangbin <liujiangbin3@h-partners.com> - 1.0.2-1
- Fix the issue where non-root users cannot execute
* Thu Mar 20 2025 Liu Jiangbin <liujiangbin3@h-partners.com> - 1.0.1-2
- Fix known issues
* Wed Mar 12 2025 Liu Jiangbin <liujiangbin3@h-partners.com> - 1.0.1-1
- Updated icon click effects on DevStation.
- Added upgrade support for the oedp package.
- Fixed exceptions caused by missing 'tasks' field.
- Fixed other known issues.
* Mon Mar 3 2025 Liu Jiangbin <liujiangbin3@h-partners.com> - 1.0.0-2
- fix the issue of abnormal termination during the script execution phase after installation
* Sat Feb 22 2025 Liu Jiangbin <liujiangbin3@h-partners.com> - 1.0.0-1
- init package
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/oeDeploy.git
git@gitee.com:src-openeuler/oeDeploy.git
src-openeuler
oeDeploy
oeDeploy
master

搜索帮助