fix objcopy permission denied when rpmbuild
fix objcopy permission denied when rpmbuild. And by the way, package sysmaster directory which can be found by "rpm -ql". (cherry picked from commit c802108b47fca5a07638dbebfa30fdc427879ed6)
This commit is contained in:
parent
39f58f229b
commit
2d34df8438
@ -11,7 +11,7 @@
|
||||
|
||||
Name: sysmaster
|
||||
Version: 0.2.4
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: redesign and reimplement process1.
|
||||
|
||||
License: Mulan PSL v2
|
||||
@ -48,21 +48,38 @@ sed -i '/\[source.local-registry\]/a directory = "vendor"' ./.cargo/config
|
||||
%cargo_build
|
||||
|
||||
%install
|
||||
install -Dm0550 -t %{buildroot}/usr/bin %{sysmaster_install_source}/sctl
|
||||
install -Dm0550 -t %{sysmaster_install_target} %{sysmaster_install_source}/init
|
||||
install -Dm0550 -t %{sysmaster_install_target} %{sysmaster_install_source}/sysmaster
|
||||
install -Dm0750 -t %{buildroot}/usr/bin %{sysmaster_install_source}/sctl
|
||||
install -Dm0750 -t %{sysmaster_install_target} %{sysmaster_install_source}/init
|
||||
install -Dm0750 -t %{sysmaster_install_target} %{sysmaster_install_source}/sysmaster
|
||||
|
||||
install -Dm0640 -t %{sysmaster_install_target} %{unit_install_source}/*
|
||||
|
||||
install -Dm0550 -t %{sysmaster_install_target}/plugin %{sysmaster_install_source}/libservice.so
|
||||
install -Dm0550 -t %{sysmaster_install_target}/plugin %{sysmaster_install_source}/libtarget.so
|
||||
install -Dm0750 -t %{sysmaster_install_target}/plugin %{sysmaster_install_source}/libservice.so
|
||||
install -Dm0750 -t %{sysmaster_install_target}/plugin %{sysmaster_install_source}/libtarget.so
|
||||
install -Dm0640 -t %{sysmaster_install_target}/plugin %{conf_install_source}/plugin.conf
|
||||
|
||||
%files
|
||||
/usr/bin/sctl
|
||||
/usr/lib/sysmaster/*
|
||||
%attr(0550,-,-) /usr/bin/sctl
|
||||
%dir /usr/lib/sysmaster
|
||||
/usr/lib/sysmaster/basic.target
|
||||
%attr(0550,-,-) /usr/lib/sysmaster/init
|
||||
/usr/lib/sysmaster/multi-user.target
|
||||
%dir /usr/lib/sysmaster/plugin
|
||||
%attr(0550,-,-) /usr/lib/sysmaster/plugin/*.so
|
||||
/usr/lib/sysmaster/plugin/plugin.conf
|
||||
/usr/lib/sysmaster/shutdown.target
|
||||
/usr/lib/sysmaster/sshd-keygen.target
|
||||
/usr/lib/sysmaster/sshd-keygen@ecdsa.service
|
||||
/usr/lib/sysmaster/sshd-keygen@ed25519.service
|
||||
/usr/lib/sysmaster/sshd-keygen@rsa.service
|
||||
/usr/lib/sysmaster/sshd.service
|
||||
/usr/lib/sysmaster/sysinit.target
|
||||
%attr(0550,-,-) /usr/lib/sysmaster/sysmaster
|
||||
|
||||
%changelog
|
||||
* Thu Jul 06 2023 xujing<xujing125@huawei.com> - 0.2.4-3
|
||||
- fix objcopy permission denied when rpmbuild
|
||||
|
||||
* Tue Jun 27 2023 shenyangyang<shenyangyang4@huawei.com> - 0.2.4-2
|
||||
- modify the sshd units
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user