]> git.pld-linux.org Git - packages/elinks.git/blame - elinks.spec
remove typeahead-beginning and js187 patches dropped from spec in 612abce
[packages/elinks.git] / elinks.spec
CommitLineData
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)
e0b0004d 30
3d4d38d9
AG
31%if %{with gnutls}
32%undefine with_openssl
33%endif
e0b0004d 34
17631700 35Summary: Experimantal Links (text WWW browser)
f85cbf5d
ER
36Summary(es.UTF-8): El links es un browser para modo texto, similar a lynx
37Summary(pl.UTF-8): Eksperymentalny Links (tekstowa przeglądarka WWW)
38Summary(pt_BR.UTF-8): O links é um browser para modo texto, similar ao lynx
17631700 39Name: elinks
612abce5
WF
40Version: 0.15.0
41Release: 1
e2affc83 42Epoch: 1
d8169248 43License: GPL v2
17631700 44Group: Applications/Networking
612abce5
WF
45Source0: https://github.com/rkd77/elinks/releases/download/v%{version}/%{name}-%{version}.tar.xz
46# Source0-md5: 8fe2e81d2cea75f57cd3cf9bdda6821b
17631700 47Source1: %{name}.desktop
5a8f1bd1 48Source2: links.png
8ca357a6 49URL: http://www.elinks.cz/
c20ec49a 50BuildRequires: autoconf >= 2.61
17631700 51BuildRequires: automake
5a8f1bd1 52BuildRequires: bzip2-devel
fcffdc5b 53BuildRequires: expat-devel
b631af97 54%{?with_fsp:BuildRequires: fsplib-devel}
fda44b2d 55BuildRequires: gettext-tools
e0b0004d 56%{?with_gnutls:BuildRequires: gnutls-devel >= 1.2.5}
17631700 57BuildRequires: gpm-devel
3d4d38d9 58%{?with_guile:BuildRequires: guile-devel}
612abce5 59%{?with_js:BuildRequires: libxml++5-devel >= 5.0.1-2}
aca21feb 60BuildRequires: ninja
1d73e990 61%{?with_js:BuildRequires: quickjs-devel >= 20210327-4}
aca21feb 62BuildRequires: rpmbuild(macros) >= 1.736
612abce5 63%{?with_js:BuildRequires: sqlite3-devel}
8c08d917 64%{?with_brotli:BuildRequires: libbrotli-devel}
3d4d38d9 65%{?with_idn:BuildRequires: libidn-devel}
505355c8 66%{?with_smb:BuildRequires: libsmbclient-devel}
612abce5 67%{?with_lua:BuildRequires: lua53-devel}
505355c8 68%{?with_lzma:BuildRequires: lzma-devel}
612abce5 69BuildRequires: meson
1c33e430 70BuildRequires: ncurses-devel >= 5.1
3d4d38d9
AG
71%{?with_openssl:BuildRequires: openssl-devel >= 0.9.7d}
72%{?with_perl:BuildRequires: perl-devel}
f28e64c7 73BuildRequires: pkgconfig
612abce5 74%{?with_python:BuildRequires: python3-devel}
8ca357a6 75%{?with_ruby:BuildRequires: ruby-devel}
612abce5 76BuildRequires: sed
742dfa9f 77BuildRequires: tar >= 1:1.22
42ac557b 78BuildRequires: tre-devel
f28e64c7 79BuildRequires: which
742dfa9f 80BuildRequires: xz
5a8f1bd1 81BuildRequires: zlib-devel
612abce5 82%{?with_zstd:BuildRequires: zstd-devel}
e1bc1545 83Suggests: mailcap
17631700
AM
84Provides: webclient
85BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
86
c4be24e9 87%define _sysconfdir /etc/elinks
e0b0004d 88%define specflags_ia32 -fomit-frame-pointer
4fc089e9 89
17631700 90%description
cd6ad879
JB
91This is the elinks tree - intended to provide feature-rich version of
92links, however not rock-stable and dedicated mainly for testing. Its
93purpose is to make alternative to links, until Mikulas will have some
94time to maintain it, and to test and tune various patches for Mikulas
95to be able to include them in the official links releases.
17631700 96
3328f371 97%description -l es.UTF-8
c15f1e53 98Links es un browser WWW modo texto, similar al Lynx. El links muestra
99tablas, hace baja archivos en segundo plano, y usa conexiones HTTP/1.1
100keepalive.
101
3328f371
JR
102%description -l pl.UTF-8
103Bogata w opcje i możliwości wersja tekstowej przeglądarki WWW - links.
104elinks jednak jest dedykowana głównie do testowania.
17631700 105
3328f371
JR
106%description -l pt_BR.UTF-8
107Links é um browser WWW modo texto, similar ao Lynx. O Links exibe
108tabelas, baixa arquivos em segundo plano, e usa as conexões HTTP/1.1
c15f1e53 109keepalive.
110
17631700 111%prep
612abce5 112%setup -q
0b57a582 113
17631700 114%build
612abce5
WF
115%meson build \
116 %{?with_bittorrent:-Dbittorrent=true} \
117 %{?with_cgi:-Dcgi=true} \
118 -D88-colors=true \
119 %{?with_256:-D256-colors=true} \
120 %{?with_truecolor:-Dtrue-color=true} \
121 -Dexmode=true \
122 %{?debug:-Ddebug=true} \
123 %{!?debug:-Dfastmem=true} \
124 -Dfinger=true \
125 %{?with_fsp:-Dfsp=true} \
126 -Dgemini=true \
127 -Dgettext=true \
128 -Dgopher=true \
129 -Dhtml-highlight=true \
130 %{!?with_ipv6:-Dipv6=false} \
131 %{?with_leds:-Dleds=true} \
132 -Dmarks=true \
133 -Dnntp=true \
134 -Dno-root=false \
135 %{?with_smb:-Dsmb=true} \
136 %{?with_brotli:-Dbrotli=true} \
137 %{?with_zstd:-Dzstd=true} \
138 %{?with_gnutls:-Dgnutls=true} \
139 %{?with_guile:-Dguile=true} \
140 %{!?with_idn:-Didn=false} \
141 %{?with_lua:-Dluapkg=lua5.3} \
142 %{?with_lzma:-Dlzma=true} \
143 %{?with_openssl:-Dopenssl=true} \
144 %{?with_perl:-Dperl=true} \
145 %{?with_python:-Dpython=true} \
146 %{?with_ruby:-Druby=true} \
147 %{?with_js:-Dquickjs=true} \
148 %{?with_x:-Dx=true}
149
150%ninja_build -C build
17631700
AM
151
152%install
153rm -rf $RPM_BUILD_ROOT
612abce5
WF
154%ninja_install -C build
155
1568d5eb 156install -d $RPM_BUILD_ROOT%{_desktopdir} \
ad628403 157 $RPM_BUILD_ROOT%{_datadir}/%{name} \
c4be24e9 158 $RPM_BUILD_ROOT{%{_sysconfdir},%{_pixmapsdir}}
17631700 159
e0b0004d
ER
160cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
161cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
5a8f1bd1 162
ef0f233a 163%{?with_lua:install contrib/lua/*.lua $RPM_BUILD_ROOT%{_sysconfdir}}
612abce5 164sed -i -e 's|bin/lua|bin/lua5.3|g' $RPM_BUILD_ROOT%{_sysconfdir}/*lua
347f019c 165
269a2ef7 166%find_lang %{name}
167
17631700
AM
168%clean
169rm -rf $RPM_BUILD_ROOT
170
269a2ef7 171%files -f %{name}.lang
17631700 172%defattr(644,root,root,755)
612abce5 173%doc AUTHORS BUGS ChangeLog NEWS README SITES TODO
c20ec49a
JB
174%doc contrib/{keybind*,wipe-out-ssl*,lua/elinks-remote} contrib/conv/{*awk,*.pl,*.sh}
175%attr(755,root,root) %{_bindir}/elinks
176%{_mandir}/man1/elinks.1*
177%{_mandir}/man5/elinks.conf.5*
178%{_mandir}/man5/elinkskeys.5*
179%{_desktopdir}/elinks.desktop
180%{_pixmapsdir}/elinks.png
181%if %{with lua}
182%dir %{_sysconfdir}
183%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.lua
184%endif
This page took 0.116785 seconds and 4 git commands to generate.