commit
370f236480
79
atune.spec
79
atune.spec
@ -2,22 +2,22 @@
|
||||
|
||||
Summary: AI auto tuning system
|
||||
Name: atune
|
||||
Version: 0.2
|
||||
Version: 0.3
|
||||
Release: 0.1
|
||||
License: Mulan PSL v1
|
||||
License: Mulan PSL v2
|
||||
URL: https://gitee.com/openeuler/A-Tune
|
||||
Source: openeuler-A-Tune-v%{version}.tar.gz
|
||||
Source: https://gitee.com/openeuler/A-Tune/repository/archive/v%{version}.tar.gz
|
||||
|
||||
BuildRequires: rpm-build protobuf-compiler golang-bin python3-pytest procps-ng
|
||||
BuildRequires: sqlite >= 3.24.0
|
||||
BuildRequires: rpm-build golang-bin procps-ng
|
||||
BuildRequires: sqlite >= 3.24.0 openssl
|
||||
BuildRequires: python3-scikit-optimize python3-pandas python3-xgboost
|
||||
Requires: systemd
|
||||
Requires: atune-client
|
||||
Requires: atune-db
|
||||
Requires: python3-dict2xml
|
||||
Requires: python3-flask-restful
|
||||
Requires: python3-pandas
|
||||
Requires: python3-scikit-optimize
|
||||
Requires: python3-xgboost
|
||||
Requires: python3-lhsmdu
|
||||
Requires: prefetch_tuning
|
||||
Requires: perf
|
||||
Requires: sysstat
|
||||
@ -31,31 +31,38 @@ atune is a service for atuned AI tuning system.
|
||||
|
||||
%package client
|
||||
Summary: client tool for auto tuning system
|
||||
License: MuLan PSL v1
|
||||
License: MuLan PSL v2
|
||||
|
||||
%description client
|
||||
atune client tool for manage atuned AI tuning system.
|
||||
|
||||
%package db
|
||||
Summary: database and AI model for auto tuning system
|
||||
License: MuLan PSL v1
|
||||
License: MuLan PSL v2
|
||||
|
||||
%description db
|
||||
Database and AI model used by atuned AI tuning system.
|
||||
|
||||
%package engine
|
||||
Summary: engine tool for auto tuning system
|
||||
License: MuLan PSL v1
|
||||
Requires: python3-scikit-optimize
|
||||
Requires: python3-xgboost
|
||||
Requires: python3-flask-restful
|
||||
Requires: python3-pandas
|
||||
|
||||
%description engine
|
||||
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}
|
||||
export GO111MODULE=off
|
||||
make
|
||||
cd ../
|
||||
cp -rf %{name} ../../A-Tune
|
||||
sed -i "s/^rest_tls.*/rest_tls = false/" misc/atuned.cnf
|
||||
sed -i "s/^engine_tls.*/engine_tls = false/" misc/atuned.cnf
|
||||
sed -i "s/^engine_tls.*/engine_tls = false/" misc/engine.cnf
|
||||
make models
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
@ -70,17 +77,24 @@ cp -rf %{name} ../../A-Tune
|
||||
%attr(0750,root,root) %{_bindir}/atuned
|
||||
%attr(0750,root,root) /usr/libexec/atuned/scripts/*
|
||||
%attr(0750,root,root) /usr/libexec/atuned/analysis/*
|
||||
%attr(0640,root,root) /usr/lib/atuned/profiles/*
|
||||
%exclude /usr/libexec/atuned/analysis/app_engine.py
|
||||
%exclude /usr/libexec/atuned/analysis/models/
|
||||
%attr(0750,root,root) /usr/libexec/atuned/collector/*
|
||||
%exclude /usr/libexec/atuned/analysis/optimizer/
|
||||
%exclude /usr/libexec/atuned/analysis/engine/
|
||||
%attr(0750,root,root) %dir /usr/lib/atuned
|
||||
%attr(0750,root,root) %dir /usr/lib/atuned/modules
|
||||
%attr(0750,root,root) %dir /usr/lib/atuned/profiles
|
||||
%attr(0750,root,root) %dir /usr/libexec/atuned
|
||||
%attr(0750,root,root) %dir /usr/libexec/atuned/scripts
|
||||
%attr(0750,root,root) %dir /usr/libexec/atuned/analysis
|
||||
%attr(0750,root,root) %dir /usr/libexec/atuned/collector
|
||||
%attr(0750,root,root) %dir /usr/share/atuned
|
||||
%attr(0750,root,root) %dir /etc/atuned
|
||||
%attr(0750,root,root) /etc/atuned/*
|
||||
%attr(0750,root,root) %dir /etc/atuned/rules
|
||||
%attr(0750,root,root) %dir /var/atuned
|
||||
%attr(0640,root,root) /etc/atuned/atuned.cnf
|
||||
%exclude /etc/atuned/engine_certs/*
|
||||
%exclude /etc/atuned/rest_certs/*
|
||||
|
||||
%files client
|
||||
%attr(0750,root,root) %{_bindir}/atune-adm
|
||||
@ -95,6 +109,24 @@ cp -rf %{name} ../../A-Tune
|
||||
%attr(0750,root,root) %dir /usr/libexec/atuned/analysis/models
|
||||
%attr(0750,root,root) /usr/libexec/atuned/analysis/models/*
|
||||
|
||||
%files engine
|
||||
%license License/LICENSE
|
||||
%defattr(0640,root,root,-)
|
||||
%attr(0640,root,root) %{_unitdir}/atune-engine.service
|
||||
%attr(0750,root,root) /usr/libexec/atuned/analysis/*
|
||||
%attr(0750,root,root) /usr/libexec/atuned/resources/*
|
||||
%attr(0750,root,root) /etc/atuned/*
|
||||
%exclude /usr/libexec/atuned/analysis/app.py
|
||||
%exclude /usr/libexec/atuned/analysis/plugin/
|
||||
%exclude /usr/libexec/atuned/analysis/atuned/
|
||||
%attr(0750,root,root) %dir /usr/libexec/atuned/analysis
|
||||
%attr(0750,root,root) %dir /usr/libexec/atuned/resources
|
||||
%attr(0750,root,root) %dir /etc/atuned
|
||||
%exclude /etc/atuned/atuned.cnf
|
||||
%exclude /etc/atuned/rules
|
||||
%exclude /etc/atuned/engine_certs/*
|
||||
%exclude /etc/atuned/rest_certs/*
|
||||
|
||||
%post
|
||||
%systemd_post atuned.service
|
||||
|
||||
@ -105,6 +137,9 @@ cp -rf %{name} ../../A-Tune
|
||||
%systemd_postun_with_restart atuned.service
|
||||
|
||||
%changelog
|
||||
* Fri Sep 4 2020 Zhipeng Xie<xiezhipeng1@huawei.com> - 0.3-0.1
|
||||
- upgrade to v0.3
|
||||
|
||||
* Thu Mar 19 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.2-0.1
|
||||
- Package init
|
||||
|
||||
|
||||
Binary file not shown.
BIN
v0.3.tar.gz
Normal file
BIN
v0.3.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user