-CFLAGS="%{CC_NORMAL}" \
-RPATH_LIST=../lib:%{_prefix}/lib \
-%configure \
- --target %{_target_platform} \
- --prefix=%{_prefix} \
- --includedir='${prefix}/include' \
- --with-default-terminfo-dir=%{MYDATA} \
- --with-install-prefix=$RPM_BUILD_ROOT \
- --with-terminfo-dirs=%{MYDATA}:/usr/share/terminfo \
- --disable-echo \
- --disable-getcap \
- --disable-leaks \
- --disable-macros \
- --disable-overwrite \
- --disable-termcap \
- --enable-const \
- --enable-ext-colors \
- --enable-ext-mouse \
- --enable-hard-tabs \
- --enable-interop \
- --enable-rpath \
- --enable-sp-funcs \
- --enable-warnings \
- --enable-widec \
- --verbose \
- --with-chtype=uint32_t \
- --with-mmask_t=uint32_t \
- --with-develop \
- --with-shared \
- --with-termlib \
- --with-ticlib \
- --with-trace \
- --with-cxx-shared \
- --with-xterm-kbs=DEL \
- --without-ada \
- --without-debug \
+%define CFG_OPTS \\\
+ --target %{_target_platform} \\\
+ --prefix=%{_prefix} \\\
+ --bindir=%{_bindir} \\\
+ --includedir=%{_includedir} \\\
+ --libdir=%{_libdir} \\\
+ --includedir='${prefix}/include' \\\
+ --disable-echo \\\
+ --disable-getcap \\\
+ --disable-leaks \\\
+ --disable-macros \\\
+ --disable-overwrite \\\
+ %{_test_relink} \\\
+ --disable-termcap \\\
+ --enable-hard-tabs \\\
+ --enable-opaque-curses \\\
+ --enable-opaque-form \\\
+ --enable-opaque-menu \\\
+ --enable-opaque-panel \\\
+ --enable-pc-files \\\
+ --enable-rpath \\\
+ --enable-warnings \\\
+ --enable-wgetch-events \\\
+ --enable-widec \\\
+ --enable-xmc-glitch \\\
+ --program-suffix=%{MY_ABI} \\\
+ --verbose \\\
+ --with-abi-version=%{MY_ABI} \\\
+ --with-config-suffix=dev \\\
+ --with-cxx-shared \\\
+ --with-default-terminfo-dir=%{MYDATA} \\\
+ --with-develop \\\
+ --with-extra-suffix=%{MY_ABI} \\\
+ --with-install-prefix=$RPM_BUILD_ROOT \\\
+ --with-pkg-config-libdir=%{MY_PKG} \\\
+ --with-shared \\\
+ --with-terminfo-dirs=%{MYDATA}:/usr/share/terminfo \\\
+ --with-termlib \\\
+ --with-ticlib \\\
+ --with-trace \\\
+ --with-versioned-syms \\\
+ --with-xterm-kbs=DEL \\\
+ --without-ada \\\
+ --without-debug \\\