]>
Commit | Line | Data |
---|---|---|
fea9e3e9 | 1 | # |
21bf3c6a | 2 | # Conditional build: |
b1e248e0 JB |
3 | # - protocols |
4 | %bcond_without bittorrent # BitTorrent protocol support | |
5 | %bcond_without fsp # FSP support | |
6 | %bcond_without idn # Internation Domain Names support | |
7 | %bcond_without ipv6 # IPv6 support | |
8 | %bcond_with smb # smb protocol support (non-distib: recent libsmbclient is GPL v3) | |
9 | %bcond_with gnutls # GNUTLS-based SSL support (instead of openssl) | |
10 | %bcond_without openssl # OpenSSL-based SSL support | |
11 | # - content | |
12 | %bcond_without cgi # Local CGI support | |
612abce5 WF |
13 | %bcond_without brotli # Brotli compression support |
14 | %bcond_without js # experimental (yet quite usable) JavaScript support (using quickjs) | |
b1e248e0 | 15 | %bcond_with lzma # LZMA support (old API, incompatible with xz-libs) |
612abce5 | 16 | %bcond_without zstd # zstd compression support |
b1e248e0 JB |
17 | # - scripting |
18 | %bcond_with guile # Guile scripting support (non-distrib: guile 2 is LGPL v3+) | |
19 | %bcond_without lua # Lua scripting | |
612abce5 | 20 | %bcond_with perl # Perl scripting |
b1e248e0 JB |
21 | %bcond_with python # Python scripting support |
22 | %bcond_with ruby # (experimental) Ruby scripting support | |
23 | # - display and UI | |
24 | %bcond_without 256 # 256 colors support | |
25 | %bcond_without led # LEDs | |
26 | %bcond_without truecolor # true color | |
b1e248e0 JB |
27 | %bcond_with x # Use the X Window System |
28 | # - misc | |
29 | %bcond_without verbose # verbose build (V=1) | |
5f8650b6 | 30 | %bcond_without libevent # build without libevent |
e0b0004d | 31 | |
3d4d38d9 AG |
32 | %if %{with gnutls} |
33 | %undefine with_openssl | |
34 | %endif | |
e0b0004d | 35 | |
17631700 | 36 | Summary: Experimantal Links (text WWW browser) |
f85cbf5d ER |
37 | Summary(es.UTF-8): El links es un browser para modo texto, similar a lynx |
38 | Summary(pl.UTF-8): Eksperymentalny Links (tekstowa przeglądarka WWW) | |
39 | Summary(pt_BR.UTF-8): O links é um browser para modo texto, similar ao lynx | |
17631700 | 40 | Name: elinks |
7ba08f78 WF |
41 | Version: 0.15.1 |
42 | Release: 1 | |
e2affc83 | 43 | Epoch: 1 |
d8169248 | 44 | License: GPL v2 |
17631700 | 45 | Group: Applications/Networking |
612abce5 | 46 | Source0: https://github.com/rkd77/elinks/releases/download/v%{version}/%{name}-%{version}.tar.xz |
7ba08f78 | 47 | # Source0-md5: 9bf8aad8d480139b9420c19f18ae9a4e |
17631700 | 48 | Source1: %{name}.desktop |
5a8f1bd1 | 49 | Source2: links.png |
8ca357a6 | 50 | URL: http://www.elinks.cz/ |
c20ec49a | 51 | BuildRequires: autoconf >= 2.61 |
17631700 | 52 | BuildRequires: automake |
5a8f1bd1 | 53 | BuildRequires: bzip2-devel |
fcffdc5b | 54 | BuildRequires: expat-devel |
b631af97 | 55 | %{?with_fsp:BuildRequires: fsplib-devel} |
fda44b2d | 56 | BuildRequires: gettext-tools |
261ce4dd | 57 | BuildRequires: git-core |
e0b0004d | 58 | %{?with_gnutls:BuildRequires: gnutls-devel >= 1.2.5} |
17631700 | 59 | BuildRequires: gpm-devel |
3d4d38d9 | 60 | %{?with_guile:BuildRequires: guile-devel} |
fbbf0870 | 61 | BuildRequires: libstdc++-devel |
612abce5 | 62 | %{?with_js:BuildRequires: libxml++5-devel >= 5.0.1-2} |
aca21feb | 63 | BuildRequires: rpmbuild(macros) >= 1.736 |
612abce5 | 64 | %{?with_js:BuildRequires: sqlite3-devel} |
8c08d917 | 65 | %{?with_brotli:BuildRequires: libbrotli-devel} |
5f8650b6 | 66 | %{?with_libevent:BuildRequires: libevent-devel} |
3d4d38d9 | 67 | %{?with_idn:BuildRequires: libidn-devel} |
505355c8 | 68 | %{?with_smb:BuildRequires: libsmbclient-devel} |
612abce5 | 69 | %{?with_lua:BuildRequires: lua53-devel} |
505355c8 | 70 | %{?with_lzma:BuildRequires: lzma-devel} |
612abce5 | 71 | BuildRequires: meson |
1c33e430 | 72 | BuildRequires: ncurses-devel >= 5.1 |
fbbf0870 | 73 | BuildRequires: ninja >= 1.5 |
3d4d38d9 AG |
74 | %{?with_openssl:BuildRequires: openssl-devel >= 0.9.7d} |
75 | %{?with_perl:BuildRequires: perl-devel} | |
f28e64c7 | 76 | BuildRequires: pkgconfig |
612abce5 | 77 | %{?with_python:BuildRequires: python3-devel} |
fbbf0870 | 78 | %{?with_js:BuildRequires: quickjs-devel >= 20210327-4} |
8ca357a6 | 79 | %{?with_ruby:BuildRequires: ruby-devel} |
612abce5 | 80 | BuildRequires: sed |
742dfa9f | 81 | BuildRequires: tar >= 1:1.22 |
42ac557b | 82 | BuildRequires: tre-devel |
f28e64c7 | 83 | BuildRequires: which |
742dfa9f | 84 | BuildRequires: xz |
5a8f1bd1 | 85 | BuildRequires: zlib-devel |
612abce5 | 86 | %{?with_zstd:BuildRequires: zstd-devel} |
e1bc1545 | 87 | Suggests: mailcap |
17631700 AM |
88 | Provides: webclient |
89 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
90 | ||
c4be24e9 | 91 | %define _sysconfdir /etc/elinks |
e0b0004d | 92 | %define specflags_ia32 -fomit-frame-pointer |
4fc089e9 | 93 | |
17631700 | 94 | %description |
cd6ad879 JB |
95 | This is the elinks tree - intended to provide feature-rich version of |
96 | links, however not rock-stable and dedicated mainly for testing. Its | |
97 | purpose is to make alternative to links, until Mikulas will have some | |
98 | time to maintain it, and to test and tune various patches for Mikulas | |
99 | to be able to include them in the official links releases. | |
17631700 | 100 | |
3328f371 | 101 | %description -l es.UTF-8 |
c15f1e53 | 102 | Links es un browser WWW modo texto, similar al Lynx. El links muestra |
103 | tablas, hace baja archivos en segundo plano, y usa conexiones HTTP/1.1 | |
104 | keepalive. | |
105 | ||
3328f371 JR |
106 | %description -l pl.UTF-8 |
107 | Bogata w opcje i możliwości wersja tekstowej przeglądarki WWW - links. | |
108 | elinks jednak jest dedykowana głównie do testowania. | |
17631700 | 109 | |
3328f371 JR |
110 | %description -l pt_BR.UTF-8 |
111 | Links é um browser WWW modo texto, similar ao Lynx. O Links exibe | |
112 | tabelas, baixa arquivos em segundo plano, e usa as conexões HTTP/1.1 | |
c15f1e53 | 113 | keepalive. |
114 | ||
17631700 | 115 | %prep |
612abce5 | 116 | %setup -q |
0b57a582 | 117 | |
17631700 | 118 | %build |
612abce5 WF |
119 | %meson build \ |
120 | %{?with_bittorrent:-Dbittorrent=true} \ | |
121 | %{?with_cgi:-Dcgi=true} \ | |
122 | -D88-colors=true \ | |
123 | %{?with_256:-D256-colors=true} \ | |
124 | %{?with_truecolor:-Dtrue-color=true} \ | |
125 | -Dexmode=true \ | |
126 | %{?debug:-Ddebug=true} \ | |
127 | %{!?debug:-Dfastmem=true} \ | |
128 | -Dfinger=true \ | |
ea719f7c | 129 | -Dfsp=%{__true_false fsp} \ |
612abce5 WF |
130 | -Dgemini=true \ |
131 | -Dgettext=true \ | |
132 | -Dgopher=true \ | |
133 | -Dhtml-highlight=true \ | |
134 | %{!?with_ipv6:-Dipv6=false} \ | |
135 | %{?with_leds:-Dleds=true} \ | |
136 | -Dmarks=true \ | |
137 | -Dnntp=true \ | |
138 | -Dno-root=false \ | |
139 | %{?with_smb:-Dsmb=true} \ | |
140 | %{?with_brotli:-Dbrotli=true} \ | |
141 | %{?with_zstd:-Dzstd=true} \ | |
142 | %{?with_gnutls:-Dgnutls=true} \ | |
143 | %{?with_guile:-Dguile=true} \ | |
144 | %{!?with_idn:-Didn=false} \ | |
145 | %{?with_lua:-Dluapkg=lua5.3} \ | |
146 | %{?with_lzma:-Dlzma=true} \ | |
147 | %{?with_openssl:-Dopenssl=true} \ | |
148 | %{?with_perl:-Dperl=true} \ | |
149 | %{?with_python:-Dpython=true} \ | |
150 | %{?with_ruby:-Druby=true} \ | |
151 | %{?with_js:-Dquickjs=true} \ | |
5f8650b6 WF |
152 | %{?with_x:-Dx=true} \ |
153 | %{?with_libevent:-Dlibevent=true} | |
612abce5 WF |
154 | |
155 | %ninja_build -C build | |
17631700 AM |
156 | |
157 | %install | |
158 | rm -rf $RPM_BUILD_ROOT | |
612abce5 WF |
159 | %ninja_install -C build |
160 | ||
1568d5eb | 161 | install -d $RPM_BUILD_ROOT%{_desktopdir} \ |
ad628403 | 162 | $RPM_BUILD_ROOT%{_datadir}/%{name} \ |
c4be24e9 | 163 | $RPM_BUILD_ROOT{%{_sysconfdir},%{_pixmapsdir}} |
17631700 | 164 | |
e0b0004d ER |
165 | cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
166 | cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png | |
5a8f1bd1 | 167 | |
ef0f233a | 168 | %{?with_lua:install contrib/lua/*.lua $RPM_BUILD_ROOT%{_sysconfdir}} |
612abce5 | 169 | sed -i -e 's|bin/lua|bin/lua5.3|g' $RPM_BUILD_ROOT%{_sysconfdir}/*lua |
347f019c | 170 | |
269a2ef7 | 171 | %find_lang %{name} |
172 | ||
17631700 AM |
173 | %clean |
174 | rm -rf $RPM_BUILD_ROOT | |
175 | ||
269a2ef7 | 176 | %files -f %{name}.lang |
17631700 | 177 | %defattr(644,root,root,755) |
612abce5 | 178 | %doc AUTHORS BUGS ChangeLog NEWS README SITES TODO |
c20ec49a JB |
179 | %doc contrib/{keybind*,wipe-out-ssl*,lua/elinks-remote} contrib/conv/{*awk,*.pl,*.sh} |
180 | %attr(755,root,root) %{_bindir}/elinks | |
181 | %{_mandir}/man1/elinks.1* | |
182 | %{_mandir}/man5/elinks.conf.5* | |
183 | %{_mandir}/man5/elinkskeys.5* | |
184 | %{_desktopdir}/elinks.desktop | |
185 | %{_pixmapsdir}/elinks.png | |
186 | %if %{with lua} | |
187 | %dir %{_sysconfdir} | |
188 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.lua | |
189 | %endif |