!28 [sync] PR-26: update eagle to 1.1.0 version
From: @openeuler-sync-bot Reviewed-by: @queyanwen Signed-off-by: @queyanwen
This commit is contained in:
commit
85eb77a10f
BIN
eagle-1.1.0.tar.gz
Normal file
BIN
eagle-1.1.0.tar.gz
Normal file
Binary file not shown.
73
eagle.spec
73
eagle.spec
@ -1,13 +1,16 @@
|
||||
Name: eagle
|
||||
Version: 1.0.1
|
||||
Release: 4
|
||||
Version: 1.1.0
|
||||
Release: 1
|
||||
Summary: eagle kit
|
||||
License: Mulan PSL v2
|
||||
URL: https://gitee.com/openeuler/eagle
|
||||
Source0: eagle-mpctool.tar.gz
|
||||
|
||||
Source1: eagle-1.1.0.tar.gz
|
||||
BuildRequires: gcc, make, cmake, powerapi-devel, numactl-devel
|
||||
Requires: powerapi, numactl-libs, tar
|
||||
|
||||
%description
|
||||
EAGLE(Energy Aware intelliGent scheduler) is a service for dynamically tuning the OS based on energy efficiency.
|
||||
|
||||
%define debug_package %{nil}
|
||||
|
||||
@ -20,14 +23,71 @@ Requires: python3-numpy python3-pandas python3-psutil python3-scipy ip
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n mpctool -p1
|
||||
%setup -n mpctool -b 0 -T
|
||||
%setup -n eagle -b 1 -T
|
||||
|
||||
%build
|
||||
cd %{_builddir}/mpctool
|
||||
%py3_build
|
||||
|
||||
cd %{_builddir}/eagle
|
||||
sh ./build.sh
|
||||
|
||||
%install
|
||||
cd %{_builddir}/mpctool
|
||||
%py3_install
|
||||
|
||||
install -d %{buildroot}/%{_sysconfdir}/eagle
|
||||
install -d %{buildroot}/%{_sysconfdir}/eagle/plugin
|
||||
install -d %{buildroot}/%{_sysconfdir}/systemd/system
|
||||
install -d %{buildroot}/%{_sbindir}
|
||||
install -d %{buildroot}/%{_libdir}
|
||||
|
||||
cd %{_builddir}/eagle
|
||||
cp release/eagle/conf/*.ini %{buildroot}/%{_sysconfdir}/eagle
|
||||
cp eagle.service %{buildroot}/%{_sysconfdir}/systemd/system
|
||||
install -m 0755 release/eagle/eagle %{buildroot}/%{_sbindir}
|
||||
install -m 0755 release/eagle/lib/libpwrapi_adaptor.so %{buildroot}/%{_libdir}
|
||||
install -m 0755 release/eagle/lib/libfreq_service.so %{buildroot}/%{_sysconfdir}/eagle/plugin
|
||||
install -m 0755 release/eagle/lib/libmpc_service.so %{buildroot}/%{_sysconfdir}/eagle/plugin
|
||||
install -m 0755 release/eagle/lib/libsched_service.so %{buildroot}/%{_sysconfdir}/eagle/plugin
|
||||
|
||||
%post
|
||||
useradd -m eagle
|
||||
chown -R eagle:eagle /etc/eagle
|
||||
if [ ! -d /var/log/eagle ]; then
|
||||
mkdir /var/log/eagle
|
||||
mkdir /var/log/eagle/bak
|
||||
chown -R eagle:eagle /var/log/eagle
|
||||
fi
|
||||
|
||||
#Add user "eagle" to POWERAPI list
|
||||
PWRAPI_CONF_FILE=/etc/sysconfig/pwrapis/pwrapis_config.ini
|
||||
sed -n '/^admin=/p' $PWRAPI_CONF_FILE | grep eagle > /dev/null
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
sed -i '/^admin=/s/$/,eagle/' $PWRAPI_CONF_FILE
|
||||
fi
|
||||
|
||||
systemctl start eagle.service
|
||||
|
||||
%preun
|
||||
systemctl stop eagle.service
|
||||
systemctl disable eagle.service
|
||||
userdel -r eagle
|
||||
|
||||
%post -n python3-eagle-mpctool
|
||||
systemctl start mpctool.service
|
||||
|
||||
%preun -n python3-eagle-mpctool
|
||||
systemctl stop mpctool.service
|
||||
systemctl disable mpctool.service
|
||||
|
||||
%files
|
||||
%{_sysconfdir}/eagle/*
|
||||
%{_sysconfdir}/systemd/system/eagle.service
|
||||
%{_sbindir}/eagle
|
||||
%{_libdir}/*.so
|
||||
|
||||
%files -n python3-eagle-mpctool
|
||||
%defattr(-,root,root)
|
||||
@ -36,10 +96,13 @@ Requires: python3-numpy python3-pandas python3-psutil python3-scipy ip
|
||||
%{python3_sitelib}/*
|
||||
|
||||
%changelog
|
||||
* Mon May 20 2024 heppen<hepeng68@huawei.com> - 1.1.0-1
|
||||
- Update to 1.1.0: add eagle bin and libs.
|
||||
|
||||
* Sat Mar 9 2024 queyanwen<queyanwen@huawei.com> - 1.0.1-4
|
||||
- Adapts to 920B: sleeps for 2 seconds after the fan speed is set.
|
||||
|
||||
* Thur Nov 30 2023 queyanwen<queyanwen@huawei.com> - 1.0.1-3
|
||||
* Thu Nov 30 2023 queyanwen<queyanwen@huawei.com> - 1.0.1-3
|
||||
- The current condition for determining whether the system enters the stable state is that
|
||||
- the difference between the maximum temperature and the minimum temperature within 60s is less than 0.2 degrees.
|
||||
- This judgment is too strict and needs to be changed to 2 degrees.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user