/[packages]/updates/5/lynx/releases/2.8.8/1.rel2.2.mga5/SPECS/lynx.spec
ViewVC logotype

Contents of /updates/5/lynx/releases/2.8.8/1.rel2.2.mga5/SPECS/lynx.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 823424 - (show annotations) (download)
Thu Jun 18 21:51:43 2015 UTC (8 years, 10 months ago) by umeabot
File size: 3210 byte(s)
SILENT Branching for Mageia 5
1 %define versio_ 2-8-8
2 %define pre rel.2
3 %define rel 2
4
5 %define lpre %(echo %{pre} | tr -d .)
6
7 Name: lynx
8 Version: 2.8.8
9 Release: %mkrel 1.%{lpre}.%{rel}
10 Summary: Text based browser for the world wide web
11 License: GPLv2
12 URL: http://lynx.isc.org
13 Group: Networking/WWW
14 BuildRequires: gettext
15 BuildRequires: openssl-devel
16 BuildRequires: ncurses-devel
17 Source0: http://lynx.isc.org/current/lynx%{version}%{pre}.tar.bz2
18 Patch0: lynx2-8-7-adapt-to-modern-file-localizations.patch
19 Patch1: lynx2-8-8-default-config.patch
20 Patch2: lynx2-8-6-fix-ugly-color.patch
21 Patch3: lynx2-8-7-tmp_dir.patch
22 Patch4: lynx2-8-6-don-t-accept-command-line-args-to-telnet.patch
23
24 BuildRequires: openssl-devel
25 BuildRequires: zlib-devel
26 BuildRequires: libncursesw-devel
27 BuildRequires: libidn-devel
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}%{versio_}
45 %patch0 -p1
46 %patch1 -p1
47 %patch2 -p1
48 %patch3 -p1
49 %patch4 -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