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