!68 [sync] PR-67: 【Bug fix】powerapi-devel子包会启动pwrapis服务,但当前devel包中无service文件

From: @openeuler-sync-bot 
Reviewed-by: @queyanwen 
Signed-off-by: @queyanwen
This commit is contained in:
openeuler-ci-bot 2024-07-16 06:19:21 +00:00 committed by Gitee
commit dc3908bbdb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: powerapi
Version: 1.1.0
Release: 8
Release: 9
Summary: The ability to support openEuler power consumption control.
License: MulanPSL-2.0
@ -16,7 +16,7 @@ Including a power API SO and the Power API Service.
%package -n powerapi-devel
Summary: The ability to support openEuler power consumption control.
BuildRequires: gcc,cmake,zip,unzip
Requires: tar,ipmitool,psmisc,systemd,perf
Requires: tar,ipmitool,psmisc,systemd,perf,powerapi
%description -n powerapi-devel
Contains the client and server components and API header files for powerapi integration development.
@ -45,12 +45,6 @@ systemctl start pwrapis
%preun
systemctl stop pwrapis
%post -n powerapi-devel
systemctl start pwrapis
%preun -n powerapi-devel
systemctl stop pwrapis
%files
%{_sbindir}/pwrapis
%{_libdir}/libpwrapi.so
@ -67,6 +61,9 @@ systemctl stop pwrapis
%{_includedir}/pwrapic/*
%changelog
* Mon Jul 15 2024 heppen <hepeng68@huawei.com> - 1.1.0-9
- Bug fix: powerapi-devel start/stop service without pwrapis.service.
* Thu Jun 20 2024 heppen <hepeng68@huawei.com> - 1.1.0-8
- Bug fix: Delete the unnecessary comma in the configuration file