1 |
daviddavid |
1701459 |
%define prev rel.1 |
2 |
umeabot |
1839299 |
%define rel 5 |
3 |
blino |
626 |
|
4 |
daviddavid |
1200095 |
%define lpre %(echo %{prev} | tr -d .) |
5 |
wally |
467366 |
|
6 |
barjac |
303708 |
Name: lynx |
7 |
daviddavid |
1200095 |
Version: 2.8.9 |
8 |
|
|
Release: %mkrel -c %{lpre} %{rel} |
9 |
barjac |
303708 |
Summary: Text based browser for the world wide web |
10 |
|
|
License: GPLv2 |
11 |
|
|
Group: Networking/WWW |
12 |
danf |
1917222 |
URL: https://lynx.browser.org/ |
13 |
shlomif |
1211203 |
Source0: ftp://ftp.invisible-island.net/lynx/tarballs/lynx%{version}%{prev}.tar.bz2 |
14 |
danf |
1917222 |
# Source0: https://invisible-mirror.net/archives/lynx/tarballs/lynx%%{version}%%{prev}.tar.bz2 |
15 |
daviddavid |
1200095 |
Patch0: lynx-2.8.9-adapt-to-modern-file-localizations.patch |
16 |
|
|
Patch1: lynx-2.8.9-default-config.patch |
17 |
barjac |
303708 |
Patch2: lynx2-8-6-fix-ugly-color.patch |
18 |
barjac |
303924 |
Patch3: lynx2-8-7-tmp_dir.patch |
19 |
|
|
Patch4: lynx2-8-6-don-t-accept-command-line-args-to-telnet.patch |
20 |
ns80 |
1743576 |
Patch5: 90_CVE-2021-38165.patch |
21 |
daviddavid |
1200095 |
BuildRequires: gettext |
22 |
ovitters |
1145059 |
BuildRequires: pkgconfig(openssl) |
23 |
daviddavid |
1200095 |
BuildRequires: pkgconfig(ncurses) |
24 |
|
|
BuildRequires: pkgconfig(openssl) |
25 |
ovitters |
1145059 |
BuildRequires: pkgconfig(zlib) |
26 |
|
|
BuildRequires: pkgconfig(ncursesw) |
27 |
|
|
BuildRequires: pkgconfig(libidn) |
28 |
barjac |
303708 |
Provides: webclient = %{version}-%{release} |
29 |
|
|
Provides: lynx-ssl = %{version}-%{release} |
30 |
|
|
Obsoletes: lynx-ssl < %{version}-%{release} |
31 |
|
|
|
32 |
blino |
626 |
%description |
33 |
|
|
This a terminal based WWW browser. While it does not make any attempt |
34 |
|
|
at displaying graphics, it has good support for HTML text formatting, |
35 |
|
|
forms, and tables. |
36 |
|
|
|
37 |
|
|
This version includes support for SSL encryption. |
38 |
|
|
|
39 |
|
|
WARNING: In some countries, it is illegal to export this package. In some |
40 |
|
|
countries, it may even be illegal to use it. |
41 |
|
|
|
42 |
|
|
|
43 |
|
|
%prep |
44 |
daviddavid |
1200095 |
%setup -q -n %{name}%{version}%{prev} |
45 |
ns80 |
1181605 |
%autopatch -p1 |
46 |
barjac |
303708 |
|
47 |
blino |
626 |
perl -pi -e 's,^#LOCALE_CHARSET:.*,LOCALE_CHARSET:TRUE,' lynx.cfg |
48 |
|
|
|
49 |
|
|
%build |
50 |
|
|
|
51 |
|
|
debian_options=`cat << DEBIAN |
52 |
barjac |
303708 |
--enable-warnings |
53 |
|
|
--enable-8bit-toupper |
54 |
|
|
--enable-externs |
55 |
|
|
--enable-cgi-links |
56 |
|
|
--enable-persistent-cookies --enable-nls |
57 |
|
|
--enable-prettysrc --enable-source-cache |
58 |
|
|
--enable-charset-choice |
59 |
|
|
--enable-default-colors |
60 |
|
|
--enable-ipv6 |
61 |
|
|
--enable-nested-tables --enable-read-eta |
62 |
|
|
--with-zlib |
63 |
blino |
626 |
DEBIAN` |
64 |
|
|
# removed --enable-exec-links --enable-exec-scripts, |
65 |
|
|
# it goes together with LOCAL_EXECUTION_LINKS_* in lynx.cfg |
66 |
|
|
|
67 |
|
|
|
68 |
|
|
redhat_options=`cat << REDHAT |
69 |
wally |
467362 |
--with-screen=ncursesw |
70 |
barjac |
303708 |
--enable-internal-links |
71 |
|
|
--enable-libjs |
72 |
|
|
--enable-scrollbar |
73 |
|
|
--enable-file-upload |
74 |
|
|
--enable-locale-charset |
75 |
wally |
467362 |
--with-ssl=%{_libdir} |
76 |
barjac |
303708 |
--enable-addrlist-page |
77 |
|
|
--enable-justify-elts |
78 |
blino |
626 |
REDHAT` |
79 |
|
|
|
80 |
|
|
other_options=`cat << OTHER |
81 |
barjac |
303708 |
--enable-color-style |
82 |
|
|
--enable-nsl-fork |
83 |
shlomif |
1211203 |
--enable-debug |
84 |
joequant |
1748728 |
--disable-rpath-hack |
85 |
blino |
626 |
OTHER` |
86 |
|
|
|
87 |
|
|
# (cf INSTALLATION file for more about the options) |
88 |
|
|
# --with-included-gettext is the default |
89 |
|
|
# --enable-kbd-layout not useful enough |
90 |
|
|
# --enable-cjk not needed for CJK and may go away in a future release |
91 |
wally |
1479808 |
%configure --libdir=/usr/share/lynx $debian_options $redhat_options $other_options |
92 |
daviddavid |
1200095 |
%make_build |
93 |
blino |
626 |
|
94 |
|
|
%install |
95 |
daviddavid |
1200095 |
%make_install install-help |
96 |
blino |
626 |
|
97 |
barjac |
303708 |
install -d %{buildroot}%{_sysconfdir} |
98 |
barjac |
303924 |
cat > %{buildroot}%{_sysconfdir}/lynx-site.cfg <<EOF |
99 |
blino |
626 |
# Place any local lynx configuration options (proxies etc.) here. |
100 |
|
|
EOF |
101 |
|
|
|
102 |
|
|
%find_lang lynx |
103 |
|
|
|
104 |
|
|
%files -f lynx.lang |
105 |
|
|
%doc README |
106 |
|
|
%config(noreplace,missingok) %{_sysconfdir}/lynx-site.cfg |
107 |
|
|
%config(noreplace) %{_sysconfdir}/lynx.cfg |
108 |
|
|
%config(noreplace) %{_sysconfdir}/lynx.lss |
109 |
|
|
%{_mandir}/*/* |
110 |
|
|
%{_bindir}/* |
111 |
|
|
%{_datadir}/lynx_help |