diff --git a/cloud-utils.spec b/cloud-utils.spec index 7ce1626..d02ea94 100644 --- a/cloud-utils.spec +++ b/cloud-utils.spec @@ -65,12 +65,12 @@ package to grow the root partition on first boot. %install # Create the target directories -mkdir -p %{buildroot}%{_bindir} -mkdir -p %{buildroot}%{_mandir}/man1 +install -d %{buildroot}%{_bindir} +install -d %{buildroot}%{_mandir}/man1 # Install binaries and manpages -cp bin/* %{buildroot}%{_bindir}/ -cp man/* %{buildroot}%{_mandir}/man1/ +install -pm 0755 bin/* %{buildroot}%{_bindir}/ +install -pm 0644 man/* %{buildroot}%{_mandir}/man1/ # Exclude Ubuntu-specific tools rm %{buildroot}%{_bindir}/*ubuntu* @@ -82,10 +82,6 @@ rm -f %{buildroot}%{_mandir}/man1/cloud-run-instances.* rm -f %{buildroot}%{_bindir}/cloud-publish-* rm -f %{buildroot}%{_mandir}/man1/cloud-publish-* -# Install the growpart binary and man page -cp bin/growpart %{buildroot}%{_bindir}/ -cp man/growpart.* %{buildroot}%{_mandir}/man1/ - # Files for the main package %files