Improve install of additional README files

This commit is contained in:
Björn Esser 2019-01-30 12:42:46 +01:00
parent 5e0cebbeb7
commit a9b48ed719
No known key found for this signature in database
GPG Key ID: F52E98007594C21D

View File

@ -363,23 +363,10 @@ popd
ChangeLog NEWS README THANKS TODO
# Install distribution README file, if existing, to shared %%_pkgdocdir.
if [ -f README%{distname} ]; then
%{__install} -Dpm 0644 -t %{buildroot}%{_pkgdocdir} \
README%{distname}
fi
# Install README-POSIX file, if existing, to shared %%_pkgdocdir.
if [ -f README-POSIX ]; then
%{__install} -Dpm 0644 -t %{buildroot}%{_pkgdocdir} \
README-POSIX
fi
# Install README-STATIC file, if existing, to shared %%_pkgdocdir.
if [ -f README-STATIC ]; then
%{__install} -Dpm 0644 -t %{buildroot}%{_pkgdocdir} \
README-STATIC
fi
# Install additional README* files, if existing, to shared %%_pkgdocdir.
for f in ./README*; do
%{__install} -Dpm 0644 -t %{buildroot}%{_pkgdocdir} $f
done
%check