-%{__aclocal}
-%{__autoconf}
-%{__autoheader}
-%configure \
- %{?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}
+%meson build \
+ %{?with_bittorrent:-Dbittorrent=true} \
+ %{?with_cgi:-Dcgi=true} \
+ -D88-colors=true \
+ %{?with_256:-D256-colors=true} \
+ %{?with_truecolor:-Dtrue-color=true} \
+ -Dexmode=true \
+ %{?debug:-Ddebug=true} \
+ %{!?debug:-Dfastmem=true} \
+ -Dfinger=true \
+ %{?with_fsp:-Dfsp=true} \
+ -Dgemini=true \
+ -Dgettext=true \
+ -Dgopher=true \
+ -Dhtml-highlight=true \
+ %{!?with_ipv6:-Dipv6=false} \
+ %{?with_leds:-Dleds=true} \
+ -Dmarks=true \
+ -Dnntp=true \
+ -Dno-root=false \
+ %{?with_smb:-Dsmb=true} \
+ %{?with_brotli:-Dbrotli=true} \
+ %{?with_zstd:-Dzstd=true} \
+ %{?with_gnutls:-Dgnutls=true} \
+ %{?with_guile:-Dguile=true} \
+ %{!?with_idn:-Didn=false} \
+ %{?with_lua:-Dluapkg=lua5.3} \
+ %{?with_lzma:-Dlzma=true} \
+ %{?with_openssl:-Dopenssl=true} \
+ %{?with_perl:-Dperl=true} \
+ %{?with_python:-Dpython=true} \
+ %{?with_ruby:-Druby=true} \
+ %{?with_js:-Dquickjs=true} \
+ %{?with_x:-Dx=true}
+
+%ninja_build -C build