/[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 303942 - (show annotations) (download)
Tue Oct 9 14:19:13 2012 UTC (8 years, 8 months ago) by barjac
File size: 3124 byte(s)
add 2_5x to configure
1 %define versio_ 2-8-8
2 %define pre dev.14
3
4 Name: lynx
5 Version: 2.8.8
6 Release: %mkrel 1.%{pre}
7 Summary: Text based browser for the world wide web
8 License: GPLv2
9 URL: http://lynx.isc.org
10 Group: Networking/WWW
11 BuildRequires: gettext
12 BuildRequires: openssl-devel
13 BuildRequires: ncurses-devel
14 Source0: http://lynx.isc.org/current/lynx%{version}%{pre}.tar.bz2
15 Patch0: lynx2-8-7-adapt-to-modern-file-localizations.patch
16 Patch1: lynx2-8-8-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
21 BuildRequires: openssl-devel
22 BuildRequires: zlib-devel
23 BuildRequires: libncursesw-devel
24 Provides: webclient = %{version}-%{release}
25 Provides: lynx-ssl = %{version}-%{release}
26 Obsoletes: lynx-ssl < %{version}-%{release}
27
28 %description
29 This a terminal based WWW browser. While it does not make any attempt
30 at displaying graphics, it has good support for HTML text formatting,
31 forms, and tables.
32
33 This version includes support for SSL encryption.
34
35 WARNING: In some countries, it is illegal to export this package. In some
36 countries, it may even be illegal to use it.
37
38
39 %prep
40 %setup -q -n %{name}%{versio_}
41 %patch0 -p1
42 %patch1 -p1
43 %patch2 -p1
44 %patch3 -p1
45 %patch4 -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
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 OTHER`
84
85 # (cf INSTALLATION file for more about the options)
86 # --with-included-gettext is the default
87 # --enable-kbd-layout not useful enough
88 # --enable-cjk not needed for CJK and may go away in a future release
89 %configure2_5x --libdir=/usr/share/lynx $debian_options $redhat_options $other_options
90 %make
91
92 %install
93 rm -rf %{buildroot}
94 %makeinstall_std install-help
95
96 install -d %{buildroot}%{_sysconfdir}
97 cat > %{buildroot}%{_sysconfdir}/lynx-site.cfg <<EOF
98 # Place any local lynx configuration options (proxies etc.) here.
99 EOF
100
101 %find_lang lynx
102
103 %files -f lynx.lang
104 %doc README
105 %config(noreplace,missingok) %{_sysconfdir}/lynx-site.cfg
106 %config(noreplace) %{_sysconfdir}/lynx.cfg
107 %config(noreplace) %{_sysconfdir}/lynx.lss
108 %{_mandir}/*/*
109 %{_bindir}/*
110 %{_datadir}/lynx_help
111
112
113

  ViewVC Help
Powered by ViewVC 1.1.28