/[packages]/updates/5/lynx/releases/2.8.8/1.dev.16.mga4/SPECS/lynx.spec
ViewVC logotype

Annotation of /updates/5/lynx/releases/2.8.8/1.dev.16.mga4/SPECS/lynx.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 467362 - (hide annotations) (download)
Sat Aug 17 19:46:23 2013 UTC (10 years, 8 months ago) by wally
Original Path: cauldron/lynx/current/SPECS/lynx.spec
File size: 3163 byte(s)
- fix build with new openssl, seems like this small change is enough to fix the build (SILENT)
- remove trailing space (SILENT)
1 barjac 303708 %define versio_ 2-8-8
2 luigiwalser 464812 %define pre dev.16
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 wally 467361 BuildRequires: libidn-devel
25 barjac 303708 Provides: webclient = %{version}-%{release}
26     Provides: lynx-ssl = %{version}-%{release}
27     Obsoletes: lynx-ssl < %{version}-%{release}
28    
29 blino 626 %description
30     This a terminal based WWW browser. While it does not make any attempt
31     at displaying graphics, it has good support for HTML text formatting,
32     forms, and tables.
33    
34     This version includes support for SSL encryption.
35    
36     WARNING: In some countries, it is illegal to export this package. In some
37     countries, it may even be illegal to use it.
38    
39    
40     %prep
41     %setup -q -n %{name}%{versio_}
42     %patch0 -p1
43 barjac 303924 %patch1 -p1
44 blino 626 %patch2 -p1
45 barjac 303924 %patch3 -p1
46     %patch4 -p1
47 barjac 303708
48 blino 626 perl -pi -e 's,^#LOCALE_CHARSET:.*,LOCALE_CHARSET:TRUE,' lynx.cfg
49    
50     %build
51    
52     debian_options=`cat << DEBIAN
53 barjac 303708 --enable-warnings
54     --enable-8bit-toupper
55     --enable-externs
56     --enable-cgi-links
57     --enable-persistent-cookies --enable-nls
58     --enable-prettysrc --enable-source-cache
59     --enable-charset-choice
60     --enable-default-colors
61     --enable-ipv6
62     --enable-nested-tables --enable-read-eta
63     --with-zlib
64 blino 626 DEBIAN`
65     # removed --enable-exec-links --enable-exec-scripts,
66     # it goes together with LOCAL_EXECUTION_LINKS_* in lynx.cfg
67    
68    
69     redhat_options=`cat << REDHAT
70 wally 467362 --with-screen=ncursesw
71 barjac 303708 --enable-internal-links
72     --enable-libjs
73     --enable-scrollbar
74     --enable-file-upload
75     --enable-locale-charset
76 wally 467362 --with-ssl=%{_libdir}
77 barjac 303708 --enable-addrlist-page
78     --enable-justify-elts
79 blino 626 REDHAT`
80    
81     other_options=`cat << OTHER
82 barjac 303708 --enable-color-style
83     --enable-nsl-fork
84 blino 626 OTHER`
85    
86     # (cf INSTALLATION file for more about the options)
87     # --with-included-gettext is the default
88     # --enable-kbd-layout not useful enough
89     # --enable-cjk not needed for CJK and may go away in a future release
90 barjac 303942 %configure2_5x --libdir=/usr/share/lynx $debian_options $redhat_options $other_options
91 blino 626 %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.30