You can also enforce the ncurses config tool with a env var. I've added this at the top of the %build step of samba.spec: if command -v ncurses6-config &> /dev/null; then export NCURSES_CONFIG="$(command -v ncurses6-config)" fi https://build.opensuse.org/package/show/home:aaptel:samba-ncurses6/samba If this works fine I'll commit it to the svn.