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:
parent
a94552ff7b
commit
77d3a996d9
@ -1 +1 @@
|
|||||||
0.1.0-1
|
0.1.0-2
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
b4055f46c22a55e145987bac8e0a05f238c6d18b
|
84074a0ecd4d8d28d7c767cba78383c13e360e64
|
||||||
|
|||||||
24
rubik.spec
24
rubik.spec
@ -1,6 +1,6 @@
|
|||||||
Name: rubik
|
Name: rubik
|
||||||
Version: 0.1.0
|
Version: 0.1.0
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Hybrid Deployment for Cloud Native
|
Summary: Hybrid Deployment for Cloud Native
|
||||||
License: Mulan PSL V2
|
License: Mulan PSL V2
|
||||||
URL: https://gitee.com/openeuler/rubik
|
URL: https://gitee.com/openeuler/rubik
|
||||||
@ -32,22 +32,28 @@ make release
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
# create directory /var/lib/rubik
|
# create directory /var/lib/rubik
|
||||||
install -d -m 0750 %{buildroot}%{_sharedstatedir}/%{name}
|
install -d %{buildroot}%{_sharedstatedir}/%{name}
|
||||||
# install rubik binary
|
# install rubik binary
|
||||||
install -Dp -m 0550 ./rubik %{buildroot}%{_sharedstatedir}/%{name}
|
install -Dp ./rubik %{buildroot}%{_sharedstatedir}/%{name}
|
||||||
# install artifacts
|
# install artifacts
|
||||||
install -Dp -m 0640 ./hack/rubik-daemonset.yaml %{buildroot}%{_sharedstatedir}/%{name}/rubik-daemonset.yaml
|
install -Dp ./hack/rubik-daemonset.yaml %{buildroot}%{_sharedstatedir}/%{name}/rubik-daemonset.yaml
|
||||||
install -Dp -m 0640 ./Dockerfile %{buildroot}%{_sharedstatedir}/%{name}/Dockerfile
|
install -Dp ./Dockerfile %{buildroot}%{_sharedstatedir}/%{name}/Dockerfile
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%dir %{_sharedstatedir}/%{name}
|
%dir %attr(750,root,root) %{_sharedstatedir}/%{name}
|
||||||
%{_sharedstatedir}/%{name}/rubik
|
%attr(550,root,root) %{_sharedstatedir}/%{name}/rubik
|
||||||
%{_sharedstatedir}/%{name}/rubik-daemonset.yaml
|
%attr(640,root,root) %{_sharedstatedir}/%{name}/rubik-daemonset.yaml
|
||||||
%{_sharedstatedir}/%{name}/Dockerfile
|
%attr(640,root,root) %{_sharedstatedir}/%{name}/Dockerfile
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Dec 27 2021 xiadanni <xiadanni1@huawei.com> - 0.1.0-1
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user