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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 303924 - (hide annotations) (download)
Tue Oct 9 13:24:04 2012 UTC (8 years, 7 months ago) by barjac
File size: 3121 byte(s)
- new tarball dev.14
- re-enumerate patches for clarity
- use correct default config patch
1 barjac 303708 %define versio_ 2-8-8
2 barjac 303924 %define pre dev.14
3 blino 626
4 barjac 303708 Name: lynx
5     Version: 2.8.8
6 barjac 303924 Release: %mkrel 1.%{pre}
7 barjac 303708 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 barjac 303924 Source0: http://lynx.isc.org/current/lynx%{version}%{pre}.tar.bz2
15 barjac 303708 Patch0: lynx2-8-7-adapt-to-modern-file-localizations.patch
16 barjac 303924 Patch1: lynx2-8-8-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 blino 626
21 barjac 303708 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 blino 626 %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 barjac 303924 %patch1 -p1
43 blino 626 %patch2 -p1
44 barjac 303924 %patch3 -p1
45     %patch4 -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 barjac 303708 --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 blino 626 REDHAT`
79    
80     other_options=`cat << OTHER
81 barjac 303708 --enable-color-style
82     --enable-nsl-fork
83 blino 626 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    
90     %configure --libdir=/usr/share/lynx $debian_options $redhat_options $other_options
91     %make
92    
93     %install
94 barjac 303708 rm -rf %{buildroot}
95 blino 626 %makeinstall_std install-help
96    
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
112    
113    
114    

  ViewVC Help
Powered by ViewVC 1.1.28