Use install instead of mkdir and cp
Also remove redundant cp invocations. Signed-off-by: Ondrej Mosnáček <omosnacek@gmail.com>
This commit is contained in:
parent
f75aa9d221
commit
089f936bfa
@ -65,12 +65,12 @@ package to grow the root partition on first boot.
|
|||||||
%install
|
%install
|
||||||
|
|
||||||
# Create the target directories
|
# Create the target directories
|
||||||
mkdir -p %{buildroot}%{_bindir}
|
install -d %{buildroot}%{_bindir}
|
||||||
mkdir -p %{buildroot}%{_mandir}/man1
|
install -d %{buildroot}%{_mandir}/man1
|
||||||
|
|
||||||
# Install binaries and manpages
|
# Install binaries and manpages
|
||||||
cp bin/* %{buildroot}%{_bindir}/
|
install -pm 0755 bin/* %{buildroot}%{_bindir}/
|
||||||
cp man/* %{buildroot}%{_mandir}/man1/
|
install -pm 0644 man/* %{buildroot}%{_mandir}/man1/
|
||||||
|
|
||||||
# Exclude Ubuntu-specific tools
|
# Exclude Ubuntu-specific tools
|
||||||
rm %{buildroot}%{_bindir}/*ubuntu*
|
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}%{_bindir}/cloud-publish-*
|
||||||
rm -f %{buildroot}%{_mandir}/man1/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 for the main package
|
||||||
%files
|
%files
|
||||||
|
Loading…
Reference in New Issue
Block a user