From a9b48ed719e170110c6ce4ca6011ab8ee2c892fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Wed, 30 Jan 2019 12:42:46 +0100 Subject: [PATCH] Improve install of additional README files --- libxcrypt.spec | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/libxcrypt.spec b/libxcrypt.spec index 0627797..78410bf 100644 --- a/libxcrypt.spec +++ b/libxcrypt.spec @@ -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