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