/[packages]/cauldron/lynx/current/SPECS/lynx.spec
ViewVC logotype

Contents of /cauldron/lynx/current/SPECS/lynx.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1917222 - (show annotations) (download)
Sun Dec 4 02:31:01 2022 UTC (16 months, 3 weeks ago) by danf
File size: 3394 byte(s)
SILENT: Switch URLs to https:
1 %define prev rel.1
2 %define rel 5
3
4 %define lpre %(echo %{prev} | tr -d .)
5
6 Name: lynx
7 Version: 2.8.9
8 Release: %mkrel -c %{lpre} %{rel}
9 Summary: Text based browser for the world wide web
10 License: GPLv2
11 Group: Networking/WWW
12 URL: https://lynx.browser.org/
13 Source0: ftp://ftp.invisible-island.net/lynx/tarballs/lynx%{version}%{prev}.tar.bz2
14 # Source0: https://invisible-mirror.net/archives/lynx/tarballs/lynx%%{version}%%{prev}.tar.bz2
15 Patch0: lynx-2.8.9-adapt-to-modern-file-localizations.patch
16 Patch1: lynx-2.8.9-default-config.patch
17 Patch2: lynx2-8-6-fix-ugly-color.patch
18 Patch3: lynx2-8-7-tmp_dir.patch
19 Patch4: lynx2-8-6-don-t-accept-command-line-args-to-telnet.patch
20 Patch5: 90_CVE-2021-38165.patch
21 BuildRequires: gettext
22 BuildRequires: pkgconfig(openssl)
23 BuildRequires: pkgconfig(ncurses)
24 BuildRequires: pkgconfig(openssl)
25 BuildRequires: pkgconfig(zlib)
26 BuildRequires: pkgconfig(ncursesw)
27 BuildRequires: pkgconfig(libidn)
28 Provides: webclient = %{version}-%{release}
29 Provides: lynx-ssl = %{version}-%{release}
30 Obsoletes: lynx-ssl < %{version}-%{release}
31
32 %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 %setup -q -n %{name}%{version}%{prev}
45 %autopatch -p1
46
47 perl -pi -e 's,^#LOCALE_CHARSET:.*,LOCALE_CHARSET:TRUE,' lynx.cfg
48
49 %build
50
51 debian_options=`cat << DEBIAN
52 --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 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 --with-screen=ncursesw
70 --enable-internal-links
71 --enable-libjs
72 --enable-scrollbar
73 --enable-file-upload
74 --enable-locale-charset
75 --with-ssl=%{_libdir}
76 --enable-addrlist-page
77 --enable-justify-elts
78 REDHAT`
79
80 other_options=`cat << OTHER
81 --enable-color-style
82 --enable-nsl-fork
83 --enable-debug
84 --disable-rpath-hack
85 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 %configure --libdir=/usr/share/lynx $debian_options $redhat_options $other_options
92 %make_build
93
94 %install
95 %make_install install-help
96
97 install -d %{buildroot}%{_sysconfdir}
98 cat > %{buildroot}%{_sysconfdir}/lynx-site.cfg <<EOF
99 # 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

  ViewVC Help
Powered by ViewVC 1.1.30