-%{!?debug: --enable-fastmem} \
-%{?debug: --enable-debug} \
- %{?without_ipv6:--disable-ipv6} \
- --with%{?without_x:out}-x
-%{?with_led:echo '#define CONFIG_LEDS' >> feature.h}
-%{?with_256:echo '#define CONFIG_256_COLORS' >> feature.h}
-%{?with_cgi:echo -e "#ifdef HAVE_SETENV\n\t#define CONFIG_CGI\n#endif" >> feature.h}
-%{__make}
-
-cd doc
-texi2html elinks-lua.texi
-cd ..
+ %{?with_smb:--enable-smb} \
+ --disable-no-root \
+ %{!?debug:--enable-fastmem} \
+ %{?debug:--enable-debug} \
+ %{!?with_ipv6:--disable-ipv6} \
+ %{?with_bittorrent:--enable-bittorrent} \
+ %{?with_cgi:--enable-cgi} \
+ --enable-finger \
+ --enable-gopher \
+ --enable-nntp \
+ %{?with_256:--enable-256-colors} \
+ --enable-exmode \
+ %{?with_fsp:--enable-fsp} \
+ %{?with_leds:--enable-leds} \
+ --enable-marks \
+ --enable-html-highlight \
+ %{!?with_idn:--without-idn} \
+ %{?with_guile:--with-guile} \
+ %{?with_perl:--with-perl} \
+ %{!?with_lua:--without-lua} \
+ %{?with_python:--with-python} \
+ %{?with_ruby:--with-ruby} \
+ %{!?with_js:--without-spidermonkey} \
+ %{?with_gnutls:--with-gnutls} \
+ %{!?with_openssl:--without-openssl} \
+ --with%{!?with_x:out}-x \
+ %{!?with_lzma:--without-lzma}
+# xterm -e is default, one might want to change it to
+# something else
+# --with-xterm="xterm -e"
+
+%{__make} %{?with_verbose:V=1}