diff --git a/erlang.spec b/erlang.spec index c9be29c..12cd624 100644 --- a/erlang.spec +++ b/erlang.spec @@ -1027,7 +1027,7 @@ rm -r $RPM_BUILD_ROOT%{_libdir}/erlang/erts-*/man %if %{with doc} # Move man-pages to a system-wide directory - in the same way as Debian did # Erlang files from man 3 have too generic names -for m in $RPM_BUILD_ROOT%{_libdir}/erlang/man/man3/* +for manpage in $RPM_BUILD_ROOT%{_libdir}/erlang/man/man3/* do mv ${manpage} ${manpage}erl done