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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 633 - (hide annotations) (download)
Sat Jan 8 14:32:04 2011 UTC (13 years, 3 months ago) by blino
Original Path: cauldron/lynx/current/SPECS/lynx.spec
File size: 3077 byte(s)
remove old config migration

1 blino 626 %define version 2.8.7
2     %define versio_ 2-8-7
3     #define subver pre.4
4     %define rel 4
5     %define release %mkrel %{rel}
6    
7     Summary: Text based browser for the world wide web
8     Name: lynx
9     Version: %{version}
10     Release: %{release}
11     License: GPL
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/%name%{version}.tar.bz2
18     Patch0: lynx2-8-7-adapt-to-modern-file-localizations.patch
19     Patch1: lynx2-8-7-default-config.patch
20     Patch2: lynx2-8-6-fix-ugly-color.patch
21     Patch10: lynx2-8-7-tmp_dir.patch
22     Patch11: lynx2-8-6-don-t-accept-command-line-args-to-telnet.patch
23     Patch13: lynx2-8-6-format_not_a_string_literal_and_no_format_arguments.diff
24     Provides: webclient lynx-ssl
25     Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
26     BuildRequires: openssl-devel
27     BuildRequires: zlib-devel libncursesw-devel
28     Obsoletes: lynx-ssl
29    
30     %description
31     This a terminal based WWW browser. While it does not make any attempt
32     at displaying graphics, it has good support for HTML text formatting,
33     forms, and tables.
34    
35     This version includes support for SSL encryption.
36    
37     WARNING: In some countries, it is illegal to export this package. In some
38     countries, it may even be illegal to use it.
39    
40    
41     %prep
42     %setup -q -n %{name}%{versio_}
43     %patch0 -p1
44     %patch1 -p1
45     %patch2 -p1
46     %patch10 -p1
47     %patch11 -p1
48     %patch13 -p0 -b .format_not_a_string_literal_and_no_format_arguments
49     perl -pi -e 's,^#LOCALE_CHARSET:.*,LOCALE_CHARSET:TRUE,' lynx.cfg
50    
51     %build
52    
53     debian_options=`cat << DEBIAN
54     --enable-warnings
55     --enable-8bit-toupper
56     --enable-externs
57     --enable-cgi-links
58     --enable-persistent-cookies --enable-nls
59     --enable-prettysrc --enable-source-cache
60     --enable-charset-choice
61     --enable-default-colors
62     --enable-ipv6
63     --enable-nested-tables --enable-read-eta
64     --with-zlib
65     DEBIAN`
66     # removed --enable-exec-links --enable-exec-scripts,
67     # it goes together with LOCAL_EXECUTION_LINKS_* in lynx.cfg
68    
69    
70     redhat_options=`cat << REDHAT
71     --with-screen=ncursesw
72     --enable-internal-links
73     --enable-libjs
74     --enable-scrollbar
75     --enable-file-upload
76     --enable-locale-charset
77     --with-ssl
78     --enable-addrlist-page
79     --enable-justify-elts
80     REDHAT`
81    
82     other_options=`cat << OTHER
83     --enable-color-style
84     --enable-nsl-fork
85     OTHER`
86    
87     # (cf INSTALLATION file for more about the options)
88     # --with-included-gettext is the default
89     # --enable-kbd-layout not useful enough
90     # --enable-cjk not needed for CJK and may go away in a future release
91    
92     %configure --libdir=/usr/share/lynx $debian_options $redhat_options $other_options
93     %make
94    
95     %install
96     rm -rf $RPM_BUILD_ROOT
97     %makeinstall_std install-help
98    
99     install -d $RPM_BUILD_ROOT%{_sysconfdir}
100     cat >$RPM_BUILD_ROOT%{_sysconfdir}/lynx-site.cfg <<EOF
101     # Place any local lynx configuration options (proxies etc.) here.
102     EOF
103    
104     %find_lang lynx
105    
106     %clean
107     rm -rf $RPM_BUILD_ROOT
108    
109     %files -f lynx.lang
110     %defattr(-,root,root)
111     %doc README
112     %config(noreplace,missingok) %{_sysconfdir}/lynx-site.cfg
113     %config(noreplace) %{_sysconfdir}/lynx.cfg
114     %config(noreplace) %{_sysconfdir}/lynx.lss
115     %{_mandir}/*/*
116     %{_bindir}/*
117     %{_datadir}/lynx_help
118    
119    
120    
121    

  ViewVC Help
Powered by ViewVC 1.1.30