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