!35 [sync] PR-33: fix objcopy permission denied when rpmbuild

From: @openeuler-sync-bot 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
This commit is contained in:
openeuler-ci-bot 2023-07-06 11:06:10 +00:00 committed by Gitee
commit 8e6d9177bb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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