]>
Commit | Line | Data |
---|---|---|
2e552f3e | 1 | # TODO: consider lua51 |
1c33e430 | 2 | # |
21bf3c6a | 3 | # Conditional build: |
b67326b7 JB |
4 | %bcond_with x # Use the X Windows System |
5 | %bcond_with gnutls # Enable GNUTLS SSL support (disables openssl) | |
6 | %bcond_with ruby # Enable (experimental) Ruby scripting support | |
7 | %bcond_without 256 # Disable 256 colors support | |
8 | %bcond_without bittorrent # Disable BitTorrent support | |
9 | %bcond_without cgi # Disable Local CGI support | |
b631af97 | 10 | %bcond_without fsp # Disable FSP support |
b67326b7 JB |
11 | %bcond_without guile # Disable Guile scripting |
12 | %bcond_without idn # Disable Internation Domain Names support | |
13 | %bcond_without ipv6 # Disable IPv6 support | |
14 | %bcond_without js # Disable experimental (yet quite usable) JavaScript support (using SpiderMonkey) | |
15 | %bcond_without led # Disable LEDs | |
16 | %bcond_without lua # Disable Lua scripting | |
17 | %bcond_without openssl # Disable OpenSSL support | |
18 | %bcond_without perl # Disable Perl scripting | |
3d4d38d9 AG |
19 | # |
20 | %if %{with gnutls} | |
21 | %undefine with_openssl | |
22 | %endif | |
21bf3c6a | 23 | # |
17631700 | 24 | Summary: Experimantal Links (text WWW browser) |
f85cbf5d ER |
25 | Summary(es.UTF-8): El links es un browser para modo texto, similar a lynx |
26 | Summary(pl.UTF-8): Eksperymentalny Links (tekstowa przeglądarka WWW) | |
27 | Summary(pt_BR.UTF-8): O links é um browser para modo texto, similar ao lynx | |
17631700 | 28 | Name: elinks |
2e552f3e JB |
29 | Version: 0.11.3 |
30 | Release: 1 | |
e2affc83 | 31 | Epoch: 1 |
17631700 AM |
32 | License: GPL |
33 | Group: Applications/Networking | |
8ca357a6 | 34 | Source0: http://www.elinks.cz/download/%{name}-%{version}.tar.bz2 |
2e552f3e | 35 | # Source0-md5: a0eb50e18a2ac8e77d6b0df8f94bb5a6 |
17631700 | 36 | Source1: %{name}.desktop |
5a8f1bd1 | 37 | Source2: links.png |
ef0f233a AG |
38 | Patch0: %{name}-home_etc.patch |
39 | Patch1: %{name}-lua40.patch | |
8ca357a6 | 40 | URL: http://www.elinks.cz/ |
17631700 AM |
41 | BuildRequires: autoconf |
42 | BuildRequires: automake | |
5a8f1bd1 | 43 | BuildRequires: bzip2-devel |
fcffdc5b | 44 | BuildRequires: expat-devel |
b631af97 | 45 | %{?with_fsp:BuildRequires: fsplib-devel} |
ab99996e | 46 | BuildRequires: gettext-devel |
17631700 | 47 | BuildRequires: gpm-devel |
3d4d38d9 | 48 | %{?with_guile:BuildRequires: guile-devel} |
69d969c4 | 49 | %{?with_gnutls:BuildRequires: gnutls-devel >= 1.2.5} |
3d4d38d9 AG |
50 | %{?with_js:BuildRequires: js-devel >= 1.5-0.rc6a.1} |
51 | %{?with_idn:BuildRequires: libidn-devel} | |
8eb57a4f | 52 | %{?with_lua:BuildRequires: lua50-devel} |
1c33e430 | 53 | BuildRequires: ncurses-devel >= 5.1 |
3d4d38d9 AG |
54 | %{?with_openssl:BuildRequires: openssl-devel >= 0.9.7d} |
55 | %{?with_perl:BuildRequires: perl-devel} | |
8ca357a6 | 56 | %{?with_ruby:BuildRequires: ruby-devel} |
5a8f1bd1 | 57 | BuildRequires: zlib-devel |
17631700 AM |
58 | Provides: webclient |
59 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
60 | ||
c4be24e9 | 61 | %define _sysconfdir /etc/elinks |
ef0f233a | 62 | %define specflags_ia32 -fomit-frame-pointer |
4fc089e9 | 63 | |
17631700 | 64 | %description |
cd6ad879 JB |
65 | This is the elinks tree - intended to provide feature-rich version of |
66 | links, however not rock-stable and dedicated mainly for testing. Its | |
67 | purpose is to make alternative to links, until Mikulas will have some | |
68 | time to maintain it, and to test and tune various patches for Mikulas | |
69 | to be able to include them in the official links releases. | |
17631700 | 70 | |
3328f371 | 71 | %description -l es.UTF-8 |
c15f1e53 | 72 | Links es un browser WWW modo texto, similar al Lynx. El links muestra |
73 | tablas, hace baja archivos en segundo plano, y usa conexiones HTTP/1.1 | |
74 | keepalive. | |
75 | ||
3328f371 JR |
76 | %description -l pl.UTF-8 |
77 | Bogata w opcje i możliwości wersja tekstowej przeglądarki WWW - links. | |
78 | elinks jednak jest dedykowana głównie do testowania. | |
17631700 | 79 | |
3328f371 JR |
80 | %description -l pt_BR.UTF-8 |
81 | Links é um browser WWW modo texto, similar ao Lynx. O Links exibe | |
82 | tabelas, baixa arquivos em segundo plano, e usa as conexões HTTP/1.1 | |
c15f1e53 | 83 | keepalive. |
84 | ||
17631700 | 85 | %prep |
cdfd7eb6 | 86 | %setup -q |
ef0f233a | 87 | %patch0 -p1 |
1fa8ef0a | 88 | %patch1 -p1 |
0b57a582 | 89 | |
17631700 | 90 | %build |
663b78ce | 91 | %{__aclocal} |
285e9f62 | 92 | %{__autoconf} |
115d3038 | 93 | %{__autoheader} |
ad628403 | 94 | %configure \ |
eda372dc | 95 | HAVE_SMBCLIENT=yes \ |
2e552f3e | 96 | --disable-no-root \ |
3d4d38d9 AG |
97 | %{!?debug:--enable-fastmem} \ |
98 | %{?debug:--enable-debug} \ | |
cc7f804f | 99 | %{!?with_ipv6:--disable-ipv6} \ |
8ca357a6 | 100 | %{?with_bittorrent:--enable-bittorrent} \ |
3d4d38d9 AG |
101 | %{?with_cgi:--enable-cgi} \ |
102 | --enable-finger \ | |
103 | --enable-gopher \ | |
104 | --enable-nntp \ | |
105 | %{?with_256:--enable-256-colors} \ | |
106 | --enable-exmode \ | |
b631af97 | 107 | %{?with_fsp:--enable-fsp} \ |
3d4d38d9 | 108 | %{?with_leds:--enable-leds} \ |
8ca357a6 | 109 | --enable-marks \ |
3d4d38d9 | 110 | --enable-html-highlight \ |
3d4d38d9 AG |
111 | %{!?with_idn:--without-idn} \ |
112 | %{?with_guile:--with-guile} \ | |
113 | %{?with_perl:--with-perl} \ | |
62c5be6a | 114 | %{!?with_lua:--without-lua} \ |
8ca357a6 | 115 | %{?with_ruby:--with-ruby} \ |
3d4d38d9 AG |
116 | %{!?with_js:--without-spidermonkey} \ |
117 | %{?with_gnutls:--with-gnutls} \ | |
118 | %{!?with_openssl:--without-openssl} \ | |
82dd9b93 AG |
119 | --with%{!?with_x:out}-x |
120 | # xterm -e is default, one might want to change it to | |
121 | # something else | |
122 | # --with-xterm="xterm -e" | |
3d4d38d9 | 123 | |
1378c2d4 | 124 | %{__make} V=1 |
17631700 AM |
125 | |
126 | %install | |
127 | rm -rf $RPM_BUILD_ROOT | |
1568d5eb | 128 | install -d $RPM_BUILD_ROOT%{_desktopdir} \ |
ad628403 | 129 | $RPM_BUILD_ROOT%{_datadir}/%{name} \ |
c4be24e9 | 130 | $RPM_BUILD_ROOT{%{_sysconfdir},%{_pixmapsdir}} |
17631700 | 131 | |
1378c2d4 | 132 | %{__make} install V=1 \ |
834d1634 | 133 | DESTDIR=$RPM_BUILD_ROOT |
17631700 | 134 | |
1568d5eb | 135 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
5a8f1bd1 | 136 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png |
137 | ||
ef0f233a | 138 | %{?with_lua:install contrib/lua/*.lua $RPM_BUILD_ROOT%{_sysconfdir}} |
347f019c | 139 | |
269a2ef7 | 140 | %find_lang %{name} |
141 | ||
17631700 AM |
142 | %clean |
143 | rm -rf $RPM_BUILD_ROOT | |
144 | ||
269a2ef7 | 145 | %files -f %{name}.lang |
17631700 | 146 | %defattr(644,root,root,755) |
bf7521cb | 147 | %doc AUTHORS BUGS ChangeLog NEWS README SITES TODO |
ab99996e | 148 | %doc contrib/{keybind*,wipe-out-ssl*,lua/elinks-remote} |
5a8f1bd1 | 149 | %doc contrib/conv/{*awk,*.pl,*.sh} |
cf865ed3 | 150 | %doc doc/html/*.html |
17631700 | 151 | %attr(755,root,root) %{_bindir}/* |
17631700 | 152 | %{_mandir}/man*/* |
1faa0547 | 153 | %{_desktopdir}/*.desktop |
06096625 | 154 | %{_pixmapsdir}/* |
a153230d | 155 | %{?with_lua:%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}} |