rename %rpmversion to %version, to fix build failure
fixed #I9103J Signed-off-by: chenyanpanX <chenyanpan@xfusion.com> (cherry picked from commit 2f2dfd6e47beb7f4e98e7a003d4dc10ca97bc746)
This commit is contained in:
parent
7a781ba60f
commit
b4e1bb60d6
@ -6,15 +6,15 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
%define kmod_name sysmonitor
|
%define kmod_name sysmonitor
|
||||||
%define rpmversion 1.3.2
|
%define version 1.3.2
|
||||||
%define releaseversion 1.2
|
%define releaseversion 1.3
|
||||||
Summary: System Monitor Daemon
|
Summary: System Monitor Daemon
|
||||||
Name: %{kmod_name}-kmod
|
Name: %{kmod_name}-kmod
|
||||||
Version: %{rpmversion}
|
Version: %{version}
|
||||||
Release: %{releaseversion}
|
Release: %{releaseversion}
|
||||||
License: GPLv2 and Mulan PSL v2
|
License: GPLv2 and Mulan PSL v2
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Source0: %{kmod_name}-%{rpmversion}.tar.bz2
|
Source0: %{kmod_name}-%{version}.tar.bz2
|
||||||
BuildRoot: %{_builddir}/%{kmod_name}-root
|
BuildRoot: %{_builddir}/%{kmod_name}-root
|
||||||
BuildRequires: libboundscheck
|
BuildRequires: libboundscheck
|
||||||
Requires: systemd
|
Requires: systemd
|
||||||
@ -41,7 +41,7 @@ Patch1: bugfix-fix-signal-monitor-err.patch
|
|||||||
System Monitor Daemon
|
System Monitor Daemon
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{kmod_name}-%{rpmversion} -p1
|
%autosetup -n %{kmod_name}-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cmake .
|
cmake .
|
||||||
@ -53,8 +53,8 @@ strip -g sysmonitor.ko
|
|||||||
%install
|
%install
|
||||||
#export BRP_PESIGN_FILES="*.ko"
|
#export BRP_PESIGN_FILES="*.ko"
|
||||||
|
|
||||||
dos2unix %_builddir/%{kmod_name}-%{rpmversion}/script/iomonitor_daemon
|
dos2unix %_builddir/%{kmod_name}-%{version}/script/iomonitor_daemon
|
||||||
dos2unix %_builddir/%{kmod_name}-%{rpmversion}/conf/io_monitor
|
dos2unix %_builddir/%{kmod_name}-%{version}/conf/io_monitor
|
||||||
|
|
||||||
mkdir -p %{buildroot}/usr/sbin/
|
mkdir -p %{buildroot}/usr/sbin/
|
||||||
mkdir -p %{buildroot}/etc/sysmonitor.d/
|
mkdir -p %{buildroot}/etc/sysmonitor.d/
|
||||||
@ -170,6 +170,11 @@ systemctl daemon-reload 2>/dev/null 1>/dev/null
|
|||||||
/usr/lib/systemd/system/multi-user.target.wants/sysmonitor.service
|
/usr/lib/systemd/system/multi-user.target.wants/sysmonitor.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Feb 04 2024 ChenYanpan <chenyanpan@xfusion.com> - 1.3.2-1.3
|
||||||
|
- Type:bugfix
|
||||||
|
- CVE:NA
|
||||||
|
- DESC:rename %rpmversion to %version, to fix build failure
|
||||||
|
|
||||||
* Tue Nov 28 2023 xietangxin<xietangxin@huawei.com> - 1.3.2-1.2
|
* Tue Nov 28 2023 xietangxin<xietangxin@huawei.com> - 1.3.2-1.2
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- CVE:NA
|
- CVE:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user