Only the lua binary depends on libreadline and ncurses, not the library, so lua51-devel doesn't need to depend on their devel packages.