rubik: fix compile error

reason: only set filemode after %install step
to keep strip from permission denied

Signed-off-by: DCCooper <1866858@gmail.com>
This commit is contained in:
DCCooper 2022-01-11 10:43:09 +08:00
parent a94552ff7b
commit 77d3a996d9
3 changed files with 17 additions and 11 deletions

View File

@ -1 +1 @@
0.1.0-1
0.1.0-2

View File

@ -1 +1 @@
b4055f46c22a55e145987bac8e0a05f238c6d18b
84074a0ecd4d8d28d7c767cba78383c13e360e64

View File

@ -1,6 +1,6 @@
Name: rubik
Version: 0.1.0
Release: 1
Release: 2
Summary: Hybrid Deployment for Cloud Native
License: Mulan PSL V2
URL: https://gitee.com/openeuler/rubik
@ -32,22 +32,28 @@ make release
%install
# create directory /var/lib/rubik
install -d -m 0750 %{buildroot}%{_sharedstatedir}/%{name}
install -d %{buildroot}%{_sharedstatedir}/%{name}
# install rubik binary
install -Dp -m 0550 ./rubik %{buildroot}%{_sharedstatedir}/%{name}
install -Dp ./rubik %{buildroot}%{_sharedstatedir}/%{name}
# install artifacts
install -Dp -m 0640 ./hack/rubik-daemonset.yaml %{buildroot}%{_sharedstatedir}/%{name}/rubik-daemonset.yaml
install -Dp -m 0640 ./Dockerfile %{buildroot}%{_sharedstatedir}/%{name}/Dockerfile
install -Dp ./hack/rubik-daemonset.yaml %{buildroot}%{_sharedstatedir}/%{name}/rubik-daemonset.yaml
install -Dp ./Dockerfile %{buildroot}%{_sharedstatedir}/%{name}/Dockerfile
%files
%dir %{_sharedstatedir}/%{name}
%{_sharedstatedir}/%{name}/rubik
%{_sharedstatedir}/%{name}/rubik-daemonset.yaml
%{_sharedstatedir}/%{name}/Dockerfile
%dir %attr(750,root,root) %{_sharedstatedir}/%{name}
%attr(550,root,root) %{_sharedstatedir}/%{name}/rubik
%attr(640,root,root) %{_sharedstatedir}/%{name}/rubik-daemonset.yaml
%attr(640,root,root) %{_sharedstatedir}/%{name}/Dockerfile
%clean
rm -rf %{buildroot}
%changelog
* Tue Jan 11 2022 DCCooper <1866858@gmail.com> - 0.1.0-2
- Type:bugfix
- CVE:NA
- SUG:restart
- DESC:fix compile error
* Mon Dec 27 2021 xiadanni <xiadanni1@huawei.com> - 0.1.0-1
- Package init