- fix build on < 12.1 by not applying the O_CLOEXEC patch there as it is not in the glibc
- fix build on >= 12.1 by adding ncurses-devel to the BuildRequires
- fix build on < 12.1 by not applying the O_CLOEXEC patch there as it is not in the glibc
- fix build on >= 12.1 by adding ncurses-devel to the BuildRequires