# - display and UI
%bcond_without 256 # 256 colors support
%bcond_without led # LEDs
+%bcond_without sixel # image display support in SIXEL capable terminals
%bcond_without truecolor # true color
%bcond_with x # Use the X Window System
# - misc
BuildRequires: rpmbuild(macros) >= 1.736
%{?with_js:BuildRequires: sqlite3-devel}
%{?with_brotli:BuildRequires: libbrotli-devel}
-%{?with_js:BuildRequires: libdom-devel >= 0.4.1}
+%if %{with js} || %{with libcss}
+BuildRequires: libdom-devel >= 0.4.1
+%endif
%{?with_libevent:BuildRequires: libevent-devel}
%{?with_idn:BuildRequires: libidn2-devel}
+%{?with_sixel:BuildRequires: libsixel-devel}
%{?with_smb:BuildRequires: libsmbclient-devel}
%{?with_lua:BuildRequires: lua53-devel}
%{?with_lzma:BuildRequires: lzma-devel}
%{?with_zstd:BuildRequires: zstd-devel}
%{?with_gnutls:Requires: gnutls-libs >= 1.2.5}
%{?with_libcss:Requires: libCSS >= 0.9.1}
-%{?with_js:Requires: libdom >= 0.4.1}
+%if %{with js} || %{with libcss}
+Requires: libdom >= 0.4.1
+%endif
Requires: ncurses >= 5.1
%{?with_openssl:Requires: openssl >= 0.9.7d}
%{?with_js:Requires: quickjs >= 20210327-4}
-Dhtml-highlight=true \
%{!?with_ipv6:-Dipv6=false} \
%{?with_leds:-Dleds=true} \
+ -Dlibsixel=%{__true_false sixel} \
-Dmarks=true \
-Dnntp=true \
-Dno-root=false \