/[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 303708 - (hide annotations) (download)
Mon Oct 8 23:26:52 2012 UTC (11 years, 5 months ago) by barjac
File size: 3132 byte(s)
- New version 2.8.8
- Fixes bug #7399 
- Thanks to Joseph Wang for work on patches
- Spec cleaned
1 barjac 303708 %define versio_ 2-8-8
2     %define pre dev.8
3 blino 626
4 barjac 303708 Name: lynx
5     Version: 2.8.8
6     Release: %mkrel 0.%{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: ftp://artfiles.org/lynx.isc.org/current/lynx%{version}%{pre}.tar.bz2
15     Patch0: lynx2-8-7-adapt-to-modern-file-localizations.patch
16     Patch1: lynx-2.8.8-mga-lynx.cfg.patch
17     Patch2: lynx2-8-6-fix-ugly-color.patch
18     Patch10: lynx2-8-7-tmp_dir.patch
19     Patch11: 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 303708 %patch1 -p0
43 blino 626 %patch2 -p1
44     %patch10 -p1
45     %patch11 -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     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.30