[packages/w3m] allow building with no image support
jajcus
jajcus at pld-linux.org
Tue Oct 23 14:29:04 CEST 2018
commit c167b1bda57456fb2c81e506ee8328086d74e0b9
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date: Tue Oct 23 14:28:43 2018 +0200
allow building with no image support
for minimal dependencies
w3m.spec | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
---
diff --git a/w3m.spec b/w3m.spec
index 81495ec..04a3dcd 100644
--- a/w3m.spec
+++ b/w3m.spec
@@ -1,3 +1,6 @@
+# Conditional build:
+%bcond_without image # build without image support
+
Summary: Text based browser for the world wide web
Summary(de.UTF-8): Text-Browser für das WWW
Summary(es.UTF-8): w3m es un paginador, pero puede usarse también como un navegador WWW
@@ -27,8 +30,10 @@ BuildRequires: automake
BuildRequires: gc-devel
BuildRequires: gettext-tools
BuildRequires: gpm-devel
+%if %{with image}
BuildRequires: gtk+2-devel >= 1:2.0
BuildRequires: imlib2-devel
+%endif
BuildRequires: ncurses-devel >= 5.0
BuildRequires: openssl-devel >= 0.9.7d
BuildRequires: pkgconfig
@@ -104,10 +109,14 @@ cp -f /usr/share/automake/config.sub .
%configure \
mkdir_p="mkdir -p" \
--enable-gopher \
+%if %{with image}
--enable-image="x11,fb,fb+s" \
+ --with-imagelib="gdk-pixbuf" \
+%else
+ --disable-image \
+%endif
--enable-keymap=lynx \
--with-editor=/bin/vi \
- --with-imagelib="gdk-pixbuf" \
--with-mailer=/bin/mail \
--with-browser=%{_bindir}/mozilla \
--with-termlib=ncurses
@@ -150,6 +159,8 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/w3mman.1*
%lang(ja) %{_mandir}/ja/man1/w3m.1*
+%if %{with image}
%files imgdisplay
%defattr(644,root,root,755)
%attr(755,root,root) %{_libexecdir}/w3m/w3mimgdisplay
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/w3m.git/commitdiff/c167b1bda57456fb2c81e506ee8328086d74e0b9
More information about the pld-cvs-commit
mailing list