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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 467365 - (show annotations) (download)
Sat Aug 17 19:48:32 2013 UTC (10 years, 8 months ago) by schedbot
Original Path: cauldron/lynx/releases/2.8.8/1.dev.16.mga4/SPECS/lynx.spec
File size: 3163 byte(s)
%repsys markrelease
version: 2.8.8
release: 1.dev.16.mga4
revision: 467362

Copying 2.8.8-1.dev.16.mga4 to releases/ directory.
1 %define versio_ 2-8-8
2 %define pre dev.16
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 BuildRequires: libidn-devel
25 Provides: webclient = %{version}-%{release}
26 Provides: lynx-ssl = %{version}-%{release}
27 Obsoletes: lynx-ssl < %{version}-%{release}
28
29 %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 %patch1 -p1
44 %patch2 -p1
45 %patch3 -p1
46 %patch4 -p1
47
48 perl -pi -e 's,^#LOCALE_CHARSET:.*,LOCALE_CHARSET:TRUE,' lynx.cfg
49
50 %build
51
52 debian_options=`cat << DEBIAN
53 --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 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 --with-screen=ncursesw
71 --enable-internal-links
72 --enable-libjs
73 --enable-scrollbar
74 --enable-file-upload
75 --enable-locale-charset
76 --with-ssl=%{_libdir}
77 --enable-addrlist-page
78 --enable-justify-elts
79 REDHAT`
80
81 other_options=`cat << OTHER
82 --enable-color-style
83 --enable-nsl-fork
84 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 %configure2_5x --libdir=/usr/share/lynx $debian_options $redhat_options $other_options
91 %make
92
93 %install
94 rm -rf %{buildroot}
95 %makeinstall_std install-help
96
97 install -d %{buildroot}%{_sysconfdir}
98 cat > %{buildroot}%{_sysconfdir}/lynx-site.cfg <<EOF
99 # 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