3 %bcond_with x # Use the X Windows System
4 %bcond_with gnutls # Enable GNUTLS SSL support (disables openssl)
5 %bcond_with ruby # Enable (experimental) Ruby scripting support
6 %bcond_without 256 # Disable 256 colors support
7 %bcond_without bittorent # Disable BitTorrent support
8 %bcond_without cgi # Disable Local CGI support
9 %bcond_without guile # Disable Guile scripting
10 %bcond_without idn # Disable Internation Domain Names support
11 %bcond_without ipv6 # Disable IPv6 support
12 %bcond_without js # Disable experimental (yet quite usable) JavaScript support (using SpiderMonkey)
13 %bcond_without led # Disable LEDs
14 %bcond_without lua # Disable Lua scripting
15 %bcond_without openssl # Disable OpenSSL support
16 %bcond_without perl # Disable Perl scripting
19 %undefine with_openssl
22 Summary: Experimantal Links (text WWW browser)
23 Summary(es): El links es un browser para modo texto, similar a lynx
24 Summary(pl): Eksperymentalny Links (tekstowa przegl±darka WWW)
25 Summary(pt_BR): O links é um browser para modo texto, similar ao lynx
31 Group: Applications/Networking
32 #Source0Download: http://www.elinks.cz/download.html
33 Source0: http://www.elinks.cz/download/%{name}-%{version}.tar.bz2
34 # Source0-md5: 9154f493f544af31ae31ec1dd203d315
35 Source1: %{name}.desktop
37 Patch0: %{name}-home_etc.patch
38 Patch1: %{name}-lua40.patch
39 Patch2: %{name}-pl.po-update.patch
40 Patch3: %{name}-srcdir.patch
41 URL: http://www.elinks.cz/
42 BuildRequires: autoconf
43 BuildRequires: automake
44 BuildRequires: bzip2-devel
45 BuildRequires: expat-devel
46 BuildRequires: gettext-devel
47 BuildRequires: gpm-devel
48 %{?with_guile:BuildRequires: guile-devel}
49 %{?with_gnutls:BuildRequires: gnutls-devel >= 1.2.5}
50 %{?with_js:BuildRequires: js-devel >= 1.5-0.rc6a.1}
51 %{?with_idn:BuildRequires: libidn-devel}
52 %{?with_lua:BuildRequires: lua50-devel}
53 BuildRequires: ncurses-devel >= 5.1
54 %{?with_openssl:BuildRequires: openssl-devel >= 0.9.7d}
55 %{?with_perl:BuildRequires: perl-devel}
56 %{?with_ruby:BuildRequires: ruby-devel}
57 BuildRequires: zlib-devel
60 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
62 %define _sysconfdir /etc/elinks
63 %define specflags_ia32 -fomit-frame-pointer
66 This is the elinks tree - intended to provide feature-rich version of
67 links, however not rock-stable and dedicated mainly for testing. Its
68 purpose is to make alternative to links, until Mikulas will have some
69 time to maintain it, and to test and tune various patches for Mikulas
70 to be able to include them in the official links releases.
73 Links es un browser WWW modo texto, similar al Lynx. El links muestra
74 tablas, hace baja archivos en segundo plano, y usa conexiones HTTP/1.1
78 Bogata w opcje i mo¿liwo¶ci wersja tekstowej przegl±darki WWW - links.
79 elinks jednak jest dedykowana g³ównie do testowania.
82 Links é um browser WWW modo texto, similar ao Lynx. O Links exibe
83 tabelas, baixa arquivos em segundo plano, e usa as conexões HTTP/1.1
100 %{!?debug:--enable-fastmem} \
101 %{?debug:--enable-debug} \
102 %{!?with_ipv6:--disable-ipv6} \
103 %{?with_bittorrent:--enable-bittorrent} \
104 %{?with_cgi:--enable-cgi} \
108 %{?with_256:--enable-256-colors} \
110 %{?with_leds:--enable-leds} \
112 --enable-html-highlight \
113 %{!?with_idn:--without-idn} \
114 %{?with_guile:--with-guile} \
115 %{?with_perl:--with-perl} \
116 %{!?with_lua:--without-lua} \
117 %{?with_ruby:--with-ruby} \
118 %{!?with_js:--without-spidermonkey} \
119 %{?with_gnutls:--with-gnutls} \
120 %{!?with_openssl:--without-openssl} \
121 --with%{!?with_x:out}-x
122 # xterm -e is default, one might want to change it to
124 # --with-xterm="xterm -e"
129 texi2html elinks-lua.texi
133 rm -rf $RPM_BUILD_ROOT
134 install -d $RPM_BUILD_ROOT%{_desktopdir} \
135 $RPM_BUILD_ROOT%{_datadir}/%{name} \
136 $RPM_BUILD_ROOT{%{_sysconfdir},%{_pixmapsdir}}
138 %{__make} install V=1 \
139 DESTDIR=$RPM_BUILD_ROOT
141 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
142 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
144 %{?with_lua:install contrib/lua/*.lua $RPM_BUILD_ROOT%{_sysconfdir}}
149 rm -rf $RPM_BUILD_ROOT
151 %files -f %{name}.lang
152 %defattr(644,root,root,755)
153 %doc AUTHORS BUGS ChangeLog NEWS README SITES TODO
154 %doc contrib/{keybind*,wipe-out-ssl*,lua/elinks-remote}
155 %doc contrib/conv/{*awk,*.pl,*.sh}
156 %doc doc/{*.txt,html}
157 %attr(755,root,root) %{_bindir}/*
161 %{?with_lua:%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}}