From: Adam Gołębiowski Date: Fri, 9 Jan 2004 21:06:27 +0000 (+0000) Subject: - added some bconds (with: x, without: cgi, ipv6, led, 256) X-Git-Tag: auto/ac/elinks-0_9_1-1~6 X-Git-Url: http://git.pld-linux.org/?p=packages%2Felinks.git;a=commitdiff_plain;h=21bf3c6a58247b001bfe1cb5f5844117b6e74bb7 - added some bconds (with: x, without: cgi, ipv6, led, 256) - removed obsolete configure options(--enable-leds, --enable-256-colors) Changed files: elinks.spec -> 1.82 --- diff --git a/elinks.spec b/elinks.spec index 3056aa0..1e011fb 100644 --- a/elinks.spec +++ b/elinks.spec @@ -1,3 +1,10 @@ +# Conditional build: +%bcond_with x # Use the X Windows System +%bcond_without cgi # Disable Local CGI support +%bcond_without ipv6 # Disable IPv6 Support +%bcond_without led # Disable LEDs +%bcond_without 256 # Disable 256 colors support +# Summary: Experimantal Links (text WWW browser) Summary(es): El links es un browser para modo texto, similar a lynx Summary(pl): Eksperymentalny Links (tekstowa przegl±darka WWW) @@ -69,9 +76,11 @@ cp %{SOURCE3} feature.h %configure \ %{!?debug: --enable-fastmem} \ %{?debug: --enable-debug} \ - --enable-leds \ - --enable-256-colors \ - --without-x + %{?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