specfile: use 'install' wherever possible
... to have better control over file permissions.
This commit is contained in:
parent
6246b1d0fa
commit
4c2dabfcab
13
gawk.spec
13
gawk.spec
@ -169,7 +169,7 @@ make check
|
||||
%install
|
||||
%make_install
|
||||
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
install -m 0755 -d %{buildroot}%{_bindir}
|
||||
|
||||
ln -sf gawk %{buildroot}%{_bindir}/awk
|
||||
ln -sf gawk.1.gz %{buildroot}%{_mandir}/man1/awk.1.gz
|
||||
@ -185,9 +185,14 @@ rm -f %{buildroot}%{_bindir}/gawk-%{version}*
|
||||
rm -f %{buildroot}%{_infodir}/dir
|
||||
|
||||
# Install the all the documentation in the same folder - /usr/share/doc/gawk:
|
||||
mkdir -p %{buildroot}%{_docdir}/%{name}
|
||||
cp -a html %{buildroot}%{_docdir}/%{name}
|
||||
cp -a doc/gawk.{pdf,ps} doc/gawkinet.{pdf,ps} %{buildroot}%{_docdir}/%{name}
|
||||
install -m 0755 -d %{buildroot}%{_docdir}/%{name}/html/gawk/
|
||||
install -m 0755 -d %{buildroot}%{_docdir}/%{name}/html/gawkinet/
|
||||
|
||||
install -m 0644 -p html/gawk/* %{buildroot}%{_docdir}/%{name}/html/gawk/
|
||||
install -m 0644 -p html/gawkinet/* %{buildroot}%{_docdir}/%{name}/html/gawkinet/
|
||||
|
||||
install -m 0644 -p doc/gawk.{pdf,ps} %{buildroot}%{_docdir}/%{name}
|
||||
install -m 0644 -p doc/gawkinet.{pdf,ps} %{buildroot}%{_docdir}/%{name}
|
||||
|
||||
# Install NLS language files:
|
||||
%find_lang %{name}
|
||||
|
Loading…
Reference in New Issue
Block a user