加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
tone-cli.spec 1.35 KB
一键复制 编辑 原始数据 按行查看 历史
qiang.wei 提交于 2023-06-07 22:17 . Init tone-cli rpm build spec
Name: tone-cli
Version: 1.0
Release: 1
Summary: tone client command line tools
License: Mulan PSL v2
URL: https://gitee.com/anolis/tone-cli.git
# Generate tar file by command:
# git archive --format=tar --prefix=tone-cli/ HEAD -o tone-cli.tar
Source0: %{name}.tar
# On different distribution, condition detect is used.
# E.g:
# if "%{dist}" == "anolis"
# Requires: python3-pyyaml python3-psutil wget zip unzip gcc
# endif
Requires: python3-pyyaml python3-psutil wget zip unzip gcc
%description
tone client command line tools
%prep
%autosetup -n %{name} -p1
%build
%install
mkdir -p %{buildroot}/opt/%{name}/
cp -r %{_builddir}/%{name}/{bin,conf,core,docs,etc,lib,tests} %{buildroot}/opt/%{name}/$d
install -Dpm0755 %{_builddir}/%{name}/tone %{buildroot}/opt/%{name}/tone
install -Dpm0655 %{_builddir}/%{name}/Makefile %{buildroot}/opt/%{name}/Makefile
install -Dpm0655 %{_builddir}/%{name}/LICENSE.txt %{buildroot}/opt/%{name}/LICENSE.txt
install -Dpm0655 %{_builddir}/%{name}/README.md %{buildroot}/opt/%{name}/README.md
install -Dpm0755 %{_builddir}/%{name}/README-zh_CN.md %{buildroot}/opt/%{name}/README-zh_CN.md
ln -s -f %{buildroot}/opt/%{name}/tone %{buildroot}%{_bindir}/tone
%files
/opt/%{name}
%{_bindir}/tone
%changelog
* Wed Jun 7 2023 Qiang Wei <qiang.wei@suse.com> - 1.0-1
- Init rpm build spec.
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化