提交 296367d7 编写于 作者: H hanxinke 提交者: Gitee

atune: update the function of making rpm package

上级 92951e89
......@@ -71,6 +71,7 @@ install:
@echo "END INSTALL A-Tune"
rpm:
git archive --format=tar --prefix=A-Tune/ HEAD | gzip -9 > openeuler-A-Tune-v$(VERSION).tar.gz
mv openeuler-A-Tune-v$(VERSION).tar.gz ~/rpmbuild/SOURCES
cd .. && tar -zcvf openeuler-A-Tune-v$(VERSION).tar.gz A-Tune
mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
mv ../openeuler-A-Tune-v$(VERSION).tar.gz ~/rpmbuild/SOURCES
rpmbuild -ba misc/atune.spec
......@@ -53,17 +53,10 @@ Requires: python3-pandas
atune engine tool for manage atuned AI tuning system.
%prep
%setup -n A-Tune -q
%autosetup -n A-Tune -p1
%build
cd ../
mkdir -p gopath/src/
rm -rf gopath/src/%{name}
mv A-Tune gopath/src/%{name}
cd gopath/src/%{name}
make
cd ../
cp -rf %{name} ../../A-Tune
%make_build
%install
%make_install
......@@ -113,8 +106,8 @@ cp -rf %{name} ../../A-Tune
%attr(0750,root,root) /usr/libexec/atuned/analysis/*
%attr(0750,root,root) /etc/atuned/*
%exclude /usr/libexec/atuned/analysis/app.py
%exclude /usr/libexec/atuned/plugin/
%exclude /usr/libexec/atuned/atuned/
%exclude /usr/libexec/atuned/analysis/plugin/
%exclude /usr/libexec/atuned/analysis/atuned/
%attr(0750,root,root) %dir /usr/libexec/atuned/analysis
%attr(0640,root,root) %dir /etc/atuned
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册