/[packages]/updates/5/lynx/current/SPECS/lynx.spec
ViewVC logotype

Contents of /updates/5/lynx/current/SPECS/lynx.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1181606 - (show annotations) (download)
Thu Dec 7 13:35:00 2017 UTC (6 years, 4 months ago) by ns80
File size: 3328 byte(s)
- add patch for CVE-2017-1000211 (mga#22132)

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

  ViewVC Help
Powered by ViewVC 1.1.30