!4 add dir for bolt profile
From: @ironictwist Reviewed-by: @gameoverboss Signed-off-by: @gameoverboss
This commit is contained in:
commit
cede72dd15
@ -21,6 +21,12 @@ BuildRequires: kernel-devel
|
||||
%description
|
||||
sysboost can merge ELF files to improve performance.
|
||||
|
||||
%package profile
|
||||
Summary: Indicates the preset profile for the bolt.
|
||||
|
||||
%description profile
|
||||
Indicates the preset profile for the bolt..
|
||||
|
||||
%prep
|
||||
export RPM_BUILD_DIR=%_topdir/BUILD
|
||||
export RPM_BUILD_SOURCE=%_topdir/SOURCES
|
||||
@ -54,6 +60,7 @@ mkdir -p $RPM_BUILD_ROOT/usr/lib/systemd/system
|
||||
mkdir -p $RPM_BUILD_ROOT/lib/modules/sysboost
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/sysboost.d/
|
||||
mkdir -p $RPM_BUILD_ROOT/var/lib/sysboost/
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/lib/sysboost.d/profile/
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/bin
|
||||
|
||||
# install binfmt.ko
|
||||
@ -64,6 +71,7 @@ popd
|
||||
pushd $RPM_BUILD_DIR/%{name}
|
||||
install -D -p -m 400 %{name}.service $RPM_BUILD_ROOT/usr/lib/systemd/system/%{name}.service
|
||||
install -D -p -m 500 ./target/release/sysboostd $RPM_BUILD_ROOT%{_bindir}/
|
||||
install -D -p -m 400 ./profile/* $RPM_BUILD_ROOT/usr/lib/sysboost.d/profile/
|
||||
%meson_install
|
||||
popd
|
||||
|
||||
@ -73,7 +81,7 @@ popd
|
||||
%defattr(400,root,root,-)
|
||||
%dir %attr(700, root, root) /etc/sysboost.d/
|
||||
%dir %attr(700, root, root) /var/lib/sysboost/
|
||||
%dir %attr(700, root, root) /lib/modules/sysboost/
|
||||
%dir %attr(500, root, root) /lib/modules/sysboost/
|
||||
%{_bindir}/*
|
||||
%{_libdir}/*
|
||||
%attr(500, root, root) /usr/bin/sysboost
|
||||
@ -82,6 +90,10 @@ popd
|
||||
/usr/lib/systemd/system/%{name}.service
|
||||
%attr(0400,root,root) /lib/modules/sysboost/*
|
||||
|
||||
%files profile
|
||||
%dir %attr(500, root, root) /usr/lib/sysboost.d/profile/
|
||||
%attr(0400,root,root) /usr/lib/sysboost.d/profile/*
|
||||
|
||||
%doc
|
||||
|
||||
%post
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user