]> git.pld-linux.org Git - packages/elinks.git/blobdiff - elinks.spec
add sixel support
[packages/elinks.git] / elinks.spec
index d1e212d3619a2b1413928d497c35b6b6dcb813b0..b17887b0070085bebf455b1a68f4be0374581b00 100644 (file)
@@ -25,6 +25,7 @@
 # - 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
@@ -68,9 +69,12 @@ BuildRequires:       libstdc++-devel
 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}
@@ -93,7 +97,9 @@ BuildRequires:        zlib-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}
@@ -150,6 +156,7 @@ keepalive.
        -Dhtml-highlight=true \
        %{!?with_ipv6:-Dipv6=false} \
        %{?with_leds:-Dleds=true} \
+       -Dlibsixel=%{__true_false sixel} \
        -Dmarks=true \
        -Dnntp=true \
        -Dno-root=false \
This page took 0.07598 seconds and 4 git commands to generate.